arduino-esp32/cores/esp32
Ricardo Lipas Augusto 2173373dcc
ledc.c: Fix analogWrite() last channel available verification (#8509)
* Fix analogWrite channel available verification

The last channel allocated is number 0, which conflicted with the value given to an uninitialized pin, giving the "No more analogWrite channels available!" error when trying to use it
Pins are now given the value -1 to indicate that they are not used so channel 0 can be used without errors.

* Fix incorrect array initialization

Keeping array of zeros for `pin_to_channel` and shifting stored channel
values by +1 to keep the pin with channel 0 from being interpreted as unused.

ref: https://github.com/espressif/arduino-esp32/pull/8509#issuecomment-1676103452
2023-08-29 14:16:54 +03:00
..
apps/sntp Update IDF to 3.2-3276a13 and esptool.py to 2.5.0 (#1878) 2018-09-21 08:39:36 +02:00
libb64 Remove -Wextra warnings (#6782) 2022-05-27 12:39:00 +03:00
Arduino.h Adds pseudo random numbers generation (#7848) 2023-02-15 13:26:18 +02:00
base64.cpp Base64::encode : const correctness / String by reference passing (#3314) 2019-10-02 14:29:24 +03:00
base64.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
binary.h initial import 2016-10-06 07:09:44 -06:00
cbuf.cpp Fix cbuf not being able to hold the full length 2017-01-24 17:57:44 +02:00
cbuf.h cbuf: allow inheritance (#5883) 2021-11-18 14:25:04 +02:00
Client.h Remove extra connects from Client.h (#3191) 2019-09-09 09:36:22 +03:00
Esp.cpp missing ESP32-D0WDR2-V3 added to getChipModel() (#7958) 2023-03-31 14:50:38 +03:00
Esp.h Use cpu_hal_get_cycle_count for all chips 2021-04-19 14:25:09 +03:00
esp32-hal-adc.c adc fixes and improvements (#6799) 2022-05-27 12:17:51 +03:00
esp32-hal-adc.h Fix pin attenuation being overwritten (#5399) 2021-07-16 17:34:25 +03:00
esp32-hal-bt.c Fixes ESP32 BT Memory Releasing 2023-08-22 21:33:25 -03:00
esp32-hal-bt.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-cpu.c Fix corrupt debug message in esp32-hal-cpu.c (#7264) 2022-09-16 21:34:55 +03:00
esp32-hal-cpu.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-dac.c Implement DAC based on ESP-IDF API (#5959) 2021-12-14 21:10:30 +02:00
esp32-hal-dac.h Implement DAC based on ESP-IDF API (#5959) 2021-12-14 21:10:30 +02:00
esp32-hal-gpio.c Improve RGB driver in pull #6808; solves #6968 (#6979) 2022-07-18 15:34:01 +02:00
esp32-hal-gpio.h Implement simple RGB driver via digitalWrite; solving #6783 (#6808) 2022-06-24 14:04:03 +03:00
esp32-hal-i2c-slave.c Fix fail to set single byte that contains the slave address (#6840) 2022-06-07 04:50:33 +03:00
esp32-hal-i2c-slave.h Fix the execute bit of some files. (#5986) 2021-12-14 14:24:44 +02:00
esp32-hal-i2c.c Fixes Arduino Wire::begin overload (#7000) 2022-07-26 06:53:47 -03:00
esp32-hal-i2c.h Implement Thread-Safe I2C based on ESP-IDF API (#5683) 2021-10-01 17:34:20 +03:00
esp32-hal-ledc.c ledc.c: Fix analogWrite() last channel available verification (#8509) 2023-08-29 14:16:54 +03:00
esp32-hal-ledc.h Changed type of LEDC frequency from double to uint32_t (#6570) 2022-04-21 17:50:55 +03:00
esp32-hal-log.h enh(log) salvage TAG from ESP_IDF log-statements > (#6567) 2022-04-26 14:46:42 +03:00
esp32-hal-matrix.c Use SDK macros for matrix detach constants (#8345) 2023-07-17 13:10:23 +03:00
esp32-hal-matrix.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-misc.c Fixes ESP32 BT Memory Releasing 2023-08-22 21:33:25 -03:00
esp32-hal-psram.c Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
esp32-hal-psram.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
esp32-hal-rgb-led.c Improve RGB driver in pull #6808; solves #6968 (#6979) 2022-07-18 15:34:01 +02:00
esp32-hal-rgb-led.h Improve RGB driver in pull #6808; solves #6968 (#6979) 2022-07-18 15:34:01 +02:00
esp32-hal-rmt.c Removes a few Warnings and fixes Math rand() to work like Arduino mainstream (#7613) 2022-12-21 18:48:10 +02:00
esp32-hal-rmt.h RMT refactoring based on IDF (#6024) 2021-12-21 15:02:40 +02:00
esp32-hal-sigmadelta.c Implement SigmaDelta based on ESP-IDF API (#6053) 2021-12-22 16:41:52 +02:00
esp32-hal-sigmadelta.h Implement SigmaDelta based on ESP-IDF API (#6053) 2021-12-22 16:41:52 +02:00
esp32-hal-spi.c Removes a few Warnings and fixes Math rand() to work like Arduino mainstream (#7613) 2022-12-21 18:48:10 +02:00
esp32-hal-spi.h Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
esp32-hal-time.c NTP Examples: revert obsolete comment and updated Time example (#6073) 2022-01-17 16:09:58 +02:00
esp32-hal-timer.c Add function timerAttachInterruptFlag (#7809) 2023-02-10 01:03:14 +02:00
esp32-hal-timer.h Add function timerAttachInterruptFlag (#7809) 2023-02-10 01:03:14 +02:00
esp32-hal-tinyusb.c fix usb_switch_to_cdc_jtag() not re-enable USB D+ before reset (#7828) 2023-02-13 12:39:22 +02:00
esp32-hal-tinyusb.h Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
esp32-hal-touch.c Add touch sleep wakeup API (#7439) 2022-11-09 14:17:46 -03:00
esp32-hal-touch.h Add touch sleep wakeup API (#7439) 2022-11-09 14:17:46 -03:00
esp32-hal-uart.c Sets correct code for UART baud rate detection (#7838) 2023-02-14 17:08:07 +02:00
esp32-hal-uart.h Use enum for C++ to avoid macro pitfalls (#7926) 2023-03-31 14:32:48 +03:00
esp32-hal.h Apply this change to 2.0.9 (#8131) 2023-05-03 19:42:55 +03:00
esp8266-compat.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
esp_arduino_version.h Update version prior to release 2022-12-21 18:54:30 +02:00
firmware_msc_fat.c Calculate properly Firmware MSC fat table sectors 2021-10-13 15:39:36 +03:00
firmware_msc_fat.h Add initial support for USB MSC (#5466) 2021-08-02 15:35:13 +03:00
FirmwareMSC.cpp Calculate properly Firmware MSC fat table sectors 2021-10-13 15:39:36 +03:00
FirmwareMSC.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
FunctionalInterrupt.cpp v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
FunctionalInterrupt.h bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) 2023-02-06 14:43:22 +02:00
HardwareSerial.cpp HardwareSerial: fix begin() lock issue on error path (#8182) 2023-05-11 16:13:36 +03:00
HardwareSerial.h Fixes inconsistencies and adds extended HardwareSerial examples (#7412) 2022-12-21 18:47:17 +02:00
HWCDC.cpp allows setting buffer size after or before begin() 2023-08-23 20:31:29 -03:00
HWCDC.h Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
IPAddress.cpp Fixes INADDR_NONE (#6659) 2022-04-29 11:13:07 +03:00
IPAddress.h Fixes INADDR_NONE (#6659) 2022-04-29 11:13:07 +03:00
IPv6Address.cpp Revert "Update licenses" 2021-03-11 12:11:53 +02:00
IPv6Address.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
main.cpp Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
MD5Builder.cpp Migrate MD5Builder to use esp_rom functions directly rather than rely on wrappers that can be omitted from compilation based on sdkconfig. (#5941) 2021-12-14 15:49:43 +02:00
MD5Builder.h Migrate MD5Builder to use esp_rom functions directly rather than rely on wrappers that can be omitted from compilation based on sdkconfig. (#5941) 2021-12-14 15:49:43 +02:00
pgmspace.h Fix issue 4095 (#4503) 2020-11-08 04:55:59 +02:00
Print.cpp Completely inline the helper pure abstract __FlashStringHelper class (#7941) 2023-04-06 13:32:21 +03:00
Print.h Completely inline the helper pure abstract __FlashStringHelper class (#7941) 2023-04-06 13:32:21 +03:00
Printable.h initial import 2016-10-06 07:09:44 -06:00
Server.h Update IDF to aaf1239 (#1539) 2018-06-27 09:01:06 +02:00
stdlib_noniso.c Removes a few Warnings and fixes Math rand() to work like Arduino mainstream (#7613) 2022-12-21 18:48:10 +02:00
stdlib_noniso.h Extends String to print 64-bit integers (#6768) 2022-05-18 11:24:03 +03:00
Stream.cpp Fix double promotion in Stream::parseFloat() (#5846) 2021-11-04 14:24:28 +02:00
Stream.h Print.flush() - Arduino API conformance (#6084) 2022-01-17 16:12:22 +02:00
StreamString.cpp StreamString SSO fix (#2736) 2019-05-11 11:16:05 +03:00
StreamString.h Convert the few remaining cr/lf files to use lf for eol. (#1316) 2018-04-16 16:34:39 +02:00
Tone.cpp Fixing Tone (#6898) 2022-06-24 13:52:29 +03:00
Udp.h Add virtual beginMulticast(...) stub to UDP class (#4061) 2020-11-02 20:26:50 +02:00
USB.cpp apply the same USB descriptor's iSerialNumber logic for ESP32-S2 as t… (#7563) 2022-12-13 12:33:49 +02:00
USB.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
USBCDC.cpp Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
USBCDC.h Esp32 s3 support (#6341) 2022-03-28 12:09:41 +03:00
USBMSC.cpp Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
USBMSC.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
WCharacter.h Wiring.h -> Arduino.h 2016-10-06 07:09:45 -06:00
wiring_private.h Do not include file that does not exist 2016-11-13 13:26:49 +02:00
wiring_pulse.c Rework pulseIn to work on ESP32-C3 2021-08-02 14:53:11 +03:00
wiring_shift.c Trailing spaces (#3738) 2020-11-02 22:11:26 +02:00
WMath.cpp Adds pseudo random numbers generation (#7848) 2023-02-15 13:26:18 +02:00
WString.cpp Completely inline the helper pure abstract __FlashStringHelper class (#7941) 2023-04-06 13:32:21 +03:00
WString.h Add overloads to support __FlashStringHelper like ESP8266 has them. (#8111) 2023-05-03 20:28:18 +03:00