diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-15 20:49:24 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-15 20:49:24 +0000 |
commit | 9a98744b28ecfda0d78d5983e3a2d264c36bcec7 (patch) | |
tree | fe7dd0f7dad67a0d18c5693786f4c32594c8a962 /os/hal/platforms/STM32/RTCv2/rtc_lld.h | |
parent | 124a432b0ed05568381f2bf6930a86a767f85ea6 (diff) | |
download | ChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.tar.gz ChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.tar.bz2 ChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.zip |
RTC. Testhal works on F4x, compiles (but not deeply tested) on F1x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3615 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/RTCv2/rtc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/RTCv2/rtc_lld.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32/RTCv2/rtc_lld.h b/os/hal/platforms/STM32/RTCv2/rtc_lld.h index 8e1b58f6b..23ceb3132 100644 --- a/os/hal/platforms/STM32/RTCv2/rtc_lld.h +++ b/os/hal/platforms/STM32/RTCv2/rtc_lld.h @@ -48,12 +48,12 @@ #define RTC_ALARMS 2
/**
- * @brief Interrupt enable masks.
+ * @brief Callback enable masks.
*/
-#define ALARMA_INT 0x1
-#define ALARMB_INT 0x2
-#define WAKEUP_INT 0x4
-#define TIMESTAMP_INT 0x8
+#define ALARMA_CB_FLAG 0x1
+#define ALARMB_CB_FLAG 0x2
+#define WAKEUP_CB_FLAG 0x4
+#define TIMESTAMP_CB_FLAG 0x8
/*===========================================================================*/
/* Driver pre-compile time settings. */
@@ -158,6 +158,11 @@ struct RTCWakeup { /**
* @brief Structure representing an RTC callbacks config.
+ * @details It is bitmask. Set bit to enable callback, clear bit to disable.
+ * bit0 - alarmA
+ * bit1 - alarmB
+ * bit2 - wakeup
+ * bit3 - timestamp
*/
struct RTCCallbackConfig{
uint32_t cb_cfg;
|