Commit Graph

81 Commits

Author SHA1 Message Date
morris
374e54ca78 Merge branch 'bugfix/workaround_reset_eof_counter_c3_v5.1' into 'release/v5.1'
fix(adc): workaround to fix adc continuous get less results on c3 (v5.1)

See merge request espressif/esp-idf!29137
2024-03-14 10:44:23 +08:00
Cao Sen Miao
30095494be fix(tsens): 300us delay in phy cause extra power consumption 2024-02-28 12:36:04 +08:00
Cao Sen Miao
6932e5958b fix(tsens,adc): Fix issue that disable adc will make temperature sensor crash,
Closes https://github.com/espressif/esp-idf/issues/12921
2024-02-28 12:35:59 +08:00
gaoxu
5101e52a36 fix(adc): workaround to fix adc continuous get less results on c3 2024-02-21 13:54:29 +08:00
morris
5e29bd5370 Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v5.1' into 'release/v5.1'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v5.1)

See merge request espressif/esp-idf!27604
2023-12-07 21:27:05 +08:00
gaoxu
6190b3f7c9 fix(adc): restore cali registers after light sleep wake up on H2 and enable test 2023-12-06 10:19:52 +00:00
gaoxu
98ec583690 ci(adc): add a test that adc continuous read after restarting 2023-12-06 10:19:45 +00:00
gaoxu
57a5c4684c fix(adc): fix adc continuous get less results beacuse do not reset apb clk 2023-12-06 10:19:45 +00:00
morris
64e7343e40 Merge branch 'bugfix/fix_adc_read_zero_h2_v5.1' into 'release/v5.1'
ADC: fix adc raw data get 0 because of signal delay on ESP32H2(v5.1)

See merge request espressif/esp-idf!26976
2023-11-21 11:08:57 +08:00
morris
1b3713f7cd Merge branch 'feature/support_adc_calibration_on_h2_v5.1' into 'release/v5.1'
adc_cali: supported adc calibration v1 on ESP32H2 (v5.1)

See merge request espressif/esp-idf!26963
2023-11-17 16:41:00 +08:00
gaoxu
95d24edd3e ci(adc): add a test that adc read zero after getting done signal 2023-11-17 02:16:21 +00: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
gaoxu
591984aa5d ci(adc): add a test about adc1 work with wifi on c6 2023-09-28 16:24:39 +00:00
morris
be7cf3dffb Merge branch 'bugfix/fix_adc_continuous_driver_isr_flag_issue_v5.1' into 'release/v5.1'
adc: fix continuous hal func not in iram when gdma isr iram (v5.1)

See merge request espressif/esp-idf!25505
2023-08-30 10:51:36 +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
morris
3d8744476b fix(adc): invalid assertion on the adc_unit 2023-08-25 10:18:03 +08:00
Armando
8b6957a99c test(adc): continuous driver iram test with gdma iram safe option only 2023-08-24 11:04:43 +08:00
Armando
879b5d4401 fix(adc): fix adc continuous hal func not in iram when gdma isr iram 2023-08-24 11:04:43 +08:00
Armando
888ccfe0cb adc: added adc filter exhausted allocation test 2023-08-23 19:41:15 +08:00
Armando
628162d71e adc: fix adc filter acquire logic 2023-08-23 19:41:02 +08:00
morris
aba746cdc2 Merge branch 'refactor/s_adc_tsen_enabled_logic_v5.1' into 'release/v5.1'
refactor(adc): maintain s_adc_tsen_enabled in adc driver (v5.1)

See merge request espressif/esp-idf!24629
2023-07-13 18:49:01 +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
Armando
dd9bcef9ea refactor(adc): maintain s_adc_tsen_enabled in adc driver 2023-07-12 16:35:51 +08:00
laokaiyao
57312e6e3e adc_calib: support calibration v2 on esp32c6 2023-07-06 10:36:29 +08:00
laokaiyao
6f673e95c9 adc_oneshot: move power acquire back to adc_oneshot_new_unit
Revert and fix of d197c59eaa in !23575

adc_cali: fix the condition of ocode calibration
2023-07-05 12:48:11 +08:00
laokaiyao
e90a2d50c4 adc_cali: supported channel compensation of adc calibration on esp32c6 2023-07-05 12:48:11 +08:00
laokaiyao
6336a9e2b5 adc_cali: supported adc calibration on esp32c6 2023-07-05 12:48:11 +08:00
morris
a9d12c0fe9 adc: fixed the issue that multiply overflow before type expand 2023-06-07 11:40:56 +08:00
wuzhenghui
ed076c2bc8 bugfix: move adc_oneshot_power_acquire/release to adc_oneshot_read
Closes https://github.com/espressif/esp-idf/issues/10595
Closes https://github.com/espressif/esp-idf/issues/11386
2023-05-18 20:08:47 +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
laokaiyao
cae47ce37e esp32h4: removed esp32h4 related files 2023-04-26 18:53:12 +08:00
Marius Vikhammer
f627506f6b ci: update driver tests to use run_all_single_board_cases() 2023-03-28 17:05:50 +08:00
morris
2d52334e5d gptimer: fix race condition between start and stop
Added state transition in gptimer_start/stop functions.
So that it's not possible to make a stopped timer continue to run
because of race condition.
2023-03-10 23:27:29 +08:00
Armando
53f1c35826 esp_adc: fix continuous mode pm lock release fail issue and add tests
Closes https://github.com/espressif/esp-idf/issues/10853
2023-02-28 16:33:50 +08:00
Armando
486c765a93 adc: remove adc_hal_conf.h
Macros inside adc_hal_conf.h are moved to adc_ll.h
2023-02-23 11:48:31 +08:00
Armando
5653018cd1 esp_adc: support selecting clock source for oneshot driver 2023-02-23 11:48:31 +08:00
Armando
d0e4d36fb6 esp_adc: support h2 oneshot mode and continuous mode 2023-02-23 11:48:31 +08:00
Omar Chebib
5e5343d429 TWDT: Use the new TWDT Kconfig options in the examples and tests 2023-02-17 11:22:25 +08:00
Armando
7e6bf9f987 esp_adc: added adc filter doc, and filter migration guides 2023-02-10 16:46:20 +00:00
Armando
3afa671069 esp_adc: added adc digital filter feature 2023-02-10 16:46:20 +00:00
Armando
c71c0996e3 esp_adc: added an all-in-one API to get calibrated voltage 2023-01-18 16:38:18 +08:00
Armando
5be3c21cfc adc: improve power logic 2023-01-09 17:10:04 +08:00
Cao Sen Miao
4713a9a7f2 ESP32H2: Introduce new chip target esp32h2, hello_world example supported 2022-12-29 12:29:14 +08:00
laokaiyao
5333ac81bf adc: support ADC on esp32c6 (driver/test/example) 2022-12-23 11:24:06 +08:00
Chen Yudong
b5eebc490f CI: add generic to xtal_40mhz jobs 2022-12-21 11:53:38 +08:00
Armando
ded528e188 adc: no longer support adc2 oneshot mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under oneshot mode is not stable.

However, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-s3_errata_en.pdf
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2022-12-16 02:06:03 +00:00
Armando
b4c90c44d2 adc: no longer support adc2 continuous mode on esp32c3 and esp32s3
Due to HW limitation, we don't support this anymore. On s3 and c3, ADC2 under continuous  mode is not stable.

However, you can enable CONFIG_ADC_CONTINUOUS_FORCE_USE_ADC2_ON_C3_S3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-s3_errata_en.pdf
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2022-12-16 02:06:03 +00:00