Michael (XIAO Xufeng)
eca8b7ca41
spi: fixed crash when calling spi_bus_free when not initialized
...
introduced in 49a48644e4
Closes: https://github.com/espressif/esp-idf/issues/8642
2022-03-27 02:33:41 +08:00
morris
673d0371ba
Merge branch 'bugfix/typo_in_i2c_macro_v4.3' into 'release/v4.3'
...
I2C: Fix typo in I2C_TIMING_VAL_ERR_STR macro name (backport v4.3)
See merge request espressif/esp-idf!17117
2022-03-24 11:17:46 +08:00
Marius Vikhammer
cd598bd7c0
Merge branch 'bugfix/inline_intrmask_from_isr_v4.3' into 'release/v4.3'
...
freertos: always inline xPortSetInterruptMaskFromISR and vPortClearInterruptMaskFromISR (v4.3)
See merge request espressif/esp-idf!17326
2022-03-16 13:45:32 +08:00
Marius Vikhammer
491b95925e
spi flash: fix cache accessed while disabled issues at -O0
...
mask_get_id and gpio_hal_iomux_func_sel were called while cache
is disabled, but were not inlined as expected at -0O.
Force these functions to always be inlined.
2022-03-11 09:39:50 +08:00
paul
112bfbe465
I2C: Fix typo in I2C_TIMING_VAL_ERR_STR macro name
...
* Closes https://github.com/espressif/esp-idf/pull/8012
2022-03-09 06:29:14 +00: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
songruojing
f817722109
gpio: Bugfix - Move esp_intr_free() out of the critical section in gpio_uninstall_isr_service()
...
Closes https://github.com/espressif/esp-idf/issues/5571
Fix the bug that if the API was called from one core to free the interrupt source on the other core, it would trigger interrupt watchdog.
(cherry picked from commit 0e8286c57b
)
2022-02-28 15:50:40 +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
d501fd4b96
Merge branch 'fix/sdio_slave_recv_intr_unhandled_v4.3' into 'release/v4.3'
...
sdio_slave: fixed the issue that interrupt may be cleared with finished trans unhandled (v4.3)
See merge request espressif/esp-idf!17149
2022-02-18 05:40:33 +00:00
Michael (XIAO Xufeng)
501d67fdc5
Merge branch 'bugfix/sdio_slave_dma_desc_int_v4.3' into 'release/v4.3'
...
sdio_slave: Fixed the issue that DMA descriptors allocated to non-DMA capable area (v4.3)
See merge request espressif/esp-idf!17138
2022-02-18 01:24:42 +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
ad3b9a8002
ledc: bugfix - Simplify the procedure to perform a one-time duty update
...
Avoid adding one extra fade cycle when performing a one-time duty update.
Add some notes to ledc_get_duty and ledc_update_duty APIs, so that users
are aware of when the new duty will be effective.
Closes https://github.com/espressif/esp-idf/issues/7288
(cherry picked from commit e175086226
)
2022-02-15 11:29:33 +08:00
Michael (XIAO Xufeng)
25b1c57121
sdio_slave: fixed the issue that interrupt may be cleared with finished trans unhandled
2022-02-15 00:01:33 +08:00
Michael (XIAO Xufeng)
7d65b17898
Merge branch 'bugfix/alarm_update_invalid_v4.3' into 'release/v4.3'
...
timer: stop alarm if alarm value doesn't change in ISR callback (v4.3)
See merge request espressif/esp-idf!16533
2022-02-14 15:38:14 +00:00
Michael (XIAO Xufeng)
81948262c8
sdio_slave: fixed the issue DMA desc not capable
2022-02-14 12:55:56 +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
Zim Kalinowski
5c72bbcb3d
Merge branch 'bugfix/uart_no_int_after_flush_v4.3' into 'release/v4.3'
...
UART: RX interrupts are now properly restored after a flush (backport v4.3)
See merge request espressif/esp-idf!16928
2022-02-09 06:51:43 +00:00
liuning
72e4b5ac5b
esp_wifi: fix common clock bug (backport v4.3)
2022-01-27 20:20:31 +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
Zim Kalinowski
04d2887493
Merge branch 'bugfix/spi_slave_test_non_dma_v4.3' into 'release/v4.3'
...
spi-slave: fix single-board: hd test failing due to DMA buffers ending up in PSRAM (v4.3)
See merge request espressif/esp-idf!16306
2021-12-31 02:57:25 +00:00
morris
19ddefeb5c
timer: stop alarm if alarm value doesn't change in ISR handler
...
Alarm will be disabled by hardware when alarm event happend.
In the ISR, if auto-reload is enabled, we should re-enable the alarm.
If the alarm target value is changed in user's callback,
the alarm will be reenabled as well.
Closes https://github.com/espressif/esp-idf/issues/7001
Closes https://github.com/espressif/esp-idf/issues/8095
2021-12-24 12:28:45 +08:00
Wang Fang
641e86c1dc
fix: remove a deprecated macro: SPI_TRANS_SET_CD
2021-12-21 17:44:15 +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
Michael (XIAO Xufeng)
d16584c313
Merge branch 'bugfix/spi_slave_wrong_miso_mosi_v4.3' into 'release/v4.3'
...
spi_slave: Fix MOSI/MISO inconsistent references on the SPI Slave drivers. (v4.3)
See merge request espressif/esp-idf!14405
2021-11-25 09:36:55 +00:00
Michael (XIAO Xufeng)
f055fbb713
i2c: fixed i2c_cmd_t not initialized properly issue
2021-11-25 04:16:51 +00: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
Michael (XIAO Xufeng)
8732cc6c6b
Merge branch 'bugfix/timer_example_crashed_not_calling_timer_group_set_alarm_value_in_isr_v4.3' into 'release/v4.3'
...
driver/timer: fixed auto reload problem in default isr callback (backport to 4.3)
See merge request espressif/esp-idf!13529
2021-10-16 15:59:26 +00:00
Armando
52a8f6cdd5
essl: add essl spi support to communicate with spi slave hd mode
2021-10-15 16:50:24 +08:00
Michael (XIAO Xufeng)
1b75fb5622
Merge branch 'bugfix/spi_master_crash_cache_disabled_v4.3' into 'release/v4.3'
...
spi_master: fix the crash when using interrupt mode when cache is disabled (v4.3)
See merge request espressif/esp-idf!14681
2021-10-14 07:15:54 +00:00
laokaiyao
07410a1381
i2s: fix write failure issue in slave mode
2021-10-13 10:22:26 +08:00
morris
73c5a68c6f
uart: support alloc driver object in SRAM
...
If CONFIG_UART_ISR_IN_IRAM is on, which means user hope the uart
interrupt can still be serviced even when cache is diabled (e.g.
writing to flash). In that case, the driver should make sure to
put the all related objects into SRAM, avoid putting them in the PSRAM.
Closes https://github.com/espressif/esp-idf/issues/7044
Closes https://github.com/espressif/esp-idf/pull/7355
2021-09-22 11:46:42 +08:00
morris
f4ccb8e766
uart: format driver code by astyle
2021-09-22 11:46:42 +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
Omar Chebib
6c363a4075
uart: Add missing critical section wrappers around rx_buffered_len
...
The missing barriers caused uart_get_buffered_data_len() to (very rarely)
return a garbage value. When used in MicroPython, though, this caused
select() to return and a subsequent read() to stall indefinitely until
a char was actually available.
Signed-off-by: Chen Yi Qun <chenyiqun@espressif.com>
Closes https://github.com/espressif/esp-idf/issues/6397
Merges https://github.com/espressif/esp-idf/pull/6396
2021-09-13 23:18:25 +08:00
Zim Kalinowski
55dfd61796
Merge branch 'bugfix/uart_sw_sw_flow_error_typo_v4.3' into 'release/v4.3'
...
uart: fix typo in error message (v4.3)
See merge request espressif/esp-idf!14613
2021-09-10 04:30:37 +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
Michael (XIAO Xufeng)
15439631a4
Merge branch 'bugfix/check_spi_master_cmd_test_fail_v4.3' into 'release/v4.3'
...
spi_master: fix cmd test ringbufferReturn issue (4.3)
See merge request espressif/esp-idf!13656
2021-09-08 08:25:56 +00:00
Song Ruo Jing
665b221b6b
Merge branch 'docs/spi_max_transfer_sz_limit_v4.3' into 'release/v4.3'
...
spi_docs: Fixed the default value of max_transfer_sz_limit (backport v4.3)
See merge request espressif/esp-idf!14249
2021-09-08 02:34:43 +00:00
Michael (XIAO Xufeng)
e3954297bb
spi_master: fix the crash when using interrupt mode when cache is disabled
...
Closes https://github.com/espressif/esp-idf/issues/6529
Closes https://github.com/espressif/esp-idf/issues/6781
Closes https://github.com/espressif/esp-idf/issues/7368
2021-08-06 12:20:23 +08:00
Marius Vikhammer
f550724055
uart: fix typo in error message
...
Closes https://github.com/espressif/esp-idf/issues/7360
2021-08-03 09:27:10 +08:00
Michael (XIAO Xufeng)
95c572c0d2
Merge branch 'bugfix/fix_uart_reset_issue_on_esp32c3_backport_v4.3' into 'release/v4.3'
...
bugfix(uart): reset uart0 core before uart apb reset(backport v4.3)
See merge request espressif/esp-idf!14462
2021-07-30 06:27:22 +00:00
Marius Vikhammer
0b8ed8d76e
ci: enable previously disabled unit tests
2021-07-29 09:29:29 +08:00
Andrey Starodubtsev
b5b629c584
Fix couple of UART issues
...
- there was a small race in `uart_pattern_link_free`:
`rx_pattern_pos.data` was accessed for reading outside spinlock
- `uart_flush_input` enabled
`UART_INTR_RXFIFO_FULL|UART_INTR_RXFIFO_TOUT` intr mask on exit even
if these flags weren't set when function was called
Closes https://github.com/espressif/esp-idf/pull/7023
2021-07-27 10:50:05 +08:00