Closed SergioGasquez closed 6 months ago
Here is a list of the registers used to configure the clock source in UART for the different targets:
UART_TICK_REF_ALWAYS_ON
):
UART_SCLK_SEL
):
UART_SCLK_SEL
):
PCR_UART0_SCLK_SEL/PCR_UART1_SCLK_SEL
)
PCR_UART0_SCLK_SEL/PCR_UART1_SCLK_SEL
)
UART_TICK_REF_ALWAYS_ON
)
UART_SCLK_SEL
)
In
espflash
, we use UART for estimating the crystal frequency, inesp-hal
, we use APB clock (hardcoded) as source for UART.To generate the stubs, I had to update
esp-hal
, to usextal_clock
as source of UART, see changes in: https://github.com/esp-rs/esp-hal/compare/main...SergioGasquez:esp-hal:feat/clk-src. In order to avoid doing this every time we update the stubs (although it would only affect C2) , we want to add a way to configure the UART src clock.