change GPIP_PIN_INTR_DISABLE -> GPIO_INTR_DISABLE

Changed for-idf 5.0.2
This commit is contained in:
alufers 2023-05-28 02:17:09 +02:00
parent de5708ebc7
commit ec7c6b434f
2 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ void cli_gpio_set(Cli* cli, mstring_t* args) {
}
gpio_config_t io_conf;
io_conf.intr_type = GPIO_PIN_INTR_DISABLE;
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = 0;
io_conf.pull_down_en = 0;
@ -225,7 +225,7 @@ void cli_gpio_get(Cli* cli, mstring_t* args) {
}
gpio_config_t io_conf;
io_conf.intr_type = GPIO_PIN_INTR_DISABLE;
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_INPUT;
io_conf.pin_bit_mask = 0;
io_conf.pull_down_en = 0;
@ -278,4 +278,4 @@ void cli_gpio_get(Cli* cli, mstring_t* args) {
} while(false);
mstring_free(gpio_name);
}
}

View File

@ -35,7 +35,7 @@ void gdb_application_thread(void* pvParameters) {
void pins_init() {
gpio_config_t io_conf;
// disable interrupt
io_conf.intr_type = GPIO_PIN_INTR_DISABLE;
io_conf.intr_type = GPIO_INTR_DISABLE;
// set as output mode
io_conf.mode = GPIO_MODE_OUTPUT;
// bit mask of the pins that you want to set