Hi,
I'm porting a project from IDF 4.x to 5.x and need to call
esp_rom_gpio_pad_select_gpio(PIN_LED);
gpio_ll_input_disable(&GPIO, PIN_LED);
gpio_ll_output_enable(&GPIO, PIN_LED);
gpio_ll_set_level(&GPIO, PIN_LED, 0);
in call_start_cpu0() in
bootloader_components/main/bootloader_start.c
My problem is that
#include "hal/gpio_ll.h" is throwing an error
"hal/gpio_ll.h: No such file or directory"
What do I need to do to include "hal/gpio_ll.h" in bootloader_start.c to use gpio_ll_set_level() ?
Thank you and best regards,
Mike
Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c
-
MicroController
- Posts: 2673
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c
Try adding "hal" to the list of required components in your component's CMakeLists.txt.
Re: Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c
Thank you, adding "hal" to required components in the component's CMakeLists.txt worked.
Who is online
Users browsing this forum: ChatGPT-User, Google [Bot], MicroController, PetalBot, Semrush [Bot] and 5 guests