esp-idf/components/soc
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
..
esp32 driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum 2019-12-16 19:43:11 +11:00
esp32s2beta Merge branch 'bugfix/fix_i2c_driver_breakingchange_issue' into 'master' 2019-12-06 16:50:16 +08:00
include driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum 2019-12-16 19:43:11 +11:00
src sdio_slave: support HAL layer 2019-12-13 18:33:15 +08:00
test soc: fix unit tests not included in the build 2019-11-18 15:58:49 +07:00
CMakeLists.txt sdio_slave: support HAL layer 2019-12-13 18:33:15 +08:00
component.mk add esp32s2beta in soc component 2019-06-11 13:06:32 +08:00
linker.lf ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation 2019-11-28 09:20:00 +08:00