Commit Graph

59 Commits

Author SHA1 Message Date
C.S.M 4034446cc7 refactor(hal): Cleanup some missing hal files 2025-12-26 10:33:32 +08:00
Vaia Patta ef4f475a73 docs: fix anonymous flags in various structs
I noticed a few structs where the flags didn't show up correctly in the
docs.
Naming the flag struct makes the individual flags appear properly in the
nested struct.

Merges https://github.com/espressif/esp-idf/pull/17803
Closes https://github.com/espressif/esp-idf/issues/17804
2025-11-19 23:12:17 +08:00
Chen Chen d1612b952e refactor(mcpwm): make mcpwm_hal independent & cleanup soc_caps 2025-11-03 09:36:23 +08:00
morris b76254895c refactor(mcpwm): remove varg action setting functions for timer, compare, and brake events 2025-10-09 16:38:39 +08:00
Chen Jichang 4d1a4dfcbe feat(mcpwm): add a new api to get cap value directly 2025-06-25 15:49:07 +08:00
Chen Jichang 77e18528cd feat(mcpwm): change default mcpwm group prescale to 1
Closes https://github.com/espressif/esp-idf/issues/14815
2025-05-27 14:48:14 +08:00
morris c63f51dcb3 refactor(drivers)!: remove unnecessary io_loop_back and pull up/down config option 2025-05-23 18:09:53 +08:00
morris 5cc6cbd4c7 fix(mcpwm): the wrong pm lock type on esp32 and esp32s3 2025-05-08 21:25:47 +08:00
Chen Jichang 8e4ff8bcba feat(mcpwm): support sleep retention 2024-11-07 12:06:31 +08:00
Chen Jichang dd8c545423 fix(mcpwm): add warning about generator deadtime
Closes https://github.com/espressif/esp-idf/issues/14773
2024-10-30 19:35:04 +08:00
Chen Jichang cb097aeb54 refactor(mcpwm): refactor gpio mode config in mcpwm
Deprecate io_loop_back flag. Use capture timer to test generator and
dead time.
2024-10-11 16:36:25 +08:00
Chen Jichang e56f04fdd3 fix(mcpwm): fix pm_lock memory issues 2024-09-27 14:41:34 +08:00
Zhang Shu Xian 9b3728f8ac Merge branch 'docs/update_application_examples_of_mcpwm' into 'master'
docs: Update the application examples in mcpwm.rst

See merge request espressif/esp-idf!32650
2024-08-14 16:30:30 +08:00
Zhang Shuxian 2105adc19c docs: Update the application examples in mcpwm.rst 2024-08-13 12:04:43 +08:00
morris ec2a8a9c81 fix(drivers): rename the nested extra_flags structure 2024-08-13 11:57:08 +08:00
morris de5fb9f070 feat(mcpwm): driver support on esp32-c5 2024-05-26 22:55:03 +08:00
morris 4318f2dc22 docs(mcpwm): add a note about setting sync phase in up down mode
Closes https://github.com/espressif/esp-idf/issues/12782
2023-12-15 17:39:22 +08:00
morris b50d30f860 docs(mcpwm): add missing explanation about keep_io_conf_at_exit
Closes https://github.com/espressif/esp-idf/issues/12579
2023-11-14 14:34:14 +08:00
morris eb5183f503 feat(mcpwm): refactor mcpwm driver into a component 2023-11-09 22:05:06 +08:00
morris 0cbcb9f5ea feat(mcpwm): support update timer period dynamically
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-20 16:57:25 +08:00
morris fd26abebce Merge branch 'refactor/mcpwm_rcc_atomic' into 'master'
MCPWM: add RCC low level functions

Closes IDF-7731, IDF-7722, IDF-7716, IDF-7738, and IDF-7713

See merge request espressif/esp-idf!25959
2023-09-16 01:04:54 +08:00
caixinying-git b07ada6e94 docs: update format issues left in EN docs 2023-09-15 10:46:25 +00:00
morris 608fca9d31 docs(pcnt,mcpwm): document new features for esp32p4 2023-09-15 11:16:04 +08:00
Chen Jichang 7638235311 feat(mcpwm): MCPWM event comparator driver
In esp32p4, the MCPWM has a new feature, mainly ETM-oriented.
Each operator has two event comparators, can generate an event
when the count value of the timer that operator connects is equal
to the value of event comparator.
2023-09-11 16:53:34 +08:00
Chen Jichang fc80d3e568 feat(mcpwm): Set group clock prescale dynamically
MCPWM group clock pre scale was originally fixed to 2, which is
inconvenient. Set group clock prescale dynamically. Now the maximum
resolution of the MCPWM timer is up to 160MHz(when the prescale set
to 1). And add a resulotion config for MCPWM capture.
2023-09-08 11:57:29 +08:00
caixinying-git 0b0c828d5f docs: update format issues for EN and CN files under api-reference/peripherals 2023-08-30 10:08:01 +08:00
Chen Jichang 713324ff9d feat(MCPWM): Support set interrupt priority 2023-08-23 10:44:34 +08:00
Chen Jichang 97d5db32ae feat(MCPWM): Add mcpwm carrier clk source
The MCPWM carrier is part of the operator and can work independently
without the MCPWM timer being enabled. This commit add the MCPWM
carrier clk source.
2023-08-15 13:04:11 +08:00
morris ed36b91517 Merge branch 'feature/mcpwm_trigger_driver' into 'master'
feature(MCPWM): Add MCPWM trigger driver

Closes IDF-3613

See merge request espressif/esp-idf!24829
2023-07-25 18:50:57 +08:00
Chen Jichang 5ab755915b feature(MCPWM): Add MCPWM trigger driver and test
Each MCPWM operator has two Trigger (named T0 and T1), and they can be
routed to GPIO fault signal or timer sync event.Generator can be set up
to perform different action on Trigger event.
This commit add a trigger driver and a test for the driver.
2023-07-25 14:44:41 +08:00
morris b589355a10 feat(mcpwm): support open drain output for generator IO
Closes https://github.com/espressif/esp-idf/issues/11877
2023-07-19 11:32:35 +08:00
morris 72d0f5b35b mcpwm: can't apply the same delay module to multiple generators
This is a hardware limitation, one delay module can only be used by one generator at one time.

Closes https://github.com/espressif/esp-idf/issues/11327
2023-05-09 16:41:47 +08:00
Shang Zhou f53dbc7f7a docs: translate api-reference/peripherals.mcpwm.rst and library-and-framework index from scratch 2023-05-04 15:45:15 +08:00
laokaiyao f27cd67c00 driver: pack peripherals 2023-02-02 18:19:58 +08:00
daiziyan 4667f1b3ef docs: sync up translation for api-reference 2023-02-02 14:44:13 +08:00
morris 592673b052 mcpwm: support non-varg version of generator functions
Closes https://github.com/espressif/esp-idf/issues/10449
2023-01-03 14:42:49 +08:00
morris 0d62238428 doc: update mcpwm for esp32c6 2022-10-20 11:55:03 +08:00
Ivan Grokhotkov 8048d596a2 docs: remove duplicate "the" articles 2022-10-05 11:58:23 +02:00
morris c99edc6715 mcpwm: make set_compare_value iram safe
Closes https://github.com/espressif/esp-idf/issues/9793
2022-09-21 13:37:49 +00:00
Marius Vikhammer 8540e7a772 docs: fixed misc broken links 2022-09-18 15:03:39 +08:00
Linda 4cd5be859a docs: fix a broken link in mcpwm of API reference 2022-09-01 18:52:25 +08:00
morris 1d4c08cef4 mcpwm: added enable/disable functions
Closes https://github.com/espressif/esp-idf/pull/9523
2022-08-15 14:46:56 +08:00
morris e4868548c7 doc: update MCPWM api reference with new driver API 2022-07-27 15:22:24 +08:00
morris e36f47a153 doc: API reference for GPTimer 2022-01-07 14:59:09 +08:00
SalimTerryLi 932d4d13f0 MCPWM/sync: expose API for configuring timer sync
removed example: mcpwm_basic_config

Closes https://github.com/espressif/esp-idf/issues/5429

Co-authored-by: wubowen <wubowen@espressif.com>
2021-09-09 17:33:37 +08:00
Shang Zhou be189b1cfd updated the TOC of ESP-IDF API Reference to make it consistet with the real section title 2021-09-03 16:27:14 +08:00
morris 0dbe872542 mcpwm: bldc hall example 2021-08-24 15:38:46 +08:00
SalimTerryLi e5ddc12a08 MCPWM/capture: API workflow optimization
deprecate isr_register to introduce new callback based API, with framework managed interrupt routine
new HC-SR04 example
2021-08-05 19:12:58 +08:00
SalimTerryLi f4314af913 MCPWM: expose API to set timer resolution
Closes https://github.com/espressif/esp-idf/issues/1101
2021-07-30 18:52:17 +08:00
morris 8cfac8ec38 doc: fix wrong info in MCPWM api reference 2021-07-26 22:32:45 +08:00