RTC on M0 and class design without rtc and target

Quote:

Example for training purposes only!!!

RTC/I2C data for target LPC11U24 Humer M0-Board and no data for others!!!

See RTC WIKI

RTC Class Hierarchy

RTC Example Main Program

Committer:
fpucher
Date:
Thu Nov 15 06:55:25 2018 +0000
Revision:
0:397b5462e6d7
ifdef target

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fpucher 0:397b5462e6d7 1 #include "mbed.h"
fpucher 0:397b5462e6d7 2 #include "const.h"
fpucher 0:397b5462e6d7 3 #include "rtc.h"
fpucher 0:397b5462e6d7 4
fpucher 0:397b5462e6d7 5 #ifndef TIME_H
fpucher 0:397b5462e6d7 6 #define TIME_H
fpucher 0:397b5462e6d7 7
fpucher 0:397b5462e6d7 8 class Time : public RTC
fpucher 0:397b5462e6d7 9 {
fpucher 0:397b5462e6d7 10 private:
fpucher 0:397b5462e6d7 11
fpucher 0:397b5462e6d7 12 public:
fpucher 0:397b5462e6d7 13 Time()
fpucher 0:397b5462e6d7 14 {}
fpucher 0:397b5462e6d7 15 uint8_t GetHours();
fpucher 0:397b5462e6d7 16 uint8_t GetMinutes();
fpucher 0:397b5462e6d7 17 uint8_t GetSeconds();
fpucher 0:397b5462e6d7 18 uint8_t bcdToUint(uint8_t const nybbles);
fpucher 0:397b5462e6d7 19 };
fpucher 0:397b5462e6d7 20 #endif