From 3973ad39af7d6ddf6475425178a9b2b2b71f7fd1 Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 16 Nov 2007 07:58:36 +0000 Subject: Add blink functions (debugging help with oscilloscope) git-svn-id: https://svn.openpcd.org:2342/trunk@328 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/led.c | 22 +++++++++++++++++++++- openpicc/application/led.h | 2 ++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/openpicc/application/led.c b/openpicc/application/led.c index c414e92..6defff6 100644 --- a/openpicc/application/led.c +++ b/openpicc/application/led.c @@ -29,6 +29,8 @@ #include "led.h" /**********************************************************************/ +#define BLINK_TIME 10 + void vLedSetRed(bool_t on) { if(on) @@ -38,7 +40,16 @@ void vLedSetRed(bool_t on) } /**********************************************************************/ -extern void vLedSetGreen(bool_t on) +void vLedBlinkRed(void) +{ + volatile int i=0; + vLedSetRed(1); + for(i=0; i