jingli
ac47b093f6
esp32c2/rtc: fix 8md256 as rtc slow clk not work properly during deep sleep
2023-02-16 10:55:50 +08:00
jingli
50feb8f75b
soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
...
all esp chips support this feature
2023-02-09 17:29:40 +08:00
morris
ac05d033b9
gdma: correct the dma trigger of uart
...
GDMA trigger actually is not assigned to UART controller, but for UHCI
controller
2023-02-01 11:02:24 +08:00
KonstantinKondrashov
5d37e26d35
security: Adds new APIs to check that all eFuse security features are enabled correctly
2023-01-23 21:02:55 +08:00
Jiang Jiang Jian
96db537020
Merge branch 'feature/apply_new_version_logic_v5.0' into 'release/v5.0'
...
all: Apply new version logic (major * 100 + minor) (v5.0)
See merge request espressif/esp-idf!20941
2023-01-12 16:18:23 +08:00
Armando
870f4efa0d
adc: make adc_channel.h macros work with ng driver
...
Closes https://github.com/espressif/esp-idf/issues/10508
2023-01-12 11:15:57 +08:00
Darian Leung
8d85a76a74
usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix
...
Following the file renaming to use the "usb_dwc" prefix, this commit
updates the symbol names of those files to use the "usb_dwc" as well.
Some LL functions were also renamed so that the register name is
mentioned.
2023-01-09 17:48:09 +08:00
Darian Leung
da91dbccfa
usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix
...
This commit updates the DWC_OTG based struct/ll/hal file names to
use the prefix "usb_dwc". This naming scheme reduces ambiguity if
another USB controller implementation is added.
As a result, "hcd.c" has been renamed to "hcd_dwc.c"
2023-01-09 17:47:42 +08:00
KonstantinKondrashov
823024c10c
all: Apply new version logic (major * 100 + minor)
2023-01-06 02:00:52 +08:00
jiangguangming
8e6dfb8af4
soc: H2(beta) support SOC_PM_SUPPORT_DEEPSLEEP_CHECK_STUB_ONLY
2023-01-05 15:56:20 +08:00
cje
524f1195bf
sleep: fix sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32
...
Related to: https://github.com/espressif/esp-idf/issues/6687
2022-12-28 15:33:20 +08:00
Omar Chebib
0714847552
C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT
...
Closes https://github.com/espressif/esp-idf/issues/9938
2022-12-19 15:06:15 +01:00
Armando
6fd80903de
adc: added a soc macro indicating digital controller supported unit
2022-12-16 12:07:38 +08:00
zwl
e8555efe5b
Renamed BAH
2022-12-13 18:05:00 +08:00
Zim Kalinowski
759f7ec13d
Merge branch 'feature/add_int_task_wdt_esp32c2_v5.0' into 'release/v5.0'
...
WDT: implement interrupt wdt and task wdt for ESP32-C2 (backport v5.0)
See merge request espressif/esp-idf!20980
2022-12-05 16:38:35 +08:00
Jiang Jiang Jian
77333d2d64
Merge branch 'bugfix/fix_current_leakage_when_hold_digital_io_during_deep_sleep_backport_v5.0' into 'release/v5.0'
...
esp_hw_support/sleep: fix current leakage when hold digital io during deep sleep(backport v5.0)
See merge request espressif/esp-idf!20806
2022-12-05 14:00:59 +08:00
Jiang Jiang Jian
3290fc1a6d
Merge branch 'bugfix/multiple_bugfixes_v5.0' into 'release/v5.0'
...
Add multiple bugfixes (Backport v5.0)
See merge request espressif/esp-idf!20997
2022-12-05 11:16:27 +08:00
Jiang Jiang Jian
b48971317f
Merge branch 'bugfix/fix_part_of_modem_not_reset_when_power_on_backport_v5.0' into 'release/v5.0'
...
Coexistence: fix part of modem module not reset when power up(backport v5.0)
See merge request espressif/esp-idf!20807
2022-12-02 20:25:21 +08:00
jingli
21c9ec5eee
esp_hw_support/sleep: fix current leakage when hold digital io during deep sleep
2022-12-02 12:24:52 +00:00
Jiang Jiang Jian
df80bc864d
Merge branch 'bugfix/fix_xtal_related_rtc_params_for_esp32_backport_v5.0' into 'release/v5.0'
...
esp32/rtc: fix xtal unstable in some cases when sleep(backport v5.0)
See merge request espressif/esp-idf!20799
2022-12-02 20:24:25 +08:00
jingli
54046ee4bf
soc: remove unused DR_REG_DPORT_END macro for c2/c3/s2/s3
2022-12-01 21:09:05 +08:00
jingli
18fef64089
wifi/bt: fix part of modem module not reset when power up
2022-12-01 21:08:57 +08:00
Omar Chebib
b675bb2a4d
WDT: implement interrupt wdt and task wdt for ESP32-C2
...
ESP32-C2 has a single group timer, thus it will use it for the interrupt watchdog,
which is more critical than the task watchdog. The latter is implement in
software thanks to the `esp_timer`component.
2022-12-01 10:45:35 +00:00
Sachin Parekh
af773c047a
esp32s3/memprot: Fix DRAM fault address calculation
2022-12-01 09:19:08 +05:30
Sachin Parekh
634c2c8bf1
esp32s3/memprot: Set permission for Icache region
2022-12-01 09:19:07 +05:30
alex.li
9bbe6e7fa3
Support external coexist formal code for C2 & S3,
...
and optimize RX category in external coex.
2022-11-08 19:10:38 +05:30
Michael (XIAO Xufeng)
725eacbf16
Merge branch 'feature/usb/voltage_monitoring_backport_v5.0' into 'release/v5.0'
...
tinyusb: TinyUSB in IDF v5.0.0 (backport v5.0)
See merge request espressif/esp-idf!20673
2022-11-02 17:26:22 +08:00
morris
b1c856022c
Merge branch 'bugfix/spi2_add_device_cs_more_than_3_v5.0' into 'release/v5.0'
...
spi_master:fix error when use `spi_bus_add_device` more than 3 device(v5.0)
See merge request espressif/esp-idf!20073
2022-10-31 11:46:16 +08:00
morris
78773966c3
Merge branch 'feature/rgb_lcd_yuv_converter_v5.0' into 'release/v5.0'
...
RGB-YUV converter (v5.0)
See merge request espressif/esp-idf!20362
2022-10-28 10:07:48 +08:00
morris
8481fbf752
Merge branch 'bugfix/change_clock_name_v5.0' into 'release/v5.0'
...
mcpwm: fix wrong return value in the legacy MCPWM driver (5.0)
See merge request espressif/esp-idf!20693
2022-10-28 10:02:40 +08:00
jingli
e04c8505e1
esp32/rtc: fix xtal unstable in some cases when sleep
...
1. add xtal buf wait to fix high temperature restart issue
2. add min sleep value to fix xtal stop due to too short sleep time issue
2022-10-26 16:11:27 +08:00
Tomas Rezucha
125ff0050e
usb: Allow settings of all signals in usb_phy
...
Until now, only usb_phy signals for external PHY were defined.
This is now extended with all OTG signals.
2022-10-25 06:44:55 +02:00
morris
acb3b06ed6
twai: remove deprecated code and add hint
...
name "CAN" has been deprecated for a long time, this commit just remove
it from the code base.
Please use "TWAI" driver instead.
2022-10-24 18:39:45 +08:00
morris
2a50dd8a8f
mcpwm: default clock cource is PLL160M
...
On esp32, the default clock source is also PLL160M
2022-10-21 07:37:36 +00:00
chenjianhua
84bcd1d1f0
soc: remove soc ble config from Kconfig
2022-10-09 17:07:53 +08:00
chenjianhua
f96e38a70d
Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
...
This reverts commit 1cc0f6aac5
.
2022-10-09 17:07:53 +08:00
morris
5d58c10c3e
rgb_lcd: support yuv converter
2022-09-27 14:32:04 +08:00
Jiang Jiang Jian
b9495f85cf
Merge branch 'bugfix/fix_c2_xtal_unstable_when_wakeup_from_sleep_backport_v5.0' into 'release/v5.0'
...
esp_hw_support/esp32c2/rtc: fix c2 xtal unstable when wakeup from sleep(backport v5.0)
See merge request espressif/esp-idf!20273
2022-09-21 22:38:24 +08:00
jingli
9fa4bb272e
esp_hw_support/clk_cali: fix xtal32k error detect
2022-09-21 16:21:11 +08:00
jingli
b8b7a0d8dd
esp_hw_support/esp32c2/rtc: take a safer xtal buf wait
2022-09-21 14:16:34 +08:00
Jiang Jiang Jian
3c3a68513c
Merge branch 'feature/add_mesh_support_macro_v5.0' into 'release/v5.0'
...
ble_mesh: docs: Remove BLE Mesh related reference for C2(v5.0)
See merge request espressif/esp-idf!20097
2022-09-20 16:04:27 +08:00
wangjialiang
ddc294c79f
ble_mesh: docs: Remove BLE Mesh related reference for C2
2022-09-19 21:11:17 +08:00
morris
70ee85d38b
mcpwm: check sync direction is valid
2022-09-15 19:07:31 +08:00
wanlei
3cc3455ca6
spi_master:fix error when use spi_bus_add_device
more than 3 device
...
update gpio_sig at `spics_out` array in each spi_periph.c of chips later than s2
then `spi_bus_add_device` can correctly distribute gpio_signals for cs_signal
Closes https://github.com/espressif/esp-idf/issues/8876
2022-09-09 15:57:13 +08:00
Armando
29ae238845
mmu: driver framework, for vaddr maintenance
...
This commit gives basic mmu driver framework. Now it is able to maintain
mmu virtual address usage on esp32, esp32s2 and esp32s3. Usage to
external virtual address should rely on mmu functions to know which
address range is available, instead of hardcoded.
This commit also improves psram memory that is added to the heap
allocator. Now it's added to the heap, according to the memory
alignment.
Closes https://github.com/espressif/esp-idf/issues/8295
Closes https://github.com/espressif/esp-idf/issues/9193
2022-08-27 16:05:51 +08:00
Sachin Parekh
ca19d23952
esp32s3: Update world controller headers
2022-08-26 09:35:43 +05:30
Michael (XIAO Xufeng)
69be7c4cc2
Merge branch 'feat/support_esp32c2_uart_v5.0' into 'release/v5.0'
...
uart: update console docs about frequency for ESP32-C2, move frequency of clock sources out of HAL (v5.0)
See merge request espressif/esp-idf!19690
2022-08-25 02:03:26 +08:00
Michael (XIAO Xufeng)
4a68f9e064
Merge branch 'feature/support_7.2.9_soc/pvt_dig_v5.0' into 'release/v5.0'
...
ESP32C2:support auto adjust LDO voltage based on pvt-dig(backport 5.0)
See merge request espressif/esp-idf!19628
2022-08-23 09:30:06 +08:00
Jiang Jiang Jian
b84f9dd5cc
Merge branch 'bugfix/fix_c2_rtc_ldo_too_low_bug_v5.0' into 'release/v5.0'
...
ESP32C2: Fix system not stable bug when rtc voltage too low (backport v5.0)
See merge request espressif/esp-idf!19599
2022-08-22 19:48:36 +08:00
Michael (XIAO Xufeng)
6ed15178b6
uart: move frequency of clock sources out of HAL
2022-08-22 14:28:12 +08:00
Geng Yuchao
5524c772e6
Fix soc caps define for all chips
2022-08-18 16:27:06 +08:00
Erhan Kurubas
fdc839494f
esp32s3: fix interrupt names used by SystemView
2022-08-17 12:48:37 +02:00
Erhan Kurubas
bf622042b7
replace CAN with TWAI in the esp_isr_names table
2022-08-17 12:32:43 +02:00
zlq
3dc89437cc
support auto adjust LDO voltage based on pvt-dig
2022-08-17 17:25:59 +08:00
cje
7243032123
set fosc div to 1 to make chip run stablly for C2
2022-08-17 10:58:14 +08:00
Sudeep Mohanty
56c78fbbf7
rtci2c: Corrected the register base addr reference for RTC I2C on esp32s3
...
This commit corrects the register base address reference for RTC I2C on
esp32s3.
2022-08-15 14:50:04 +02:00
jingli
8cd7c30bc7
kconfig: refactor xtal freq kconfig to common configuration item
2022-08-08 13:53:02 +08:00
Wan Lei
1265a2db9d
Merge branch 'refactor/add_missing_include_path_for_soc_struct_files' into 'master'
...
Fix check_public_headers violations for soc component
Closes IDF-5397
See merge request espressif/esp-idf!19158
2022-08-01 10:14:04 +08:00
wuzhenghui
7cb9304b65
Clean IRAM and DRAM address space conversion macros
2022-07-29 17:07:39 +08:00
wanlei
bb5a95f1aa
soc: fix register header files not self-contain
2022-07-29 11:18:06 +08:00
wuzhenghui
31183270fb
bugfix: fix SOC_ROM_STACK_START defines
2022-07-29 10:51:47 +08:00
wuzhenghui
21a4eda4d4
Use the entire sharedbuffer space as the heap of the D/IRAM attribute
2022-07-29 10:51:47 +08:00
morris
d94432fea8
systimer: refactor hal to accomodate more xtal choices
2022-07-25 16:08:52 +08:00
morris
c4e84751a5
driver: fix public header exceptions for driver
2022-07-22 00:12:36 +00:00
morris
741b031e83
soc: added SOC_TOUCH_SENSE_SUPPORTED macro
2022-07-22 00:12:36 +00:00
laokaiyao
edee3ee3cd
i2s: add slot sequence table
...
Closes: https://github.com/espressif/esp-idf/issues/9208
When I2S is configured into different modes, the slot sequence varies.
This commit updates slot sequence tables and corresponding descriptions
in (both code and programming guide).
2022-07-21 15:52:39 +08:00
laokaiyao
90866e99fb
i2s: add basic examples for STD/TDM/PDM mode
2022-07-21 15:52:39 +08:00
morris
4154eaec93
sdm: clean up soc/hal/ll code
2022-07-20 14:59:50 +08:00
morris
bec44ca2e9
gptimer: test on c2 with xtal 26mhz
2022-07-20 04:40:28 +00:00
Song Ruo Jing
4734b1433b
Merge branch 'bugfix/gpio_hal_coverity_fix' into 'master'
...
gpio: Fix ESP32S3 GPIO48 does not support hold function bug and Fix coverity report
Closes IDF-4901
See merge request espressif/esp-idf!18805
2022-07-19 21:37:15 +08:00
Armando (Dou Yiwen)
9f6f61345b
Merge branch 'feature/adc_driver_ng' into 'master'
...
ADC Driver NG
Closes IDF-4560, IDF-3908, IDF-4225, IDF-2482, IDF-4111, IDF-3610, IDF-4058, IDF-3801, IDF-3636, IDF-2537, IDF-4310, IDF-5150, IDF-5151, and IDF-4979
See merge request espressif/esp-idf!17960
2022-07-19 21:28:31 +08:00
Cao Sen Miao
53580a62b5
I2C: Fullfill the I2C clock tree, and support 26M XTAL on ESP32-C2
2022-07-19 11:41:42 +08:00
Armando
5b523a3313
esp_adc: new esp_adc component and adc drivers
2022-07-15 18:31:00 +08:00
songruojing
145454356b
gpio: Fix ESP32S3 GPIO48 does not support hold function bug
...
GPIO_HOLD_MASK array was missing the last item
Add __Static_assert to check array sizes for all gpio_periph.c files to prevent same mistake in the future.
2022-07-15 16:51:25 +08:00
Jiang Jiang Jian
b610b47a83
Merge branch 'feature/esp32s3_memprot_additional_improvements' into 'master'
...
[System/Security] Memprot after-merge improvements (v5.0)
Closes IDF-5263 and IDF-5208
See merge request espressif/esp-idf!18893
2022-07-13 15:48:20 +08:00
Jiang Jiang Jian
3630713e5f
Merge branch 'docs/esp32c2_sys_feature_api_guides' into 'master'
...
docs: update system API-guides for ESP32-C2
Closes IDF-4202, IDF-4213, and IDF-4222
See merge request espressif/esp-idf!18979
2022-07-12 10:59:12 +08:00
Marius Vikhammer
d62421619c
docs: update system API-guides for ESP32-C2
2022-07-12 09:32:43 +08:00
Song Ruo Jing
ea97cc93ea
Merge branch 'feature/c2_systimer_26mhz' into 'master'
...
esp32c2: 26 MHz XTAL support: Kconfig option, systimer support
Closes IDF-5412 and IDF-5413
See merge request espressif/esp-idf!18835
2022-07-11 16:17:25 +08:00
songruojing
b3d8db3ae2
bootloader, esp_system: esp32c2 console uart to support 26MHz xtal
...
Gets the XTAL frequency from the RTC storage register, remove UART_CLK_FREQ_ROM macro from soc.h
2022-07-11 12:24:58 +08:00
songruojing
ef813b23fa
rtc: esp32c2 support 26MHz xtal in startup code and rtc_clk.c
2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
2e37218ce5
soc, hal: remove XTAL_CLK_FREQ
...
XTAL_CLK_FREQ now depends on the actual XTAL used, remove this macro
and get the XTAL frequency from the RTC register instead.
No uses of XTAL_CLK_FREQ found, other than in the UART LL.
2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
5b54ae76d4
esp_timer, hal: add support for non-integer systimer frequency
...
When ESP32-C2 is paired with a 26 MHz XTAL, the systimer tick
frequency becomes equal to 26 / 2.5 = 10.4 MHz. Previously we always
assumed that systimer tick frequency is integer (and 1 MHz * power of
two, above that!).
This commit introduces a new LL macro, SYSTIMER_LL_TICKS_PER_US_DIV.
It should be set in such a way that:
1. SYSTIMER_LL_TICKS_PER_US / SYSTIMER_LL_TICKS_PER_US_DIV equals the
actual systimer tick frequency,
2. and SYSTIMER_LL_TICKS_PER_US is integer.
For ESP32-C2 this means that SYSTIMER_LL_TICKS_PER_US = 52 and
SYSTIMER_LL_TICKS_PER_US_DIV = 5.
This introduced two possible issues:
1. Overflow when multiplying systimer counter by 5
- Should not be an issue, since systimer counter is 52-bit, so
counter * 5 is no more than 55-bit.
2. The code needs to perform:
- divide by 5: when converting from microseconds to ticks
- divide by 52: when converting from ticks to microseconds
The latter potentially introduces a performance issue for the
esp_timer_get_time function.
2022-07-11 12:24:37 +08:00
Martin Vychodil
0c87ae2a91
System/Security: Memprot API unified (ESP32S3)
...
Added missing features and improvements
2022-07-09 22:57:51 +02:00
Jiang Jiang Jian
a7bf3af687
Merge branch 'bugfix/reset_ble_hw_on_inititalization' into 'master'
...
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
Closes BT-2402
See merge request espressif/esp-idf!18831
2022-07-08 16:21:41 +08:00
morris
75bd6fc2d9
Merge branch 'contrib/github_pr_9302' into 'master'
...
ESP32S3 USB external PHY pinout (GitHub PR)
Closes IDFGH-7761
See merge request espressif/esp-idf!18909
2022-07-07 16:17:26 +08:00
morris
b0e228f756
soc: update copyright for usb phy pins
2022-07-07 11:50:06 +08:00
Michael (XIAO Xufeng)
a58362a429
Merge branch 'feature/efuse_rev_major_minor' into 'master'
...
efuse: Adds major and minor versions
See merge request espressif/esp-idf!18255
2022-07-07 11:48:54 +08:00
Song Ruo Jing
b662f4b74f
Merge branch 'feature/support_26M_32M_xtal_bbpll_c2' into 'master'
...
support c2 26M/32M xtal for bbpll
Closes IDF-5485
See merge request espressif/esp-idf!18769
2022-07-06 21:17:52 +08:00
lsita
9ceff23c6d
USB external PHY pinout set as in Reference Manual Figure 29-3.
2022-07-06 14:54:35 +02:00
wangmengyang
f86efb2bc2
fix licence copyright for header file syscon_reg.h on ESP32C3 and ESP32S3
2022-07-06 16:24:03 +08:00
wangmengyang
1d55f12c2d
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
...
1. Rename MACROs SYSTEM_WIFI_RST_EN register bit fields to be more recognizable
2. reset Bluetooth baseband and clock bits to fix the issue of task watchdog triggered during controller initialization due to invalid hardware state
2022-07-06 16:23:48 +08:00
morris
627b171a3c
Merge branch 'feature/enable_rpa_modem_reset_function_in_esp32h2' into 'master'
...
Enable rpa_moudle reset function
See merge request espressif/esp-idf!18891
2022-07-06 14:47:37 +08:00
GengYuchao
d145c337e0
Enable rpa_moudle reset function
2022-07-05 20:50:31 +08:00
cje
e16165f263
support c2 26M/32M xtal for bbpll
2022-07-05 17:45:03 +08:00
KonstantinKondrashov
0f8ff5aa15
efuse: Adds major and minor versions and others
2022-07-05 14:38:27 +08:00
Jakob Hasse
f8b5ed5d6c
refactor (soc, esp_rom)!: removed target-specific ROM dependencies
2022-07-05 13:57:58 +08:00
morris
7863c1bc45
Merge branch 'bugfix/fix_rtc_freq_err_for_h2_beta1' into 'master'
...
Bugfix/fix rtc freq err for h2 beta1
See merge request espressif/esp-idf!18682
2022-07-04 16:46:17 +08:00
Omar Chebib
cd48baf979
Refactor: move regi2c_*.h header files from esp_hw_support to soc component
...
When creating G0 layer, some regi2c_*.h headers were moved out from
esp_hw_support (G1) to soc (G0). In order to be consistent with that change,
move all the remaining regi2c_*.h headers to soc too.
2022-06-30 09:40:44 +00:00
GengYuchao
10fd1daa10
Add ETM clk gate defines for h2
2022-06-30 17:02:00 +08:00
Armando (Dou Yiwen)
e13d7f8351
Merge branch 'bugfix/s2_ap64_psram_crash_issue' into 'master'
...
psram: fix esp32s2 module with APS6404 PSRAM crash issue
Closes IDF-5361
See merge request espressif/esp-idf!18699
2022-06-29 11:19:17 +08:00