Original file line numberDiff line numberDiff line change @@ -394,8 +394,6 @@ static rt_err_t stm32_pin_irq_enable(struct rt_device *device, rt_base_t pin, const struct pin_irq_map *irqmap; rt_base_t level; rt_int32_t irqindex = -1; GPIO_InitTypeDef GPIO_InitStruct;...
pdata->led_gpio = of_get_named_gpio_flags(np,"gpios",0, &pdata->led_flag);if(pdata->led_gpio <0) { dev_err(dev,"failed to read property of gpio\n");gotofail1; }/*init gpio*/if(gpio_is_valid(pdata->led_gpio)) { ret= gpio_request_one(pdata->led_gpio, pdata->led_...
Original file line numberDiff line numberDiff line change @@ -19,6 +19,8 @@ //#define ESP32 //Just used to test ESP32 options #include "hal/gpio_ll.h" // Include header file that defines the fonts loaded, the TFT drivers // available and the pins to be used #include "In_eSPI...
Original file line numberDiff line numberDiff line change Expand Up @@ -9,6 +9,10 @@ #ifndef _BOARD_H_ #define _BOARD_H_ #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #if defined(CONFIG_BLE_MESH_ESP_WROOM_32) Expand Down Expand Up @...
Original file line numberDiff line numberDiff line change @@ -831,7 +831,7 @@ separate memory range only intended for GPIO driving, and the register range dealing with pin config and pin multiplexing get placed into a different memory range and a separate section of the data sheet. A flag...
staticstructplatform_driversrf04_driver={ Expand All@@ -395,7 +395,7 @@ static struct platform_driver srf04_driver = { .driver={ .name="srf04-gpio", .of_match_table=of_srf04_match, .pm=&srf04_pm_ops, .pm=pm_ptr(&srf04_pm_ops), }, }; Expand Down...
Original file line numberDiff line numberDiff line change Expand Up @@ -9,14 +9,13 @@ #ifndef _BOARD_H_ #define _BOARD_H_ #include "driver/gpio.h" #include "light_driver.h" #ifdef __cplusplus extern "C" { #endif /**< __cplusplus */ #include "driver/gpio.h" #include "light...