00001 00002 #ifndef LED_AND_SWITCH_H 00003 #define LED_AND_SWITCH_H 00004 00005 #include "coridium.h" 00006 #include "cor_hwlib.h" 00007 #include "cor_wrflash.h" 00008 00009 #include "string.h" 00010 #include "printf.h" 00011 00012 //init system and micro battery ADC input pins 00013 int initializeLedAndSwitch(int r_led_pin, int g_led_pin, int reset_pin, int mode_pin); 00014 00015 int getLedRedState() ; 00016 int getLedGreenState(); 00017 int setLedRedState(int red); 00018 int setLedGreenState(int green); 00019 int getResetSwitch(); 00020 int getModeSwitch(); 00021 00022 #endif