change GPIP_PIN_INTR_DISABLE -> GPIO_INTR_DISABLE
Changed for-idf 5.0.2
This commit is contained in:
parent
de5708ebc7
commit
ec7c6b434f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue