group more nrf boards

This commit is contained in:
hathach
2020-11-28 00:45:44 +07:00
parent 4130c50b01
commit 658194ccc4
20 changed files with 131 additions and 818 deletions

View File

@@ -145,8 +145,7 @@ void board_led_write(bool state)
uint32_t board_button_read(void)
{
// button is active LOW
return (nrf_gpio_pin_read(BUTTON_PIN) ? 0 : 1);
return BUTTON_STATE_ACTIVE == nrf_gpio_pin_read(BUTTON_PIN);
}
int board_uart_read(uint8_t* buf, int len)