mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_rom: extract common GPIO apis into esp_rom_gpio.h
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "driver/sigmadelta.h"
|
||||
#include "esp_heap_caps.h"
|
||||
#include "hal/sigmadelta_hal.h"
|
||||
#include "esp_rom_gpio.h"
|
||||
|
||||
static const char *TAG = "SIGMADELTA";
|
||||
|
||||
@@ -58,7 +59,7 @@ static inline esp_err_t _sigmadelta_set_pin(sigmadelta_port_t sigmadelta_port, s
|
||||
|
||||
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[gpio_num], PIN_FUNC_GPIO);
|
||||
gpio_set_direction(gpio_num, GPIO_MODE_OUTPUT);
|
||||
gpio_matrix_out(gpio_num, GPIO_SD0_OUT_IDX + channel, 0, 0);
|
||||
esp_rom_gpio_connect_out_signal(gpio_num, GPIO_SD0_OUT_IDX + channel, 0, 0);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user