OVMS3-idf/components/soc/esp32
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
..
include driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum 2019-12-16 19:43:11 +11:00
test soc/esp32: Add test_env for 32kHz XTAL unit tests 2019-10-31 13:23:47 +08:00
adc_periph.c refactor the adc driver 2019-11-22 15:42:16 +08:00
component.mk ethernet: can build without enable esp32 emac 2019-07-22 21:07:02 +08:00
cpu_util.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
dac_periph.c dac: refactor driver add hal 2019-11-22 11:44:46 +08:00
emac_hal.c ethernet: add gpio number into config structure 2019-11-20 10:36:45 +08:00
gpio_periph.c refactor(gpio): add hal gpio driver 2019-11-22 17:24:53 +08:00
i2c_apll.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
i2c_bbpll.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
i2c_periph.c feature(I2C): Add i2c hal support. 2019-11-21 20:34:07 +08:00
i2c_rtc_clk.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
i2s_periph.c refactor(i2s): add hal i2s driver 2019-11-19 22:19:19 +08:00
interrupts.c soc: Add interrupt numbers mapping for esp32s2beta 2019-09-26 00:22:36 +08:00
ledc_periph.c Update LEDC, PCNT,Timer_Group driver for esp32s2beta. 2019-07-31 16:03:22 +08:00
rtc_clk.c soc/pm: Remove deprecated use of rtc_cpu_freq_t enum 2019-09-13 09:44:07 +10:00
rtc_clk_common.h soc/rtc_clk: split rtc_clk_init into separate object file 2018-08-21 13:02:46 +08:00
rtc_clk_init.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
rtc_init.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
rtc_io_periph.c rtcio: add hal for driver 2019-11-21 10:40:49 +08:00
rtc_periph.c rtcio: add hal for driver 2019-11-21 10:40:49 +08:00
rtc_pm.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
rtc_sleep.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
rtc_time.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
rtc_wdt.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
sdio_slave_periph.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
sdmmc_periph.c Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
soc_log.h separate rom from esp32 component to esp_rom 2019-03-21 18:51:45 +08:00
soc_memory_layout.c spiram: Fix ESP32 SPIRAM when using SPIRAM_TYPE_AUTO, disable "AUTO" for ESP32-S2 2019-09-04 10:53:25 +10:00
sources.cmake Refactor the touch sensor driver 2019-11-27 20:08:44 +08:00
spi_periph.c spi: multichip support 2019-06-22 19:08:47 +08:00
touch_sensor_hal.c Refactor the touch sensor driver 2019-11-27 20:08:44 +08:00
touch_sensor_periph.c Refactor the touch sensor driver 2019-11-27 20:08:44 +08:00
uart_periph.c feature: Add uart hal support. 2019-11-26 20:01:50 +08:00