CircleOS  1
led.c
Go to the documentation of this file.
1 /****************** COPYRIGHT (C) 2007-2013 KEOLABS S.A.S. ********************/
12 /******************************************************************************/
13 
14 /* Includes ------------------------------------------------------------------*/
15 #include "circle.h"
16 
18 
19 /* Private defines -----------------------------------------------------------*/
20 
21 /* Private variables ---------------------------------------------------------*/
22 enum LED_mode GreenLED_mode = LED_UNDEF;
23 enum LED_mode RedLED_mode = LED_UNDEF;
24 enum LED_mode GreenLED_newmode = LED_OFF;
25 enum LED_mode RedLED_newmode = LED_OFF;
26 
27 
28 /* Public functions for CircleOS ---------------------------------------------*/
29 
30 
31 /*******************************************************************************
32 *
33 * LED_Handler
34 *
35 *******************************************************************************/
42 /******************************************************************************/
43 void LED_Handler( void )
44 {
45  LED_Handler_hw( LED_GREEN );
46  LED_Handler_hw( LED_RED );
47 }
48 
50 
51 /* Public functions ----------------------------------------------------------*/
52 
53 /*******************************************************************************
54 *
55 * LED_Set
56 *
57 *******************************************************************************/
66 /******************************************************************************/
67 void LED_Set( enum LED_id id, enum LED_mode mode )
68 {
69  if ( id == LED_GREEN )
70  {
71  GreenLED_newmode = mode;
72  }
73  else if ( id == LED_RED )
74  {
75  RedLED_newmode = mode;
76  }
77 }