diff options
| author | hathach <[email protected]> | 2018-12-07 14:49:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-07 14:49:55 +0700 |
| commit | d524da0c941783887eaea968e5e7f8cb63313451 (patch) | |
| tree | 3bd62e3663c6eea64b445411541197b92475119f /hw/bsp/ea4357 | |
| parent | f769ecddafcf25c48d23730c31e0fd6178dd2f89 (diff) | |
enable all warnings
Diffstat (limited to 'hw/bsp/ea4357')
| -rw-r--r-- | hw/bsp/ea4357/board_ea4357.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/bsp/ea4357/board_ea4357.c b/hw/bsp/ea4357/board_ea4357.c index da3312467..7c642a801 100644 --- a/hw/bsp/ea4357/board_ea4357.c +++ b/hw/bsp/ea4357/board_ea4357.c @@ -123,7 +123,7 @@ void SystemInit(void) Chip_SCU_SetPinMuxing(pinmuxing, sizeof(pinmuxing) / sizeof(PINMUX_GRP_T)); /* Clock pins only, group field not used */ - for (int i = 0; i < (sizeof(pinclockmuxing) / sizeof(pinclockmuxing[0])); i++) + for (int i = 0; i <(int) (sizeof(pinclockmuxing) / sizeof(pinclockmuxing[0])); i++) { Chip_SCU_ClockPinMuxSet(pinclockmuxing[i].pinnum, pinclockmuxing[i].modefunc); } @@ -275,10 +275,12 @@ void board_led_control(bool state) //--------------------------------------------------------------------+ // BUTTONS //--------------------------------------------------------------------+ +#if 0 static bool button_read(uint8_t id) { // return !BIT_TEST_( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low } +#endif uint32_t board_buttons(void) { @@ -295,10 +297,13 @@ uint32_t board_buttons(void) uint8_t board_uart_getchar(void) { //return UART_ReceiveByte(BOARD_UART_PORT); + return 0; } + void board_uart_putchar(uint8_t c) { //UART_Send(BOARD_UART_PORT, &c, 1, BLOCKING); + (void) c; } #endif |
