From c86ce093ce93eb8da1136acd1e81973ef0bb54fc Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Tue, 9 Sep 2014 23:09:35 -0400 Subject: Add a script to compile examples as an automated test suite. * Added script/boostrap.sh to download the Arduino IDE and MPIDE (for chipKIT). Tested in Linux, should work in Cygwin and OS X too. * Added script/runtests.sh to run "make" in each example project and collect the results. The script returns -1 if any fails. * Moved currently testable examples to a "tests" directory, separate from examples that require alternative cores. --- examples/BlinkInAVRC/blink.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 examples/BlinkInAVRC/blink.c (limited to 'examples/BlinkInAVRC/blink.c') diff --git a/examples/BlinkInAVRC/blink.c b/examples/BlinkInAVRC/blink.c deleted file mode 100644 index d8b7c8f..0000000 --- a/examples/BlinkInAVRC/blink.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * © Anil Kumar Pugalia, 2010. Email: email@sarika-pugs.com - * - * ATmega48/88/168, ATmega16/32 - * - * Example Blink. Toggles all IO pins at 1Hz - */ - -#include -#include - -void init_io(void) -{ - // 1 = output, 0 = input - DDRB = 0b11111111; // All outputs - DDRC = 0b11111111; // All outputs - DDRD = 0b11111110; // PORTD (RX on PD0). Just for demo -} - -int main(void) -{ - init_io(); - - while (1) - { - PORTC = 0xFF; - PORTB = 0xFF; - PORTD = 0xFF; - _delay_ms(500); - - PORTC = 0x00; - PORTB = 0x00; - PORTD = 0x00; - _delay_ms(500); - } - - return 0; -} -- cgit v1.2.3