summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2024-01-07 22:43:45 +0800
committerMeco Man <[email protected]>2024-01-07 22:46:12 +0800
commit8c5df321d8a8e5aecb861ba297201ec5c29e291a (patch)
tree1411d7c947b504608fb261ffa35f6fa921d51e23
parent2d1f46d31ce98f429172b2888e434fc23202efb6 (diff)
[stm32] fix stm32 bsp warnings and errors
-rw-r--r--bsp/stm32/stm32f469-st-disco/board/Kconfig1
-rw-r--r--bsp/stm32/stm32f469-st-disco/board/ports/drv_otm8009a.c2
-rw-r--r--bsp/stm32/stm32h750-fk750m1-vbt6/applications/main.c3
-rw-r--r--bsp/stm32/stm32h750-fk750m1-vbt6/board/board.c2
-rw-r--r--bsp/stm32/stm32h750-fk750m1-vbt6/board/board.h3
5 files changed, 6 insertions, 5 deletions
diff --git a/bsp/stm32/stm32f469-st-disco/board/Kconfig b/bsp/stm32/stm32f469-st-disco/board/Kconfig
index c96f12bc91..f8191e1a11 100644
--- a/bsp/stm32/stm32f469-st-disco/board/Kconfig
+++ b/bsp/stm32/stm32f469-st-disco/board/Kconfig
@@ -82,6 +82,7 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_TOUCH
bool "Enable touch screen"
+ select RT_USING_TOUCH
select BSP_USING_I2C1
choice
diff --git a/bsp/stm32/stm32f469-st-disco/board/ports/drv_otm8009a.c b/bsp/stm32/stm32f469-st-disco/board/ports/drv_otm8009a.c
index 8fde3a56ae..94d276c25b 100644
--- a/bsp/stm32/stm32f469-st-disco/board/ports/drv_otm8009a.c
+++ b/bsp/stm32/stm32f469-st-disco/board/ports/drv_otm8009a.c
@@ -9,6 +9,8 @@
*/
#include <board.h>
+#include <drv_gpio.h>
+
#ifdef BSP_USING_LCD_OTM8009A
extern DSI_HandleTypeDef hdsi;
extern DSI_VidCfgTypeDef hdsi_video;
diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/applications/main.c b/bsp/stm32/stm32h750-fk750m1-vbt6/applications/main.c
index 679a6c38b6..74cfea57e4 100644
--- a/bsp/stm32/stm32h750-fk750m1-vbt6/applications/main.c
+++ b/bsp/stm32/stm32h750-fk750m1-vbt6/applications/main.c
@@ -8,9 +8,8 @@
* 2019-10-25 zylx first version
*/
-#include <rtthread.h>
#include <rtdevice.h>
-#include <board.h>
+#include <drv_gpio.h>
/* defined the LED1 pin: PC13 */
#define LED1_PIN GET_PIN(C, 13)
diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.c b/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.c
index 8cd041a305..d8b93a1171 100644
--- a/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.c
+++ b/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.c
@@ -8,7 +8,9 @@
* 2023-03-24 spaceman the first version
*/
+#include <rtthread.h>
#include "board.h"
+#include <drv_common.h>
#define AXI_SRAM_ADDR (0X24000000)
#define AXI_SRAM_SIZE (512*1024)
diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.h b/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.h
index cc9f4a7bcd..66106a7848 100644
--- a/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.h
+++ b/bsp/stm32/stm32h750-fk750m1-vbt6/board/board.h
@@ -12,10 +12,7 @@
#ifndef __BOARD_H__
#define __BOARD_H__
-#include <rtthread.h>
#include <stm32h7xx.h>
-// #include "drv_common.h"
-#include "drv_gpio.h"
#ifdef __cplusplus
extern "C" {