Fix RTC frequency for now

This commit is contained in:
Rodrigo Arias 2024-09-26 11:31:47 +02:00
parent 2e2b957528
commit d694f3c8da

View File

@ -3,7 +3,12 @@
/* The RTC timer is clocked at the CPU frequency / 1525, so /* The RTC timer is clocked at the CPU frequency / 1525, so
* around 32786.88 Hz */ * around 32786.88 Hz */
#define RTC_CLOCK_FREQUENCY 32786 //#define RTC_CLOCK_FREQUENCY 32786
/* FIXME: The real RTC frequency is around half that, as the divider was wrongly
* configured. So for now lets use the real frequency:
* 50e6 / (1525*2) = 16393.44262295082 -> 16393 Hz */
#define RTC_CLOCK_FREQUENCY 16393
#define UART_SPEED 115200 #define UART_SPEED 115200
#define UART0_ADDR 0x40001000 #define UART0_ADDR 0x40001000