Commit Graph

20 Commits

Author SHA1 Message Date
wanlei
57614bbad2 feat(ledc): support ledc on esp32p4 2023-10-17 16:40:04 +08:00
Song Ruo Jing
814159448b Merge branch 'feature/ledc_cal_duty_resolution' into 'master'
feat(ledc): add ledc_find_suitable_duty_resolution function

Closes IDFGH-10569

See merge request espressif/esp-idf!25208
2023-10-10 20:34:09 +08:00
IhorNehrutsa
9ced54699e feat(ledc): add ledc_find_suitable_duty_resolution helper function
Helper function to find the maximum possible duty resolution in bits
for ledc_timer_config()

Merges https://github.com/espressif/esp-idf/pull/11810
2023-10-09 12:46:46 +08:00
Song Ruo Jing
66821f699c refactor(ledc): move related kconfig and linker.lf to its own folder 2023-10-02 07:32:16 +00:00
Song Ruo Jing
f5f44e2ce5 fix(ledc): always allocate memory from internal ram 2023-10-02 07:32:16 +00:00
Song Ruo Jing
821f7b0498 fix(ledc): fix ledc driver 100% duty cycle configuration
Update ledc duty cycle value range in doxygen.
Fix duty configuration error at 100% duty cycle for ESP32.
Improve LEDC API doxygen.

Closes https://github.com/espressif/esp-idf/pull/11516
Closes https://github.com/espressif/esp-idf/issues/12083
2023-10-02 07:32:16 +00:00
Darian Leung
6fc935e584 refactor(freertos): Refactor usage of portBASE_TYPE to BaseType_t
portBASE_TYPE is an internal macro defined by the porting layer. This commit
changes all references to BaseType_t which is the official type exposed by
FreeRTOS.
2023-07-31 17:10:34 +02:00
IhorNehrutsa
909d8b6db5 fix(ledc): fix frequency calculation
ledc.c: Fix frequency calculation.
Round int instead of truncate.

Merges https://github.com/espressif/esp-idf/pull/11810
2023-07-10 11:45:09 +08:00
Lou Tianhao
7fd74057a3 example: bringup light sleep example for esp32h2 2023-06-26 21:05:16 +08:00
Konstantin Kondrashov
c350c3c504 Merge branch 'feature/cleanup_wrong_log_use' into 'master'
all: Removes unnecessary newline character in logs

Closes IDFGH-10197

See merge request espressif/esp-idf!24131
2023-06-15 21:49:49 +08:00
Chen Jichang
5150c578fd ledc:add option to put LEDC function into IRAM
The caches are disabled when reading/writing/erasing flash.
All CPUs should always execute code and access data from internal RAM.
Add an IRAM option to enhance the performance of LEDC.

Closes https://github.com/espressif/esp-idf/issues/11554
2023-06-14 18:12:01 +08:00
KonstantinKondrashov
e72061695e all: Removes unnecessary newline character in logs
Closes https://github.com/espressif/esp-idf/issues/11465
2023-06-09 03:31:21 +08:00
Song Ruo Jing
a4e8960ab4 esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h 2023-04-25 14:12:06 +08:00
Song Ruo Jing
fcc6514dde ledc: Add an all-in-one HAL function to set fade parameters, and refactor ledc_ll_get_max_duty function 2023-04-21 16:40:54 +08:00
Song Ruo Jing
64aec54308 ledc: Add timer selection check to the driver, and leave space for future clk tree management 2023-04-21 16:40:54 +08:00
Song Ruo Jing
5070e51dde ledc: Fix two bugs inside LEDC driver
1. Regression introduced when refactoring on clock sources selection (0d07f859).
   If channel configuration is called before timer configuration on C6, PWM signal may not be able to output.
2. Missing the improper fade parameter fix inside ledc_set_duty_and_update() function.
2023-04-06 12:37:33 +08:00
Song Ruo Jing
79f34fe524 ledc: Support gamma curve fade feature on esp32c6 and esp32h2 2023-03-10 12:42:46 +08:00
Song Ruo Jing
eab8abd877 ledc: Fix improper fade parameters for one-time duty set
Valid step and cycle values starts from 1.
scale = 0 indicates no change in duty for this linear fade.
2023-02-28 20:13:52 +08:00
Song Ruo Jing
2c2a62e323 clk_tree: Add basic clock support for esp32h2
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration

Remove FPGA build for esp32h2
2023-02-20 17:15:02 +08:00
laokaiyao
f27cd67c00 driver: pack peripherals 2023-02-02 18:19:58 +08:00