OVMS3-idf/components/soc/esp32/include/hal
Angus Gratton 435dd546cc driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum
ledc_types.h includes two similar enums, ledc_clk_src_t & ledc_clk_cfg_t. Latter was added in
ESP-IDF v4.0.

The two enums do different things but there are two similar names: LEDC_REF_TICK / LEDC_USE_REF_TICK
and LEDC_APB_CLK / LEDC_USE_APB_CLK.

Because C will accept any enum or integer value for an enum argument, there's no easy way to check
the correct enum is passed without using static analysis.

To avoid accidental errors, make the numeric values for the two similarly named enums the same.,

Noticed when looking into https://github.com/espressif/esp-idf/issues/4476
2019-12-16 19:43:11 +11:00
..
adc_ll.h refactor the adc driver 2019-11-22 15:42:16 +08:00
dac_ll.h dac: refactor driver add hal 2019-11-22 11:44:46 +08:00
emac.h Ethernet: optimize and bugfix 2019-10-11 12:15:17 +08:00
gpio_ll.h refactor(gpio): add hal gpio driver 2019-11-22 17:24:53 +08:00
i2c_ll.h bugfix(i2c): fix I2C driver breaking change issue. 2019-12-04 15:51:36 +08:00
i2s_ll.h i2s: fix regression in retrieval of chip revision causing apll test to fail 2019-11-22 11:46:38 +05:30
ledc_ll.h driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum 2019-12-16 19:43:11 +11:00
mcpwm_ll.h mcpwm: add HAL layer support 2019-11-25 00:36:30 +08:00
pcnt_ll.h refactor(pcnt): add hal pcnt driver 2019-11-18 14:35:46 +08:00
rmt_ll.h rmt: add HAL layer 2019-11-20 10:54:21 +08:00
rtc_io_ll.h rtcio: add hal for driver 2019-11-21 10:40:49 +08:00
sigmadelta_ll.h refactor(sigmadelta): add hal sigmadelta driver 2019-11-21 11:53:07 +08:00
spi_flash_ll.h ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation 2019-11-28 09:20:00 +08:00
spi_ll.h spi: convenient LL macro 2019-09-04 10:53:25 +10:00
timer_ll.h bugfix(timer): recover get raw interrupt status function 2019-11-26 12:39:46 +00:00
touch_sensor_hal_esp32.h Refactor the touch sensor driver 2019-11-27 20:08:44 +08:00
touch_sensor_ll.h Refactor the touch sensor driver 2019-11-27 20:08:44 +08:00
uart_ll.h bugfix(UART): fix uart driver spinlock misused bug 2019-12-03 16:06:31 +08:00