Index: firmware/App/Drivers/CPLD.c =================================================================== diff -u -r216bd924f989182e648ee5f33f4c91c43ac438ac -r69a52d3eafb8667fa3163949107a9351b8eb855a --- firmware/App/Drivers/CPLD.c (.../CPLD.c) (revision 216bd924f989182e648ee5f33f4c91c43ac438ac) +++ firmware/App/Drivers/CPLD.c (.../CPLD.c) (revision 69a52d3eafb8667fa3163949107a9351b8eb855a) @@ -45,36 +45,6 @@ #define SET_RED() {mibspiREG5->PC3 |= LAMP_RED_SPI5_PORT_MASK;} #define CLR_RED() {mibspiREG5->PC3 &= ~LAMP_RED_SPI5_PORT_MASK;} -#ifdef RM46_EVAL_BOARD_TARGET - // for RM46 eval board, user button B uses the MIBSPI1_nCS[4] pin, so need to re-purpose that pin as GPIO to see the button - #define USER_BUTTON_MASK 0x00000010 // (nCS[4] - #define GET_USER_BUTTON() ( PIN_SIGNAL_STATE_T )( ( ( mibspiREG1->PC2 & USER_BUTTON_MASK ) == 0 ? PIN_SIGNAL_LOW : PIN_SIGNAL_HIGH ) ) - PIN_SIGNAL_STATE_T getUserButtonState( void ) - { - PIN_SIGNAL_STATE_T result = GET_USER_BUTTON(); - - return result; - } - // for RM46 eval board, user LED A uses the same GPIO pin that CPLD uses for watchdog pet. Had to disable watchdog pet to use as LED. - void setUserLED( BOOL on ) - { - if ( on == TRUE ) - { - SET_WD_PET(); - } - else - { - CLR_WD_PET(); - } - } - - void toggleUserLED() - { - TGL_WD_PET(); - } - -#endif - /************************************************************************* * @brief initCPLD * The initCPLD function initializes the CPLD module.