mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 11:56:25 +01:00
ledc: check SOC_LEDC_SUPPORT_APB_CLOCK (#5212)
This commit is contained in:
parent
1d5f088740
commit
ffd2cb9814
@ -17,7 +17,11 @@
|
|||||||
#define CLOCK_FREQUENCY 40e6f
|
#define CLOCK_FREQUENCY 40e6f
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
#ifdef SOC_LEDC_SUPPORT_APB_CLOCK
|
||||||
#define DEFAULT_CLK LEDC_USE_APB_CLK
|
#define DEFAULT_CLK LEDC_USE_APB_CLK
|
||||||
|
#else
|
||||||
|
#define DEFAULT_CLK LEDC_AUTO_CLK
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const uint8_t SETUP_ATTEMPT_COUNT_MAX = 5;
|
static const uint8_t SETUP_ATTEMPT_COUNT_MAX = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user