From 9ffed75d285c88089c9428750bfa18415fc4745b Mon Sep 17 00:00:00 2001 From: DiSlord Date: Mon, 4 Nov 2024 23:39:59 +0300 Subject: [PATCH] Fix RTC 512Hz out --- NANOVNA_STM32_F072/mcuconf.h | 2 +- NANOVNA_STM32_F303/mcuconf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NANOVNA_STM32_F072/mcuconf.h b/NANOVNA_STM32_F072/mcuconf.h index f0f24a1..5ba2c42 100644 --- a/NANOVNA_STM32_F072/mcuconf.h +++ b/NANOVNA_STM32_F072/mcuconf.h @@ -68,7 +68,7 @@ #define RTC_PRER(a, s) ((((a) - 1) << 16) | ((s) - 1)) // LSE for 32768 quartz -#define STM32_RTC_LSE_PRER RTC_PRER( 32, 1024) +#define STM32_RTC_LSE_PRER RTC_PRER(128, 256) // LSI 40k #define STM32_RTC_LSI_PRER RTC_PRER( 40, 1000) diff --git a/NANOVNA_STM32_F303/mcuconf.h b/NANOVNA_STM32_F303/mcuconf.h index 05db0bb..a243085 100644 --- a/NANOVNA_STM32_F303/mcuconf.h +++ b/NANOVNA_STM32_F303/mcuconf.h @@ -73,7 +73,7 @@ #define RTC_PRER(a, s) ((((a) - 1) << 16) | ((s) - 1)) // LSE for 32768 quartz -#define STM32_RTC_LSE_PRER RTC_PRER( 32, 1024) +#define STM32_RTC_LSE_PRER RTC_PRER(128, 256) // LSI 40k #define STM32_RTC_LSI_PRER RTC_PRER( 40, 1000)