laokaiyao
db3a1c707e
i2s: add mclk_div underflow check
...
Closes https://github.com/espressif/esp-idf/issues/8344
2022-03-02 04:17:36 +00:00
Stephan Hadinger
2f0e7e9b6c
Fix for mclk/bclk divisors #8326
...
Merges https://github.com/espressif/esp-idf/pull/8327
2022-03-02 04:17:36 +00:00
Kevin (Lao Kaiyao)
cc1d89ebba
Merge branch 'feature/i2c_support_on_esp8684_esp32h2' into 'master'
...
i2c: support i2c on esp32c2 and esp32h2
Closes IDF-3918
See merge request espressif/esp-idf!16444
2022-02-28 13:59:02 +08:00
Darian Leung
2f2df82bc5
twai: Enable ESP32 errata workarounds by default
2022-02-23 20:22:02 +08:00
laokaiyao
cf353c505a
i2c: support esp32h2
2022-02-23 15:19:37 +08:00
laokaiyao
7da023ceae
i2c: support esp32c2
2022-02-23 15:19:37 +08:00
Kevin (Lao Kaiyao)
1d30c23455
Merge branch 'feature/i2c_use_input_only_pin_in_slave_mode' into 'master'
...
i2c: support using input-only pin as SCL in slave mode
Closes IDFGH-6682
See merge request espressif/esp-idf!17137
2022-02-23 02:54:49 +00:00
Marius Vikhammer
06d8a5bf33
Merge branch 'bugfix/inline_intrmask_from_isr' into 'master'
...
freertos: always inline xPortSetInterruptMaskFromISR and vPortClearInterruptMaskFromISR
Closes IDFGH-6669
See merge request espressif/esp-idf!16970
2022-02-23 01:05:40 +00:00
John
bcf7608cf8
i2c: Enable I2C Slave mode with input-only pin as SCL.
...
Merges https://github.com/espressif/esp-idf/pull/8312
If we use I2C in slave mode, we can use input-only pin for SCL line (GPI 34-39).
But there is a problem in i2c_set_pin() which is called by i2c_param_config().
In case of using GPI as SCL the following statements are failed:
1. gpio_set_level(scl_io_num, I2C_IO_INIT_LEVEL);
Function fails because it cannot set level for input pin. As a result a ESP_LOGE() is called.
2. gpio_set_direction(scl_io_num, GPIO_MODE_INPUT_OUTPUT_OD);
Function fails because it accepts only GPIO pins. ESP_LOGE() is called, input mode is not enabled for the pin and as a result - no interrupts from the pin.
2022-02-21 17:32:04 +08:00
Ivan Grokhotkov
6782971332
sdmmc: accept CMD_DONE being is reported together with RTO
...
SDMMC databook specifies that when an error interrupt is generated
(such as RTO, DCRC, RCRC), CMD_DONE interrupt is also generated.
The code used to break out of the event handling loop to wait for
another interrupt event to happen, reporting CMD_DONE.
However if interrupt processing was delayed, it is possible that
a single event contains both RTO and CMD_DONE. Previously, CMD_DONE
would not be handled, and the state machine would be stuck in
SDMMC_SENDING_CMD state, until a timeout. This didn't change the
outcome (err=0x107), but delayed the handling of response timeout
event.
Fix by not breaking out of the event handler, optionally processing
the CMD_DONE interrupt if it has been reported in the same message.
2022-02-20 12:39:36 +00:00
Marius Vikhammer
6d50a8dd7a
docs: remove peripherals that are not supported from C2 docs
2022-02-16 10:22:46 +08:00
Ivan Grokhotkov
c372248624
Merge branch 'contrib/github_pr_7710' into 'master'
...
sdspi_host: fix clock being sent out before the bus is acquired (GitHub PR)
Closes IDFGH-6024
See merge request espressif/esp-idf!16851
2022-02-11 08:27:06 +00:00
Darian Leung
7d78cec149
ledc: Remove usage of legacy FreeRTOS type
2022-02-10 15:19:36 +08:00
Omar Chebib
0cfa7ca20f
Merge branch 'bugfix/fix_i2c_crash' into 'master'
...
I2C: Fix I2C Master operation with repeated start condition
Closes IDFGH-6719 and IDFGH-6724
See merge request espressif/esp-idf!17035
2022-02-10 07:05:59 +00:00
Darian
61639fe1ec
Merge branch 'refactor/freertos_remove_legacy_types' into 'master'
...
FreeRTOS: Remove usage of legacy data types
Closes IDF-4566
See merge request espressif/esp-idf!16680
2022-02-10 04:57:00 +00:00
Song Ruo Jing
40d1102ca5
Merge branch 'bugfix/cpu_reset_perip_clk_disable' into 'master'
...
esp_system: change range comparsion for reset reason to specifc cpu reset reason comparison
See merge request espressif/esp-idf!15492
2022-02-10 03:44:15 +00:00
Darian Leung
57fd78f5ba
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
morris
5810ed1d04
Merge branch 'refactor/remove_ets_sys_from_public_header' into 'master'
...
esp_rom: remove ets_sys.h dependency from public header files
See merge request espressif/esp-idf!16919
2022-02-09 12:27:06 +00:00
Martin Vychodil
c143090109
Merge branch 'bugfix/driver_sdmmc_host_disable' into 'master'
...
driver: disable sdmmc in cmake based on soc_caps
Closes IDF-613
See merge request espressif/esp-idf!17069
2022-02-09 11:33:24 +00:00
songruojing
c1dedb33fa
esp_system: replace the range comparsion for reset reason in perip clk init with specific reset reason check, also add a test case in LEDC to check for the perip clk not being disabled after cpu reset
2022-02-09 15:54:34 +08:00
morris
5893797bf0
Merge branch 'bugfix/rmt_s2_doesnt_support_rx_wrap' into 'master'
...
rmt: rx wrap doesn't support on esp32s2
Closes IDFGH-6725
See merge request espressif/esp-idf!17052
2022-02-09 06:54:41 +00:00
morris
ef00bd59dc
esp_rom: extract int matrix route and cpu ticks getter
2022-02-09 13:52:20 +08:00
Marius Vikhammer
d57dce5b0e
gpio: update gpio sleep workaround config name
2022-02-09 09:27:27 +08:00
Ivan Grokhotkov
01dd2dd45d
driver: disable sdmmc in cmake based on soc_caps
2022-02-08 21:22:36 +01:00
Jiang Jiang Jian
ff6b863736
Merge branch 'bugfix/fix_common_clock_bug' into 'master'
...
esp_wifi: fix common clock bug
See merge request espressif/esp-idf!16964
2022-02-08 07:23:16 +00:00
morris
9887c7e780
rmt: do not support rx wrap on esp32s2
...
Closes https://github.com/espressif/esp-idf/issues/8354
2022-02-08 13:57:31 +08:00
Marius Vikhammer
ca6f76d831
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-02-07 11:33:33 +08:00
Dmitry Koptsov
57716e3d86
I2C: Fix I2C Master operation with repeated start condition
...
* Closes https://github.com/espressif/esp-idf/pull/8353
2022-02-07 10:58:13 +08:00
Michael (XIAO Xufeng)
c1b30491dd
Merge branch 'feature/esp32c3_uart_add_wakeup_event' into 'master'
...
UART: add uart wakeup event for esp32c3 and esp32s3
Closes IDF-3416
See merge request espressif/esp-idf!14482
2022-02-04 17:23:29 +00:00
morris
0f11a17678
Merge branch 'docs/add_cb_to_ledc_rst' into 'master'
...
ledc: Mention source clock and fade end callback in LEDC API reference
Closes IDFGH-5637 and IDF-3293
See merge request espressif/esp-idf!14683
2022-01-28 03:12:10 +00:00
Ivan Grokhotkov
05b644ec50
Merge branch 'bugfix/twai_isr_iram' into 'master'
...
hal: fix CONFIG_TWAI_ISR_IN_IRAM for C3, hide TWAI menu for C2
See merge request espressif/esp-idf!16881
2022-01-27 22:14:05 +00:00
liuning
2a8c8686ac
esp_wifi: fix common clock bug
2022-01-27 19:21:48 +08:00
songruojing
31f9a69454
ledc: Update LEDC programming guide
...
Add source clock in timer config
Add fade end callback and ledc_fade_stop usage
Explain ledc_fade_mode_t difference and limitation
2022-01-27 19:13:53 +08:00
Song Ruo Jing
3821a09f83
Merge branch 'bugfix/ledc_consecutive_fade' into 'master'
...
ledc: Bugfixes for issues related to fade protection on ESP32
Closes IDFGH-4918 and IDFGH-5565
See merge request espressif/esp-idf!14568
2022-01-26 06:00:59 +00:00
laokaiyao
c4cfb654d2
uart: support light sleep on esp32s3
2022-01-25 17:43:02 +08:00
Chen Yi Qun
56e9920958
uart: add wakeup event for esp32c3
2022-01-25 17:43:02 +08:00
Omar Chebib
473974c8f6
UART & I2C: remove custom ISR registration function
...
Breaking change for v5.0: custom UART ISR and I2C ISR cannot be installed anymore.
2022-01-25 14:46:43 +08:00
songruojing
68e12f7092
ledc: Add ledc_fade_stop API to support stopping the fade operation.
...
Note that ESP32 cannot support this new feature.
2022-01-25 11:19:20 +08:00
songruojing
be2ab09832
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
2022-01-25 11:19:10 +08:00
songruojing
e175086226
ledc: 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
2022-01-24 19:36:13 +08:00
Fu Hanxi
a801555299
ci: replace all component ut with pytest-embedded
2022-01-24 16:37:23 +08:00
Ivan Grokhotkov
355b501126
driver: show TWAI config menu only if TWAI is supported
2022-01-20 22:23:45 +01:00
Kevin (Lao Kaiyao)
bf8d4d55d0
Merge branch 'refactor/rename_esp8684_to_esp32c2' into 'master'
...
esp8684: rename esp8684 to esp32c2
Closes IDF-4530
See merge request espressif/esp-idf!16745
2022-01-19 09:08:58 +00:00
laokaiyao
a8ab869a84
i2s: fix mclk stop issue when setting clock
2022-01-19 11:52:09 +08:00
laokaiyao
cf049e15ed
esp8684: rename target to esp32c2
2022-01-19 11:08:57 +08:00
lovyan03
8bb95150bf
sdspi_host: bugfix The clock may be sent out before the bus that was used immediately before is released.
...
Merges https://github.com/espressif/esp-idf/pull/7710
2022-01-18 21:07:10 +00:00
morris
a298e44b33
gptimer: added a section to describe the thread safety
2022-01-18 10:06:26 +08:00
morris
608a1dc237
driver: place iram functions by linker generator
2022-01-18 10:06:26 +08:00
morris
e51474ef70
build: fix unused tag string
...
Closes https://github.com/espressif/esp-idf/issues/8250
2022-01-18 10:06:08 +08:00
Michael (XIAO Xufeng)
7fb3e06c69
Merge branch 'bugfix/adc_include_sdkconfig' into 'master'
...
adc: add explicit sdkconfig.h include
See merge request espressif/esp-idf!16746
2022-01-12 15:35:13 +00:00