aboutsummaryrefslogtreecommitdiff
path: root/tests/BlinkInAVRC/blink.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-09-20 16:14:32 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-09-20 16:14:32 -0400
commit086c6e96ca4b98e8a144b5f7f37a7b3b6fedc61d (patch)
treea400644b8017ab3842e980eaf5df0f4e7437ca47 /tests/BlinkInAVRC/blink.c
parent6f46722abb40c60dcaa0e40292342d015906c8bf (diff)
Move tests back to 'examples', skip non-testable examples when testing.
This fixes https://github.com/sudar/Arduino-Makefile/issues/259.
Diffstat (limited to 'tests/BlinkInAVRC/blink.c')
-rw-r--r--tests/BlinkInAVRC/blink.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/BlinkInAVRC/blink.c b/tests/BlinkInAVRC/blink.c
deleted file mode 100644
index d8b7c8f..0000000
--- a/tests/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 <avr/io.h>
-#include <util/delay.h>
-
-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;
-}