Files
esp_llcc68_driver/inc/template/app_const_llcc68_template.hpp
crosstyan b99d063bd8 Add .gitignore file and refactor llcc68 component
- Added a comprehensive .gitignore file to exclude unnecessary files and directories for various platforms and tools.
- Removed the llcc68.cpp source file as part of the refactoring process.
- Updated llcc68.hpp to replace the `init_exti` function declaration with inline interrupt configuration logic.
- Changed `EXTI_PIN` to `EXTI_PINS` for clarity and consistency.
- Refactored the handling of CAD parameters and improved type safety by using `enum class` for `CAD_EXIT_MODE` and `CAD_SYMB`.
2025-05-15 11:20:50 +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 <driver/gpio.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 */