Files
esp_llcc68_driver/inc/template/app_const_llcc68_template.hpp
crosstyan 4602468822 Update GPIO header inclusion in llcc68 template file
- Replaced the inclusion of `<driver/gpio.h>` with `<soc/gpio_num.h>` to align with the updated GPIO handling in the llcc68 component.
2025-05-19 18:09:28 +08:00

35 lines
1.1 KiB
C++

#ifndef B0CD865F_D860_44B7_B289_4F512C770D2B
#define B0CD865F_D860_44B7_B289_4F512C770D2B
/** a hack prevent `clangd` to complain about the error
* while prevent this file from being included by mistake.
*
* one needs to define `__CLANGD__` manually, you could
* do that with `.clangd` configuration file
*/
#ifndef __CLANGD__
#error "this file is a template; copy it to `app_const_llcc68.hpp` and modify the values; then remove this error"
#endif
#include <soc/gpio_num.h>
namespace app::driver::llcc68 {
/// @brief special pin number for no connection
constexpr auto NC_PIN = GPIO_NUM_NC;
constexpr auto MOSI_PIN = GPIO_NUM_NC;
constexpr auto MISO_PIN = GPIO_NUM_NC;
constexpr auto SCLK_PIN = GPIO_NUM_NC;
constexpr auto BUSY_PIN = GPIO_NUM_NC;
constexpr auto CS_PIN = GPIO_NUM_NC;
constexpr auto RST_PIN = NC_PIN;
constexpr auto DIO1_PIN = GPIO_NUM_NC;
constexpr auto DIO2_PIN = NC_PIN;
constexpr auto DIO3_PIN = NC_PIN;
/// @brief the pin numbers that needs to be configured as interrupt
constexpr gpio_num_t EXTI_PINS[] = {DIO1_PIN};
}
#endif /* B0CD865F_D860_44B7_B289_4F512C770D2B */