morris
efafacae40
Merge branch 'feature/mcpwm_timer_change_freq_v5.1' into 'release/v5.1'
...
feat(mcpwm): support update timer period dynamically (v5.1)
See merge request espressif/esp-idf!26624
2023-11-13 17:55:52 +08:00
gaoxu
c5e107c53d
feat(adc_cali): Add ADC calibration support for ESP32H2
2023-11-13 03:04:03 +00:00
Armando
6de9757a4b
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
...
By design, it's 12 dB. There're errors among chips, so the actual
attenuation will be 11dB more or less
2023-11-07 14:09:21 +08:00
Song Ruo Jing
4892c481b5
feat(gpio): add a dump API to dump IO configurations
...
Merges https://github.com/espressif/esp-idf/pull/12511
2023-11-03 16:21:31 +08:00
morris
9b4a42e728
feat(mcpwm): support update timer period dynamically
...
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-24 10:11:47 +08:00
morris
46817f4edd
Merge branch 'bugfix/parlio_tx_dma_descriptor_v5.1' into 'release/v5.1'
...
fix(parlio_tx): fix wrong dma descriptor setup (v5.1)
See merge request espressif/esp-idf!26253
2023-10-12 13:39:08 +08:00
Michael (XIAO Xufeng)
1c3b8656d3
Merge branch 'bugfix/rmt_pm_lock_type_v5.1' into 'release/v5.1'
...
fix(rmt): use ESP_PM_CPU_FREQ_MAX for RMT for non-dma channel (v5.1)
See merge request espressif/esp-idf!26258
2023-10-12 12:31:47 +08:00
Jiang Jiang Jian
6b1f40b9bf
Merge branch 'bugfix/uart_poll_fails_for_pollout_event_v5.1' into 'release/v5.1'
...
UART: UART_SELECT_WRITE_NOTIF event added in UART driver (v5.1)
See merge request espressif/esp-idf!26191
2023-09-28 13:37:00 +08:00
morris
ea5e7490f3
Merge branch 'bugfix/usb_serial_jtag_write_return_val_v5.1' into 'release/v5.1'
...
bugfix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly (backport v5.1)
See merge request espressif/esp-idf!26174
2023-09-27 18:37:36 +08:00
morris
35f1a02ebf
fix(rmt): fixed unstable transfer during DFS
...
Closes https://github.com/espressif/esp-idf/issues/12292
2023-09-27 16:56:47 +08:00
morris
584250aa2d
Merge branch 'bugfix/temp_clk_gate_v5.1' into 'release/v5.1'
...
fix(temperature_snesor): Put clock gate enable/disable in to sar_periph_ctrl together(backport v5.1)
See merge request espressif/esp-idf!26171
2023-09-27 15:11:38 +08:00
morris
e5c8434c6e
fix(parlio_tx): fix wrong dma descriptor setup
2023-09-27 14:53:53 +08:00
Sonika Rathi
199205026e
UART: UART_SELECT_WRITE_NOTIF event added in UART driver
...
Closes https://github.com/espressif/esp-idf/issues/10986
2023-09-25 10:36:44 +02:00
morris
1cbed4e2c1
fix(intr): always allocate memory from internal ram
...
Closes https://github.com/espressif/esp-idf/issues/12271
2023-09-25 15:41:15 +08:00
Cao Sen Miao
518212a8f6
fix(usb_serial_jtag): Clean-up usb_serial_jtag lose byte fix, Closes https://github.com/espressif/esp-idf/pull/11344
2023-09-25 11:05:05 +08:00
Chip Weinberger
0ed7093fb2
[Usb Serial JTAG] printing to console could sometimes skip bytes
2023-09-25 11:04:55 +08:00
Cao Sen Miao
69d283b9ae
fix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly,
...
Closes https://github.com/espressif/esp-idf/issues/12119 ,
Closes https://github.com/espressif/esp-idf/pull/11344 ,
Closes https://github.com/espressif/esp-idf/issues/9318
Closes https://github.com/espressif/esp-idf/issues/11192
2023-09-25 11:04:16 +08:00
Cao Sen Miao
73c78c20a6
fix(temperature_snesor): Put clock gate enable/disable in to sar_periph_ctrl together
2023-09-25 10:57:06 +08:00
Chen Jichang
d8e5b2ac41
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-11 11:29:28 +08:00
Michael (XIAO Xufeng)
8ff8486735
Merge branch 'fix/spi_polling_api_buslock_logic_v5.1' into 'release/v5.1'
...
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed (v5.1)
See merge request espressif/esp-idf!25576
2023-09-06 14:01:25 +08:00
Planck (Lu Zeyu)
3b9c57ac32
feat(rmt): specify interrupt priority
2023-09-04 13:12:02 +08:00
wanlei
6aa9086206
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed
...
Close https://github.com/espressif/esp-idf/issues/11845
2023-08-31 21:15:14 +08:00
morris
8da2c57889
Merge branch 'feature/mcpwm_interrupt_prioity_v5.1' into 'release/v5.1'
...
feat(MCPWM): Support set interrupt priority(v5.1)
See merge request espressif/esp-idf!25573
2023-08-28 11:21:55 +08:00
morris
2a80451b24
Merge branch 'feature/add_mcpwm_carrier_clk_source_v5.1' into 'release/v5.1'
...
feat(MCPWM): Add mcpwm carrier clk source(v5.1)
See merge request espressif/esp-idf!25572
2023-08-28 11:11:04 +08:00
morris
dabbc8b70e
Merge branch 'feature/pcnt_interrupt_prioity_v5.1' into 'release/v5.1'
...
feat(pcnt): support set interrupt priority(v5.1)
See merge request espressif/esp-idf!25575
2023-08-28 10:58:25 +08:00
morris
ce6d7ba1bb
Merge branch 'feature/default_clock_source_can_leave_empty_v5.1' into 'release/v5.1'
...
feat(mcpwm): default clock source setting can leave empty (v5.1)
See merge request espressif/esp-idf!25548
2023-08-26 17:52:21 +08:00
Chen Jichang
92cc9fca07
feat(pcnt): support set interrupt priority
2023-08-25 17:47:52 +08:00
Chen Jichang
d3aba34baa
feat(MCPWM): Support set interrupt priority
2023-08-25 17:41:31 +08:00
Chen Jichang
c240a1f46b
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-25 17:34:58 +08:00
morris
9080a7ac7c
Merge branch 'bugfix/fix_legacy_adc_continuous_driver_dma_descriptor_not_internal_issue_v5.1' into 'release/v5.1'
...
adc: fixed legacy adc continuous driver dma descriptor not in internal ram issue (v5.1)
See merge request espressif/esp-idf!25508
2023-08-25 10:38:09 +08:00
morris
842f5385a3
feat(mcpwm): default clock source setting can leave empty
2023-08-25 10:29:57 +08:00
morris
3d8744476b
fix(adc): invalid assertion on the adc_unit
2023-08-25 10:18:03 +08:00
morris
3a79e3694c
Merge branch 'bugfix/twai_install_returns_error_on_intr_alloc_fail_v5.1' into 'release/v5.1'
...
TWAI: twai_driver_install() returns error on interrupt allocation failure (GitHub PR) (v5.1)
See merge request espressif/esp-idf!24823
2023-08-24 10:11:57 +08:00
morris
ed6e997d4c
Merge branch 'feature/gptimer_interrupt_priority_v5.1' into 'release/v5.1'
...
feat(gptimer): support set interrupt priority (v5.1)
See merge request espressif/esp-idf!25199
2023-08-24 10:07:48 +08:00
morris
54ef954292
Merge branch 'contrib/github_pr_11878_v5.1' into 'release/v5.1'
...
feat(mcpwm): Allow for pull up/down to be configurable on generators (GitHub PR) (v5.1)
See merge request espressif/esp-idf!24893
2023-08-24 10:07:35 +08:00
morris
f41df5641a
Merge branch 'bugfix/gptimer_hal_placement_wrong_condition_v5.1' into 'release/v5.1'
...
fix(gptimer): hal function placement under wrong condition (v5.1)
See merge request espressif/esp-idf!25280
2023-08-23 23:21:20 +08:00
Jiang Jiang Jian
b638cb3335
Merge branch 'bringup/esp32h2_deep_sleep_for_rebase_v5.1' into 'release/v5.1'
...
esp32h2: support deep_sleep(backport v5.1)
See merge request espressif/esp-idf!24962
2023-08-23 20:12:01 +08:00
Armando
71f2f98b60
adc: fixed legacy adc continuous driver dma descriptor not in internal ram issue
2023-08-23 19:44:25 +08:00
Cao Sen Miao
45288496fb
bugfix(temperature_sensor): Fix issue that get the value is negative
2023-08-17 10:06:22 +08:00
Nebojsa Cvetkovic
075bbb526c
twai: twai_driver_install() returns error on interrupt allocation failure
...
This commit updates twai_driver_install() so that an error is returned when
esp_intr_alloc() fails, instead of aborting.
Closes https://github.com/espressif/esp-idf/pull/11494
[darian@espressif.com: Refactored object allocation and free procedures]
[darian@espressif.com: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2023-08-15 03:26:10 +00:00
morris
b7aea79cb8
fix(gptimer): hal function placement under wrong condition
...
timer_hal_capture_and_get_counter_value
should be placed in the IRAM for speed optimization
because the default ISR handler is placed in the IRAM.
Closes https://github.com/espressif/esp-idf/issues/12021
2023-08-14 02:31:16 +00:00
morris
c113507ad7
feat(gptimer): add gptimer linker.lf to control the placement of driver and hal
...
since the linker placement of the hal functions are controlled by the Kconfig in the driver component,
we should create the linker.lf in the driver component, not in the hal component.
2023-08-14 02:31:16 +00:00
morris
b68519cb17
feat(gptimer): support set interrupt priority
...
Related forum post: https://esp32.com/viewtopic.php?f=13&t=34959
2023-08-04 10:20:07 +08:00
Lou Tianhao
830a627362
remove(pm/deep_sleep): enable CI test for esp32h2 deepsleep
2023-08-03 16:46:55 +08:00
Song Ruo Jing
6768f098dc
change(driver/rtcio): Describe RTCIO CAPS with more accurate note
2023-08-03 16:46:55 +08:00
Song Ruo Jing
125014d242
fix(gpio): fix potential crash when processing gpio isr
...
If CONFIG_SPIRAM_USE_MALLOC is enabled, and cache is disabled when GPIO ISR is triggered,
it would lead to Guru Meditation Error due to "Cache disabled but cached memory region accessed".
Closes https://github.com/espressif/esp-idf/issues/11876
2023-07-26 12:42:11 +00:00
morris
c8ec729252
feat(mcpwm): support open drain output for generator IO
...
Closes https://github.com/espressif/esp-idf/issues/11877
2023-07-21 05:08:20 +00:00
Anne Brondijk
c818ddd282
feat(mcpwm): Allow for pull up/down to be configurable on generators
2023-07-21 05:08:20 +00:00
morris
9021fab579
Merge branch 'feature/use_esp_rom_delay_us_to_test_the_accuracy_of_gptimer_v5.1' into 'release/v5.1'
...
refactor(driver/gptimer): replace vTaskDelay with esp_rom_delay_us in test_apps(v5.1)
See merge request espressif/esp-idf!24724
2023-07-13 17:38:40 +08:00
Chen Jichang
649541e6e3
refactor(driver/gptimer): replace vTaskDelay
...
with esp_rom_delay_us in test_apps
This commit replaces vTaskDelay with esp_rom_delay_us in the gptimer
driver. The former function can introduce millisecond jitter due to
OS task switching, while the latter has less jitter because of the
polling delay. Therefore this commit reduces the delta values for
various timer tests.
Changes made in this commit include:
- Replacing vTaskDelay with esp_rom_delay_us
- Adjusting delta values for various timer tests
2023-07-13 11:29:39 +08:00
Armando
d8ee45ce08
adc: port gh pr to current adc continuous mode driver
...
DMA EOF may happens per multiple dma descriptors, instead of only one.
Closes https://github.com/espressif/esp-idf/pull/11500
2023-07-12 16:41:24 +08:00
Niklas Gürtler
5da5e1801b
Fix #10804 by running continuous ADC DMA in endless loop instead of restarting after each run (descriptor chain) to avoid losing samples. Use descriptor error callback for GDMA to check for DMA buffer overrun.
...
Signed-off-by: Armando <douyiwen@espressif.com>
2023-07-12 16:41:19 +08:00
Armando
f76f3dc83f
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue
...
Closes https://github.com/espressif/esp-idf/issues/11385
2023-07-12 16:41:11 +08:00
Jiang Jiang Jian
9fb1b59054
Merge branch 'bringup/esp32h2_light_sleep_for_rebase_backport_v5.1' into 'release/v5.1'
...
esp32h2: support light_sleep(backport v5.1)
See merge request espressif/esp-idf!24697
2023-07-12 13:39:49 +08:00
morris
a0e8f5aa03
Merge branch 'contrib/github_pr_10811_5.1' into 'release/v5.1'
...
i2c: introduce chip specific cmd register number(backport v5.1)
See merge request espressif/esp-idf!24694
2023-07-12 11:15:03 +08:00
IhorNehrutsa
1d158ddd10
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-11 15:22:34 +08:00
Hanno
c2b8a1d95c
i2c: introduce chip specific cmd register number
...
Merges https://github.com/espressif/esp-idf/pull/10811
2023-07-11 14:55:46 +08:00
Lou Tianhao
2c9a2a76f7
example: bringup light sleep example for esp32h2
2023-07-11 13:58:08 +08:00
Cao Sen Miao
e493a99da2
temperature_sensor: Apply new-shared interface in temperature sensor driver
2023-07-10 11:16:09 +08:00
laokaiyao
e90a2d50c4
adc_cali: supported channel compensation of adc calibration on esp32c6
2023-07-05 12:48:11 +08:00
morris
0e4c071519
Merge branch 'bugfix/fix_i2s_ll_cpp_compilation_failure_v5.1' into 'release/v5.1'
...
i2s: fixed i2s_ll compiling failure under C++ environment (v5.1)
See merge request espressif/esp-idf!24401
2023-07-04 11:03:35 +08:00
morris
4f0f317d54
Merge branch 'bugfix/mcpwm_legacy_typo_v5.1' into 'release/v5.1'
...
mcpwm: fix typo in backward compatible macro name (v5.1)
See merge request espressif/esp-idf!24227
2023-07-03 16:11:20 +08:00
morris
cacb45d450
Merge branch 'bugfix/coverity_scan_fix_driver_v5.1' into 'release/v5.1'
...
ADC: Fixed potential multiply overflow in the calibration code (v5.1)
See merge request espressif/esp-idf!24091
2023-07-03 13:40:22 +08:00
laokaiyao
13e74d5573
i2s: fixed i2s_ll compiling failure under C++ evironment
...
Closes: https://github.com/espressif/esp-idf/issues/11625
2023-06-26 15:42:36 +08:00
morris
896b382015
mcpwm: fix typo in backward compatible macro name
2023-06-15 10:58:15 +08:00
morris
3d7f7c32e3
adc: fix out of bound read
...
when SOC_ADC_PERIPH_NUM==1, the adc_unit should only be assigned with 0
2023-06-12 15:19:17 +08:00
morris
b845c66748
spi_master: fix the assertion on a NULL desired_dev
...
Closes https://github.com/espressif/esp-idf/issues/11536
2023-06-01 02:50:45 +00:00
Jiang Jiang Jian
9310ed608e
Merge branch 'contrib/github_pr_10532_v5.1' into 'release/v5.1'
...
[SDMMC Mount] fix infinite loop when SD card is not responsive (GitHub PR) (v5.1)
See merge request espressif/esp-idf!23527
2023-05-20 07:35:38 +08:00
Adam Múdry
6477500cf1
sdmmc: incrementally increase delay of vTaskDelay
...
Prevents unnecessary slowdown in polling functions
2023-05-19 14:01:43 +02:00
Sudeep Mohanty
267c5e37a2
lp-i2c: Added support for LP I2C peripheral to LP core
...
This commit adds support for the LP I2C peripheral driver to be used by
the LP core. An example is also added to demonstrate the usage of the LP
I2C peripheral from the LP core.
2023-05-19 07:33:01 +02:00
morris
f79088f115
Merge branch 'bugfix/add_len_check_per_spi_master_transaction_v5.1' into 'release/v5.1'
...
spi master: added transaction length check to refuse longer than hardware supported length (v5.1)
See merge request espressif/esp-idf!23747
2023-05-18 16:47:18 +08:00
morris
0814386710
Merge branch 'refactor/driver_ut_to_test_app_v5.1' into 'release/v5.1'
...
CI: Move all UT in driver to test_app(backport v5.1)
See merge request espressif/esp-idf!23708
2023-05-18 16:18:26 +08:00
Armando
8702e49057
spi: added an API to get max transaction length and use in spi lcd driver
2023-05-17 09:03:26 +00:00
Armando
4943844764
spi: added transaction length check to refuse longer than hardware supported length
2023-05-17 09:03:26 +00:00
Cao Sen Miao
df7a27e36d
CI: Move all UT in driver to test_app
2023-05-16 16:42:28 +08:00
morris
b7199e88b7
Merge branch 'bugfix/mcpwm_bldc_example_v5.1' into 'release/v5.1'
...
mcpwm: test generator force level with dead time module (v5.1)
See merge request espressif/esp-idf!23714
2023-05-15 10:00:00 +08:00
Marius Vikhammer
e35897db33
Merge branch 'feature/heap-in-flash_v5.1' into 'release/v5.1'
...
heap: Add a configuration that places all the heap component in flash (v5.1)
See merge request espressif/esp-idf!23377
2023-05-12 15:57:31 +08:00
morris
a7021c3e44
mcpwm: fix bldc example force output level inverted
...
set_force_level can only set the generator level before the deadtime module.
if the deadtime module enables the inverter, then the real output level is inverted accordingly
2023-05-12 14:40:10 +08:00
morris
190e9e7212
Merge branch 'bugfix/fix_several_bugs_in_i2s_v5.1' into 'release/v5.1'
...
i2s: fix several bugs in std and tdm mode (v5.1)
See merge request espressif/esp-idf!23669
2023-05-12 11:05:34 +08:00
morris
cf5e2c3962
Merge branch 'doc/update_mcpwm_deadtime_v5.1' into 'release/v5.1'
...
MCPWM: don't allow to apply the same delay module to multiple generators (v5.1)
See merge request espressif/esp-idf!23663
2023-05-11 16:13:23 +08:00
laokaiyao
653ba59b23
i2s_tdm: fixed half sample bit calculation and added check for slot mask
2023-05-10 12:34:14 +08:00
laokaiyao
319e0689a5
i2s_std: fixed mclk check for 24-bit data and enable left alignment as default
2023-05-10 12:32:38 +08:00
morris
6b86fc7ad7
Merge branch 'test/enlarge_gptimer_test_threshold_v5.1' into 'release/v5.1'
...
gptimer: enlarge test threshold (v5.1)
See merge request espressif/esp-idf!23622
2023-05-10 10:39:45 +08:00
morris
7b93cf91aa
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-10 10:09:48 +08:00
Darian Leung
3948949019
driver: Fix ana_cmpr negative enum comparison
...
The C17 standard (sec 6.7.2.2) indicates that the underlying type of an enum is
implementation defined (i.e., can be signed or unsigned). Thus, comparing
"-1 >= some_enum" where "some_enum" is always 0 or largert can return true if
the compiler uses unsigned for enums.
This commit fixes the following issues with ana_cmpr:
- Fixed incorrect comparison in ana_cmpr_del_unit() that relied on enums being
signed, thus would always return true.
- Fixed incorrect expected argument in the "ana_cmpr_unit_install_uninstall"
test. This was not picked up due to the incorrect enum comparison above.
2023-05-08 17:11:52 +08:00
morris
864f5532fa
gptimer: enlarge test threshold
2023-05-08 10:18:58 +08:00
morris
d12ad17373
rmt: check filter and idle threashold
...
Closes https://github.com/espressif/esp-idf/issues/11262
2023-05-05 19:07:59 +08:00
morris
2004bf4e11
Merge branch 'bugfix/rmt_one-wire_v5.1' into 'release/v5.1'
...
rmt_onewire: refactor example with component registry (v5.1)
See merge request espressif/esp-idf!23509
2023-05-04 13:32:18 +08:00
Adam Múdry
62a5ad5fc1
sdmmc: add vTaskDelay to loops to prevent potential WDT trigger
...
Also change timeout to 120 seconds in fatfs sdcard pytest to prevent failing during formatting.
2023-04-28 12:39:08 +02:00
Chip Weinberger
c7ca30e62f
[SDMMC] add reasonable timeouts to all while loops
...
Closes: https://github.com/espressif/esp-idf/pull/10532
2023-04-28 12:39:06 +02:00
Chip Weinberger
6ff1059da7
[SDMMC Mount] fix infinite loop when SD card is not responsive
...
Closes: https://github.com/espressif/esp-idf/pull/10532
2023-04-28 12:37:27 +02:00
morris
cbd210b431
Merge branch 'refactor/rename_to_esp_clk_tree_prefix_v5.1' into 'release/v5.1'
...
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx (v5.1)
See merge request espressif/esp-idf!23449
2023-04-28 17:11:46 +08:00
morris
14dac35540
rmt_onewire: refactor example with component manager
...
Closes https://github.com/espressif/esp-idf/issues/10790
2023-04-28 13:38:33 +08:00
Jiang Jiang Jian
d89db7e4a7
Merge branch 'feature/spi_hal_move_out_iram_v5.1' into 'release/v5.1'
...
spi: change linker file to move spi hal out from iram (v5.1)
See merge request espressif/esp-idf!23448
2023-04-27 23:31:16 +08:00
Song Ruo Jing
202b18b5fa
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-27 11:11:18 +00:00
morris
3048251be0
Merge branch 'ci/pytest_case_tester_script_fix_v5.1' into 'release/v5.1'
...
ci: pytest automation script increase timeout time (v5.1)
See merge request espressif/esp-idf!23447
2023-04-27 17:35:51 +08:00
morris
2bc721739c
Merge branch 'bugfix/i2s_tdm_multi_dev_on_h2_v5.1' into 'release/v5.1'
...
i2s: fixed tdm multi dev test on h2 (v5.1)
See merge request espressif/esp-idf!23475
2023-04-27 13:20:03 +08:00
Shu Chen
856cfa4ae2
Merge branch 'refactor/remove_esp32h4_target_v5.1' into 'release/v5.1'
...
esp32h4: remove esp32h4 target (v5.1)
See merge request espressif/esp-idf!23422
2023-04-27 09:37:51 +08:00
morris
aedcec9be5
Merge branch 'feature/emmc_example_v5.1' into 'release/v5.1'
...
SDMMC Host: added an example to communicate with an eMMC chip and also a bugfix for Host timing (v5.1)
See merge request espressif/esp-idf!23283
2023-04-26 22:41:15 +08:00
laokaiyao
0aad1efe15
i2s: fixed tdm multi dev test on h2
2023-04-26 18:55:36 +08:00