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

Time.h

Committer:
fpucher
Date:
2018-11-15
Revision:
0:397b5462e6d7

File content as of revision 0:397b5462e6d7:

#include "mbed.h"
#include "const.h"
#include "rtc.h"

#ifndef TIME_H
#define TIME_H

class Time : public RTC
{
    private:
    
    public:
    Time()
    {}
    uint8_t GetHours();
    uint8_t GetMinutes();
    uint8_t GetSeconds();
    uint8_t bcdToUint(uint8_t const nybbles);
};
#endif