summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-04-02 02:16:54 +0700
committerhathach <[email protected]>2019-04-02 02:16:54 +0700
commit2c1072c0aba48a2e6cbe93118c286b7999b0db43 (patch)
tree746d6642e22e3ecf30d4f4c5f830c2a155bb28d7
parent4af16efea706655a814d55e02f8d0463f4d29cf3 (diff)
fix build error with stm32
-rw-r--r--hw/bsp/stm32f303disc/board_stm32f303disc.c6
-rw-r--r--hw/bsp/stm32f407g_disc1/board_stm32f407g_disc1.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/hw/bsp/stm32f303disc/board_stm32f303disc.c b/hw/bsp/stm32f303disc/board_stm32f303disc.c
index d2f6244f7..e4afbf8ce 100644
--- a/hw/bsp/stm32f303disc/board_stm32f303disc.c
+++ b/hw/bsp/stm32f303disc/board_stm32f303disc.c
@@ -97,6 +97,12 @@ void board_led_control(bool state)
HAL_GPIO_WritePin(GPIOE, GPIO_PIN_9, state);
}
+uint32_t board_button_read(void)
+{
+ // TODO implement
+ return 0;
+}
+
/*------------------------------------------------------------------*/
/* TUSB HAL MILLISECOND
*------------------------------------------------------------------*/
diff --git a/hw/bsp/stm32f407g_disc1/board_stm32f407g_disc1.c b/hw/bsp/stm32f407g_disc1/board_stm32f407g_disc1.c
index d7b4a4bd3..2622dde11 100644
--- a/hw/bsp/stm32f407g_disc1/board_stm32f407g_disc1.c
+++ b/hw/bsp/stm32f407g_disc1/board_stm32f407g_disc1.c
@@ -91,6 +91,12 @@ void board_led_control(bool state)
}
}
+uint32_t board_button_read(void)
+{
+ // TODO implement
+ return 0;
+}
+
/*------------------------------------------------------------------*/
/* TUSB HAL MILLISECOND