summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kerkmann <[email protected]>2021-08-07 11:31:03 +0200
committerStefan Kerkmann <[email protected]>2021-08-07 11:33:36 +0200
commit0399996ee5b7062a6d7ae65c722f32a6d5f4de6d (patch)
treeb6d2ba36334e892fcf508a9b6e5d7793b5e43eec
parent66d566f8c0a4bc2f08ec7fe146c3142dcd8c6f3b (diff)
Code style changes
-rw-r--r--hw/bsp/gd32vf103_longan_nano/gd32vf103_longan_nano.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/bsp/gd32vf103_longan_nano/gd32vf103_longan_nano.c b/hw/bsp/gd32vf103_longan_nano/gd32vf103_longan_nano.c
index 7c71a89f5..0a1008399 100644
--- a/hw/bsp/gd32vf103_longan_nano/gd32vf103_longan_nano.c
+++ b/hw/bsp/gd32vf103_longan_nano/gd32vf103_longan_nano.c
@@ -46,6 +46,7 @@ void USBFS_IRQHandler(void) { tud_int_handler(0); }
#define UART_DEV SOC_DEBUG_UART
#define LED_PIN LED_R
+
#define TIMER_TICKS (SystemCoreClock / 1000)
void board_init(void) {
@@ -126,11 +127,7 @@ void gd32vf103_reset(void) {
//--------------------------------------------------------------------+
void board_led_write(bool state) {
- if (state) {
- gd_led_on(LED_PIN);
- } else {
- gd_led_off(LED_PIN);
- }
+ state ? gd_led_on(LED_PIN) : gd_led_off(LED_PIN);
}
uint32_t board_button_read(void) {