Menu

#509 STM32L1 Medium Density Plus RTC Subseconds

2.6.5
closed
Low
2.6.4
True
2014-08-05
2014-05-31
wild-boar
No

This patch (against stable_2.6.x) allowed me to add subseconds to the RTC driver for a STM32L1 MDP device:

Index: os/hal/platforms/STM32L1xx/stm32_registry.h
===================================================================
--- os/hal/platforms/STM32L1xx/stm32_registry.h (revision 6970)
+++ os/hal/platforms/STM32L1xx/stm32_registry.h (working copy)
@@ -89,7 +89,11 @@

 /* RTC attributes.*/
 #define STM32_HAS_RTC                       TRUE
+#if defined(STM32L1XX_MDP)
+#define STM32_RTC_HAS_SUBSECONDS            TRUE
+#else
 #define STM32_RTC_HAS_SUBSECONDS            FALSE
+#endif
 #define STM32_RTC_IS_CALENDAR               TRUE

Discussion

  • Giovanni Di Sirio

    • assigned_to: Giovanni Di Sirio
    • Fixed in Repository: False --> True
     
  • Giovanni Di Sirio

    • Affected Version: 2.6.5 --> 2.6.4
    • Milestone: 2.6.6 --> 2.6.5
     
  • Giovanni Di Sirio

    • status: open --> closed
     

Log in to post a comment.