mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
fix(soc): fix wrong freq definition for 26Mhz version esp32c2 soc
This commit is contained in:
@@ -125,6 +125,8 @@ idf_component_register(SRCS ${srcs}
|
|||||||
# Replace this value in an adaptive way, if Kconfig isn't available on your platform
|
# Replace this value in an adaptive way, if Kconfig isn't available on your platform
|
||||||
target_compile_definitions(${COMPONENT_LIB} INTERFACE SOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE)
|
target_compile_definitions(${COMPONENT_LIB} INTERFACE SOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE)
|
||||||
|
|
||||||
|
target_compile_definitions(${COMPONENT_LIB} INTERFACE SOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ)
|
||||||
|
|
||||||
if(target STREQUAL "esp32")
|
if(target STREQUAL "esp32")
|
||||||
# esp_dport_access_reg_read is added as an undefined symbol because otherwise
|
# esp_dport_access_reg_read is added as an undefined symbol because otherwise
|
||||||
# the linker can ignore dport_access.c as it would no other files depending on any symbols in it.
|
# the linker can ignore dport_access.c as it would no other files depending on any symbols in it.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
#define EFUSE_CLK_FREQ_ROM ( 20*1000000)
|
#define EFUSE_CLK_FREQ_ROM ( 20*1000000)
|
||||||
#define CPU_CLK_FREQ_MHZ_BTLD (80) // The cpu clock frequency (in MHz) to set at 2nd stage bootloader system clock configuration
|
#define CPU_CLK_FREQ_MHZ_BTLD (80) // The cpu clock frequency (in MHz) to set at 2nd stage bootloader system clock configuration
|
||||||
#define CPU_CLK_FREQ APB_CLK_FREQ
|
#define CPU_CLK_FREQ APB_CLK_FREQ
|
||||||
#define APB_CLK_FREQ ( 40*1000000 )
|
#define APB_CLK_FREQ (SOC_XTAL_FREQ_MHZ * 1000000 )
|
||||||
#define MODEM_REQUIRED_MIN_APB_CLK_FREQ ( 80*1000000 )
|
#define MODEM_REQUIRED_MIN_APB_CLK_FREQ ( 80*1000000 )
|
||||||
#define REF_CLK_FREQ ( 1000000 )
|
#define REF_CLK_FREQ ( 1000000 )
|
||||||
#define UART_CLK_FREQ APB_CLK_FREQ
|
#define UART_CLK_FREQ APB_CLK_FREQ
|
||||||
|
Reference in New Issue
Block a user