rename board_led_control to board_led_write

This commit is contained in:
hathach
2019-04-02 18:16:04 +07:00
parent 6564580c3d
commit 5f3ab2afe1
16 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ void board_init(void)
// LED
nrf_gpio_cfg_output(LED_PIN);
board_led_control(false);
board_led_write(false);
// Button
nrf_gpio_cfg_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP);
@@ -126,7 +126,7 @@ void board_init(void)
if ( usb_reg & POWER_USBREGSTATUS_OUTPUTRDY_Msk ) tusb_hal_nrf_power_event(NRFX_POWER_USB_EVT_READY);
}
void board_led_control(bool state)
void board_led_write(bool state)
{
nrf_gpio_pin_write(LED_PIN, state ? LED_STATE_ON : (1-LED_STATE_ON));
}