|
37 | 37 |
|
38 | 38 | #pragma once |
39 | 39 |
|
| 40 | +#if __has_include("soc/soc_caps_eval.h") |
| 41 | +#include "soc/soc_caps_eval.h" |
| 42 | +#endif |
| 43 | + |
40 | 44 | #ifdef __has_include |
41 | 45 | # if __has_include("sdkconfig.h") |
42 | 46 | # include "sdkconfig.h" |
|
55 | 59 | // Define warning strings here for ECO-ed features to show error when they are used without being |
56 | 60 | // defined correctly |
57 | 61 | #define SOC_BROWNOUT_RESET_SUPPORTED "Not determined" // [gen_soc_caps:ignore] |
58 | | -#define SOC_TWAI_BRP_DIV_SUPPORTED "Not determined" // [gen_soc_caps:ignore] |
59 | 62 | #define SOC_DPORT_WORKAROUND "Not determined" // [gen_soc_caps:ignore] |
60 | 63 | #endif |
61 | 64 |
|
| 65 | +#define _SOC_CAPS_TARGET_IS_ESP32 1 // [gen_soc_caps:ignore] |
| 66 | + |
62 | 67 | /*-------------------------- COMMON CAPS ---------------------------------------*/ |
63 | 68 | #define SOC_CAPS_ECO_VER_MAX 301 |
64 | 69 |
|
|
114 | 119 | /*-------------------------- XTAL CAPS ---------------------------------------*/ |
115 | 120 | #define SOC_XTAL_SUPPORT_26M 1 |
116 | 121 | #define SOC_XTAL_SUPPORT_40M 1 |
117 | | -#define SOC_XTAL_SUPPORT_AUTO_DETECT 1 // Measure XTAL freq with an internal RC clock |
118 | 122 |
|
119 | 123 | /*-------------------------- ADC CAPS ----------------------------------------*/ |
120 | 124 | /*!< SAR ADC Module*/ |
|
135 | 139 | #define SOC_ADC_DIGI_RESULT_BYTES (2) |
136 | 140 | #define SOC_ADC_DIGI_DATA_BYTES_PER_CONV (4) |
137 | 141 | #define SOC_ADC_DIGI_MONITOR_NUM (0U) // to reference `IDF_TARGET_SOC_ADC_DIGI_MONITOR_NUM` in document |
138 | | -#define SOC_ADC_SAMPLE_FREQ_THRES_HIGH (2*1000*1000) |
139 | | -#define SOC_ADC_SAMPLE_FREQ_THRES_LOW (20*1000) |
| 142 | +#define SOC_ADC_SAMPLE_FREQ_THRES_HIGH (2000000) |
| 143 | +#define SOC_ADC_SAMPLE_FREQ_THRES_LOW (20000) |
140 | 144 |
|
141 | 145 | /*!< RTC */ |
142 | 146 | #define SOC_ADC_RTC_MIN_BITWIDTH (9) |
|
226 | 230 | #define SOC_I2S_PDM_MAX_RX_LINES (1U) |
227 | 231 | #define SOC_I2S_SUPPORTS_ADC_DAC (1) |
228 | 232 | #define SOC_I2S_SUPPORTS_ADC (1) |
229 | | -#define SOC_I2S_SUPPORTS_DAC (1) |
230 | 233 | #define SOC_I2S_SUPPORTS_LCD_CAMERA (1) |
231 | 234 | #define SOC_I2S_MAX_DATA_WIDTH (24) |
232 | 235 |
|
|
322 | 325 | // Peripheral supports DIO, DOUT, QIO, or QOUT |
323 | 326 | #define SOC_SPI_PERIPH_SUPPORT_MULTILINE_MODE(spi_host) ({(void)spi_host; 1;}) |
324 | 327 |
|
325 | | -/*-------------------------- TIMER GROUP CAPS --------------------------------*/ |
326 | | -#define SOC_TIMER_GROUPS (2) |
327 | | -#define SOC_TIMER_GROUP_TIMERS_PER_GROUP (2) |
328 | | -#define SOC_TIMER_GROUP_COUNTER_BIT_WIDTH (64) |
329 | | -#define SOC_TIMER_GROUP_TOTAL_TIMERS (4) |
330 | | -#define SOC_TIMER_GROUP_SUPPORT_APB (1) |
331 | | - |
332 | 328 | /*-------------------------- LP_TIMER CAPS ----------------------------------*/ |
333 | 329 | #define SOC_LP_TIMER_BIT_WIDTH_LO 32 // Bit width of lp_timer low part |
334 | 330 | #define SOC_LP_TIMER_BIT_WIDTH_HI 16 // Bit width of lp_timer high part |
|
347 | 343 | #define SOC_TWAI_BRP_MIN 2 |
348 | 344 | #if SOC_CAPS_ECO_VER >= 200 |
349 | 345 | # define SOC_TWAI_BRP_MAX 256 |
350 | | -# define SOC_TWAI_BRP_DIV_SUPPORTED 1 |
351 | 346 | #else |
352 | 347 | # define SOC_TWAI_BRP_MAX 128 |
353 | 348 | #endif |
|
0 commit comments