Hi All,
This abbreviated sketch demonstrates the issue I'm having with my larger program that runs perfectly on AVR. Errors below. What is the difference in declaring functions between AVR and SAM?
Help is appreciated. Thanks in advance.
#include<Arduino.h>
#include<Time.h>
#include<DS1307RTC.h>
void setup() {
setSyncInterval(100);
setSyncProvider(RTC.get); // get RTC time
}
void loop() {
}
Arduino: 1.6.8 (Windows 10), Board: "Arduino/Genuino MKR1000"
In file included from C:\Users\Mitchell\SkyDrive\Arduino\sketch_apr11a\sketch_apr11a.ino:3:0:
C:\Users\Mitchell\SkyDrive\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
^
C:\Users\Mitchell\SkyDrive\Arduino\libraries\DS1307RTC/DS1307RTC.h:20:23: error: 'tmElements_t' has not been declared
static bool write(tmElements_t &tm);
^
C:\Users\Mitchell\SkyDrive\Arduino\sketch_apr11a\sketch_apr11a.ino: In function 'void setup()':
sketch_apr11a:7: error: 'setSyncInterval' was not declared in this scope
setSyncInterval(100);
^
sketch_apr11a:8: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(RTC.get); // get RTC time
^
exit status 1
'setSyncInterval' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.