Song Ruo Jing
4cd54d6e32
ledc: Fix the usage of ledc_ls_timer_update and ledc_timer_rst
...
ledc_ls_timer_update is required only when CLK_DIV and DUTY_RES bits are changed.
Calling ledc_timer_rst while re-configure PWM frequency through ledc_set_freq can cause glitch in the signal
2022-09-20 12:04:13 +08:00
Michael (XIAO Xufeng)
5666813ce0
Merge branch 'bugfix/driver_rs485_fix_test_sync_issues_v43' into 'release/v4.3'
...
driver: uart rs485 fix test sync issues and fail threshold (backport v4.3)
See merge request espressif/esp-idf!19611
2022-09-19 16:16:01 +08:00
Alex Lisitsyn
ec7bab9b19
driver: uart rs485 fix test sync issues and fail threshold (backport v4.3)
2022-09-19 16:16:00 +08:00
Armando
e1a5315ff7
adc: ignore ADC DMA single read test on esp32s2
...
This test is only on esp32s2, and using verification adc APIs.
This commit keeps the code, but don't check it on ci
2022-09-09 16:03:10 +08:00
Omar Chebib
65cfc9e656
UART: Fix custom ISR unit test
...
On ESP32, UART_INTR_BRK_DET may be triggered after setting the new ISR handler.
Disable these interrrupts.
2022-03-09 04:34:00 +00:00
Omar Chebib
5f27ec9157
UART: fix a bug preventing the user from freeing a previously registered ISR
...
* Closes https://github.com/espressif/esp-idf/issues/8150
2022-03-09 04:34:00 +00:00
songruojing
f5f7a77895
gpio: Fix the bug that gpio interrupt cannot be triggered on app cpu on ESP32S3
...
Closes https://github.com/espressif/esp-idf/issues/7885
(cherry picked from commit 91f1159f9c
)
2022-02-28 16:10:37 +08:00
Michael (XIAO Xufeng)
6f99b8da73
Merge branch 'bugfix/gpio_pin_num_fix_v4.3' into 'release/v4.3'
...
gpio: Fix some gpio pin num errors on esp32s2 and esp32c3 (backport v4.3)
See merge request espressif/esp-idf!17109
2022-02-23 03:28:15 +00:00
Michael (XIAO Xufeng)
d3df24d950
Merge branch 'bugfix/ledc_consecutive_fade_v4.3' into 'release/v4.3'
...
ledc: Bugfixes for issues related to fade protection (backport v4.3)
See merge request espressif/esp-idf!16661
2022-02-19 17:38:15 +00:00
Jiang Jiang Jian
df7cfa025c
Merge branch 'bugfix/fix_esp_restart_does_not_reset_timer_groups_periph_v43' into 'release/v4.3'
...
modbus: fix esp restart does not reset timer groups periph (backport v4.3)
See merge request espressif/esp-idf!15501
2022-02-16 04:05:38 +00:00
Alex Lisitsyn
e48f87468e
modbus: fix esp restart does not reset timer groups periph (backport v4.3)
2022-02-16 04:05:37 +00:00
songruojing
7b70f6e135
ledc: Fix FADE_NO_WAIT mode concurrency problem.
...
Add test cases for fade concurrency issue and fade timing check.
Closes https://github.com/espressif/esp-idf/issues/6710
(cherry picked from commit be2ab09832
)
2022-02-15 11:29:33 +08:00
songruojing
b1017de2e6
gpio: Fix some gpio pin num errors on esp32s2 and esp32c3
2022-02-10 20:27:43 +08:00
morris
81e3035f4d
rmt: do not support rx wrap on esp32s2
...
Closes https://github.com/espressif/esp-idf/issues/8354
2022-02-09 18:23:44 +08:00
Omar Chebib
a5a4718600
UART: RX interrupts are now properly restored after a flush
...
Added a unit test to make sure the expected behavior happens
2022-01-27 10:53:41 +08:00
Marius Vikhammer
44af11f38c
spi-slave: fix single-board: hd test failing due to DMA buffers ending up in PSRAM
2021-12-08 12:17:06 +08:00
Gustavo Henrique Nihei
de7d86b8a1
driver: Refactor and clean up SPI Slave test
2021-11-25 12:03:55 +08:00
Gustavo Henrique Nihei
7b587bf1d7
driver: Create TX/RX-only test cases for SPI Slave
2021-11-25 12:03:55 +08:00
morris
be1539f926
Merge branch 'bugfix/rotary_encoder_v4.3' into 'release/v4.3'
...
bugfix:rotary encoder example isr service install(backport v4.3)
See merge request espressif/esp-idf!14351
2021-09-17 08:57:05 +00:00
Marius Vikhammer
e741161b2e
Merge branch 'bugfix/renable_unit_tests_v4.3' into 'release/v4.3'
...
ci: enable previously disabled unit tests (v4.3)
See merge request espressif/esp-idf!13775
2021-09-08 09:03:32 +00:00
Marius Vikhammer
0b8ed8d76e
ci: enable previously disabled unit tests
2021-07-29 09:29:29 +08:00
Armando
96de941a6e
spi_master: fix cmd test ci failure
2021-07-27 10:28:13 +08:00
bizhuangyang
835d1b0bac
bugfix:rotary encoder example isr service install
...
Fix the issue mentioned when using two or more encoders. Modify PCNT_CTRL_GND_IO
to avoid the affect of USB JTAG(origin pin 19 is used for USB D-). Update esp32c3.
peripherals.ld and docs for esp32s3.
Closes https://github.com/espressif/esp-idf/issues/6889
2021-07-14 10:13:21 +08:00
Cao Sen Miao
ba1ce2ebd0
I2C: enable all unit test for i2c on esp32c3
2021-04-27 17:13:47 +08:00
Omar Chebib
84dc42c4b0
gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3
...
When `DIS_USB_JTAG` eFuse is NOT burned (`False`), it is not possible
to set pins 18 and 19 as GPIOs. This commit solves this by manually
disabling USB JTAG when using pins 18 or 19.
The functions shall use `gpio_hal_iomux_func_sel` instead of
`PIN_FUNC_SELELECT`.
2021-04-12 17:45:06 +08:00
Armando
670b057b04
spi: remove HSPI macro on esp32c3 and esp32s3
2021-04-06 15:30:28 +08:00
Armando
62787fc277
spi: update slv dual board test for ci due to no pullup resistor on io10 on c3
2021-03-30 17:11:23 +08:00
Armando
41bee7831f
adc: apply gdma api to adc on esp32c3
2021-02-25 18:53:32 +08:00
Armando
8a2f91b48a
spi: add enum for spi dma channels
2021-02-25 11:03:18 +08:00
Armando
66d10f0eec
spi: refactor spi_common dma allocator
2021-02-25 11:01:33 +08:00
Armando
97f248d22c
spi: update unit tests to spi gdma allocator
2021-02-25 11:01:27 +08:00
Michael (XIAO Xufeng)
09b827b2c8
Merge branch 'feature/spi_slave_double_board_test_for_slave_transaction' into 'master'
...
spi slave: add a double board test for esp32c3 relating to sending/receiving unaligned data
See merge request espressif/esp-idf!11153
2021-02-05 00:51:24 +08:00
Michael (XIAO Xufeng)
52a76867d1
Merge branch 'bugfix/spi_lose_last_3_bytes' into 'master'
...
spi_master: fix an issue where master cannot correctly receive data when using DMA in halfduplex mode.
Closes IDFGH-612
See merge request espressif/esp-idf!11354
2021-02-04 18:35:48 +08:00
Martin Vychodil
69096ddce5
Security: ESP32C3 memory protection feature (IRAM0/DRAM0)
...
Software support for PMS module.
Allows controlled memory access to IRAM (R/W/X) and DRAM0 (R/W)
On/locked by default, configurable in Kconfig (esp_system)
Closes https://jira.espressif.com:8443/browse/IDF-2092
2021-01-27 08:44:03 +01:00
Michael (XIAO Xufeng)
baedf7c9bb
Merge branch 'bugfix/potential_cocurrency_issue_in_gdma' into 'master'
...
gdma: fix potential cocurrency issue
Closes IDF-2646
See merge request espressif/esp-idf!12001
2021-01-27 15:07:35 +08:00
Michael (XIAO Xufeng)
2b83418141
adc: add fallback calibration method
...
Also:
1. Separate static configuration into init phase to improve
performance
2. Add a init code config layer to avoid duplicated configuration
3. Add a HW_CALIBRATION_V1 caps
2021-01-25 20:30:42 +08:00
Armando
d8a4b247b9
adc_digi: update_adc_api_for_5M_freq_limit
...
The ``adc_digi_config_t`` struct is modified on esp32c3: configuration
of clock divider factors are not provided anymore. The SARADC sampling
frequency is provided instead. In this way, we can handle the frequency
limit better.
2021-01-25 04:51:40 +00:00
Armando
02600309c8
adc: fix some regression issues
2021-01-25 04:51:40 +00:00
Michael (XIAO Xufeng)
d7d1dee208
system: reset dma when soft reset
2021-01-25 04:51:40 +00:00
Jiang Jiang Jian
76bb9565af
Merge branch 'bugfix/fix_wifi_interface_use' into 'master'
...
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA
See merge request espressif/esp-idf!12050
2021-01-25 12:18:27 +08:00
Armando
0538dc2d93
spi_slave_hd: add DMA Append Mode feature
2021-01-21 18:53:53 +08:00
xiehang
b8a8fe3f54
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA
2021-01-19 11:55:44 +08:00
morris
914ba4914a
gdma: fix potential cocurrency issue
...
Alloc handle memory first then hook, we can benifit:
1. Don't have to do malloc in a critical section
2. Don't have to do esp_intr_free in a critical section
2021-01-14 20:37:36 +08:00
Michael (XIAO Xufeng)
ea996df725
Merge branch 'feature/rmt_support_user_context_in_translator' into 'master'
...
rmt: support user context in translator
Closes IDFGH-4135 and IDFGH-3237
See merge request espressif/esp-idf!10894
2021-01-14 19:26:26 +08:00
morris
95e712039c
rmt: add workaround to get user context in a graceful way
2021-01-14 11:01:41 +08:00
Michael (XIAO Xufeng)
2d3f22918f
Merge branch 'feature/gdma_channel_allocator' into 'master'
...
gdma channel allocator
Closes IDF-2124
See merge request espressif/esp-idf!11570
2021-01-14 10:52:49 +08:00
morris
e6d23a35ec
gdma: dynamic alloc DMA channels
2021-01-13 10:52:27 +08:00
KonstantinKondrashov
dada7cd035
global: Uses CCOUNT API instead of XTHAL macro
2021-01-12 16:24:23 +08:00
Armando
2bc1442351
spi_slave: add a dual board test of sending/receiving unalinged data on
...
esp32c3
This test can also be used between ESP32/S2/S3/C3.
2021-01-05 21:26:53 +08:00
Armando
23d08fbe85
spi_master: add a test for HD master to receive data correctly via dma
...
Issue Description:
If master is in HD mode, if it sends data without receiving data,
it will still enable the RX DMA because of old version ESP32 silicon issue.
And because there is no correctly linked RX DMA descriptor,
an inlink_dscr_error intr will be seen, which will influence the following RX transactions.
This issue is only found on ESP32.
2021-01-05 19:32:46 +08:00