esp-idf/components/driver/include/driver
Angus Gratton c5a5b34ba4 driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum
ledc.h includes two similar enums, ledc_clk_src_t & ledc_clk_cfg_t.

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
2020-03-09 11:32:18 +11:00
..
adc2_wifi_internal.h feat(adc2): append adc2 support and api and the lock with WIFI module 2017-10-26 14:35:29 +08:00
adc.h driver: Remove features deprecated pre-IDF V4.0 2019-09-19 18:47:15 +10:00
can.h can: Add support for lower bit rates 2019-12-16 07:45:38 +00:00
dac.h driver: Remove features deprecated pre-IDF V4.0 2019-09-19 18:47:15 +10:00
gpio.h global: move the soc component out of the common list 2019-04-16 13:21:15 +08:00
i2c.h Update i2c documentation 2019-05-29 18:02:18 +05:30
i2s.h driver: Remove features deprecated pre-IDF V4.0 2019-09-19 18:47:15 +10:00
ledc.h driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum 2020-03-09 11:32:18 +11:00
mcpwm.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
pcnt.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
periph_ctrl.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
rmt.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
rtc_cntl.h driver/rtc: add support for attaching handlers to RTC_CNTL interrupts 2017-07-10 17:21:49 +08:00
rtc_io.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
sdio_slave.h separate rom from esp32 component to esp_rom 2019-03-21 18:51:45 +08:00
sdmmc_defs.h sdmmc_io: support to print CIS information 2019-07-29 10:41:17 +08:00
sdmmc_host.h sdmmc: support SDIO over SPI 2019-04-12 02:24:28 +08:00
sdmmc_types.h sdmmc: support SDIO over SPI 2019-04-12 02:24:28 +08:00
sdspi_host.h sdmmc: support SDIO over SPI 2019-04-12 02:24:28 +08:00
sigmadelta.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
spi_common_internal.h spi: move deprecated functions into internal header 2019-12-24 17:43:32 +08:00
spi_common.h spi: move deprecated functions into internal header 2019-12-24 17:43:32 +08:00
spi_master.h spi_master: move the spi_bus_init function into common header 2019-06-27 13:27:26 +08:00
spi_slave.h spi_slave: add valid check for DMA buffers 2018-11-26 03:49:26 +00:00
timer.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
touch_pad.h driver: Remove features deprecated pre-IDF V4.0 2019-09-19 18:47:15 +10:00
uart_select.h Allow VFS file descriptors in select() 2018-05-18 08:06:33 +02:00
uart.h VFS: Check in select() if the UART driver is installed or not 2020-01-21 10:11:08 +01:00