diff --git a/demos/bsp/boards/board.c b/demos/bsp/boards/board.c index 4a423c5d2..e766bd206 100644 --- a/demos/bsp/boards/board.c +++ b/demos/bsp/boards/board.c @@ -49,20 +49,6 @@ void SysTick_Handler (void) #endif -#if 0 -// FIXME refractor -void boardGetMACaddr(uint8_t *macaddr) -{ - macaddr[0] = BOARD_MAC_ADDR0; - macaddr[1] = BOARD_MAC_ADDR1; - macaddr[2] = BOARD_MAC_ADDR2; - macaddr[3] = BOARD_MAC_ADDR3; - macaddr[4] = BOARD_MAC_ADDR4; - macaddr[5] = BOARD_MAC_ADDR5; -} - -#endif - void check_failed(uint8_t *file, uint32_t line) { (void) file; diff --git a/demos/bsp/boards/ngx/board_ngx4330.c b/demos/bsp/boards/ngx/board_ngx4330.c index cee98a98b..a8acdd8ff 100644 --- a/demos/bsp/boards/ngx/board_ngx4330.c +++ b/demos/bsp/boards/ngx/board_ngx4330.c @@ -40,11 +40,16 @@ #if BOARD == BOARD_NGX4330 +#define BOARD_UART_PORT LPC_USART0 + #define BOARD_MAX_LEDS 2 const static struct { - uint8_t port; - uint8_t pin; -}leds[BOARD_MAX_LEDS] = { {1, 11}, {1,12} }; + uint8_t mux_port; + uint8_t mux_pin; + + uint8_t gpio_port; + uint8_t gpio_pin; +}leds[BOARD_MAX_LEDS] = { {2, 11, 1, 11}, {2, 12, 1,12} }; void board_init(void) { @@ -61,8 +66,8 @@ void board_init(void) //------------- LED -------------// for (uint8_t i=0; i - - -