mcu_led.h

00001 /*
00002   
00003   @file mcu_led.h
00004   
00005   @author Nicolas Williamson 
00006   @date January 2010
00007   
00008 */
00009 
00010 /*
00011   // ***********************************************
00012   // Heartbeat Init Section
00013   // ***********************************************
00014   //On-board LED initialization
00015   PINSEL2 &= ~(1<<3);   // set trace port for GPIO use (bit 3 = 0)
00016   FIO1DIR |= (1<<23);   // set P1.23 to be output (Green LED)
00017   FIO1DIR |= (1<<24);   // set P1.24 to be output (Red LED)
00018   FIO1DIR |= (1<<25);   // set P1.25 to be output (Blue LED)
00019   MCU_LED_ALL_OFF;
00020 */ 
00021 
00022 #ifndef __MCU_LED_H__
00023 #define __MCU_LED_H__
00024 
00025 //Public Functions
00026 void mcu_led_init(void);
00027 
00028 void mcu_led_update(void);
00029 
00030 void mcu_led_green_blink(int time_ms);
00031 void mcu_led_blue_blink(int time_ms);
00032 void mcu_led_red_blink(int time_ms);
00033 void mcu_led_green_on(void);
00034 void mcu_led_green_off(void);
00035 void mcu_led_green_toggle(void);
00036 void mcu_led_red_on(void);
00037 void mcu_led_red_off(void);
00038 void mcu_led_red_toggle(void);
00039 void mcu_led_blue_on(void);
00040 void mcu_led_blue_off(void);
00041 void mcu_led_blue_toggle(void);
00042 void mcu_led_all_on(void);
00043 void mcu_led_all_off(void);
00044 void mcu_led_all_toggle(void);
00045 
00046 
00047 #endif
Generated on Tue Jun 29 16:36:14 2010 by  doxygen 1.6.3