Browse Source

[stm32] fxi gpio header files included

Meco Man 1 year ago
parent
commit
0a3a10e5bb

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drivers/drv_gpio.c

@@ -221,7 +221,7 @@ static rt_int8_t stm32_pin_read(rt_device_t dev, rt_base_t pin)
 {
 {
     GPIO_TypeDef *gpio_port;
     GPIO_TypeDef *gpio_port;
     uint16_t gpio_pin;
     uint16_t gpio_pin;
-    GPIO_PinState state = PIN_LOW;
+    GPIO_PinState state = GPIO_PIN_RESET;
 
 
     if (PIN_PORT(pin) < PIN_STPORT_MAX)
     if (PIN_PORT(pin) < PIN_STPORT_MAX)
     {
     {

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drivers/drv_gpio.h

@@ -14,7 +14,7 @@
 #ifndef __DRV_GPIO_H__
 #ifndef __DRV_GPIO_H__
 #define __DRV_GPIO_H__
 #define __DRV_GPIO_H__
 
 
-#include <drv_common.h>
+#include <rtdevice.h>
 #include <board.h>
 #include <board.h>
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus

+ 1 - 0
bsp/stm32/libraries/HAL_Drivers/drivers/drv_lcd_mipi.c

@@ -9,6 +9,7 @@
  */
  */
 
 
 #include <board.h>
 #include <board.h>
+#include <rtconfig.h>
 
 
 #ifdef BSP_USING_LCD_MIPI
 #ifdef BSP_USING_LCD_MIPI
 #include <lcd_port.h>
 #include <lcd_port.h>