Add a variety of automated tests
This commit is contained in:
@@ -45,6 +45,12 @@ public:
|
||||
static BSP::ReturnCode get_time(BSP::WallClockTime &tm_bcd);
|
||||
static BSP::ReturnCode set_time(const BSP::WallClockTime &tm_bcd);
|
||||
static BSP::ReturnCode set_wakeup_in(BSP::time_t wakeup_delay);
|
||||
static uint32_t get_wakeup_count();
|
||||
static uint32_t get_alarm_count();
|
||||
|
||||
static void increment_seconds_count();
|
||||
static void increment_wakeup_count();
|
||||
static void increment_alarm_count();
|
||||
|
||||
private:
|
||||
|
||||
@@ -55,7 +61,6 @@ private:
|
||||
static void enable_periodic_alarm();
|
||||
|
||||
static constexpr uint32_t LSE_CLOCK_FREQ = 32768;
|
||||
|
||||
static RTC_TypeDef *m_rtc;
|
||||
|
||||
class RtcSystemTimer : public BSP::SystemTimerImpl {
|
||||
@@ -77,6 +82,8 @@ private:
|
||||
static constexpr uint32_t LSE_CLOCK_FREQ = 32768;
|
||||
};
|
||||
|
||||
static uint32_t m_wakeup_count;
|
||||
static uint32_t m_alarm_count;
|
||||
static RtcSystemTimer m_sys_timer;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user