#include "stdint.h" #include "led.h" #include "nrf.h" #include "nrf_gpio.h" void led_init(void) { nrf_gpio_cfg_output(LED_WHITE_PIN); } void led_on(enum LED_TYPE led_type) { switch (led_type) { case LED_GREEN: nrf_gpio_pin_clear(LED_WHITE_PIN); break; default: break; } } void led_off(enum LED_TYPE led_type) { switch (led_type) { case LED_GREEN: nrf_gpio_pin_set(LED_WHITE_PIN); break; default: break; } } void led_toggle(enum LED_TYPE led_type) { switch (led_type) { case LED_GREEN: nrf_gpio_pin_toggle(LED_WHITE_PIN); break; default: break; } }