rei-vilo / DateTime_Library

RTC for MSP432 and TM4C, plus NTP for CC3200
5 stars 10 forks source link

compiling for lm4f120 #1

Closed raako71 closed 9 years ago

raako71 commented 9 years ago

I've put this library in my sketchbook folder and the opened the MSP432_RTC example and had the following compile errors:

In file included from MSP432_RTC.cpp:81:0:
H:\Energia\libraries\DateTime/DateTimeLibrary.h:49:18: fatal error: WiFi.h: No such file or directory

I got around this by changing line 46 in DateTimeLibrary.h to

#define INCLUDE_NTP 0

next error:

H:\Energia\libraries\DateTime\DateTimeLibrary.cpp: In member function 'void DateTime::setTime(tm)':
H:\Energia\libraries\DateTime\DateTimeLibrary.cpp:255:25: error: 'timeEpoch' was not declared in this scope

not sure as to fixing this..

rei-vilo commented 9 years ago

Please download latest commit 9e66b812f5.

raako71 commented 9 years ago

hey it compiles now :) Although I had it set to the MSP430 board and it failed with: MSP432_RTC.cpp:78:18: fatal error: time.h: No such file or directory compilation terminated.

rei-vilo commented 9 years ago

MSP430 is not supported.

raako71 commented 9 years ago

:thumbsup: thanks for that