WarLord Rocks
/
RTClib
RTC DS3234 library
Fork of WDtester by
Diff: DS3234.h
- Revision:
- 2:c2e2b6238a69
- Parent:
- 1:7c0fa2bb38df
diff -r 7c0fa2bb38df -r c2e2b6238a69 DS3234.h --- a/DS3234.h Wed Dec 17 08:42:51 2014 +0000 +++ b/DS3234.h Thu Dec 18 10:09:31 2014 +0000 @@ -1,4 +1,5 @@ #include <mbed.h> +#include <SPI.h> #ifndef DS3234_h #define DS3234_h @@ -33,14 +34,16 @@ uint8_t year_s; /* year in short notation*/ }; -void DS3234_init(PinName pin, const uint8_t ctrl_reg); -void DS3234_get(PinName pin, struct ts *t); -void DS3234_set(PinName pin, struct ts t); +void init(PinName pin, const uint8_t ctrl_reg); +void get(PinName pin, struct ts *t); +void set(PinName pin, struct ts t); // Helping Functions + uint8_t dectobcd(const uint8_t val); uint8_t bcdtodec(const uint8_t val); + #endif