I get an error when trying to include the snooze library 5.5.0 in my sketch. I create a new empty sketch and only include the snooze lib. Then the following error appears when compiling:
I get this on both my mac's and on my windows machine. When I compile for other Teensy's the error does not occur. Does anybody else see this behavior?
Code:
In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/mcg.h:11:0,
from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/Snooze.h:38,
from /var/folders/f4/yg86rjpn6lq6f5w40qmddkpr0000gn/T/arduino_95e061125ddeb3eb215d16fe38c47dc7/sketch_jan11a.ino:1:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/kinetis_ext.h:854:0: warning: "SIM_SOPT1_OSC32KSEL" redefined [enabled by default]
#define SIM_SOPT1_OSC32KSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT1_OSC32KSEL_SHIFT))&SIM_SOPT1_OSC32KSEL_MASK)
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/core_pins.h:34:0,
from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/wiring.h:33,
from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/WProgram.h:15,
from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/Arduino.h:1,
from /var/folders/f4/yg86rjpn6lq6f5w40qmddkpr0000gn/T/build95e061125ddeb3eb215d16fe38c47dc7.tmp/sketch/sketch_jan11a.ino.cpp:1:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/kinetis.h:823:0: note: this is the location of the previous definition
#define SIM_SOPT1_OSC32KSEL(n) ((uint32_t)(((n) & 3) << 18)) // 32K oscillator clock, 0=system osc, 2=rtc osc, 3=lpo
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/Snooze.h:49:0,
from /var/folders/f4/yg86rjpn6lq6f5w40qmddkpr0000gn/T/arduino_95e061125ddeb3eb215d16fe38c47dc7/sketch_jan11a.ino:1:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h:64:20: error: 'SIM_SCGC6_PDB' was not declared in this scope
PDB_OFF = SIM_SCGC6_PDB,
^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h:77:19: error: 'SIM_SCGC6_PDB' was not declared in this scope
PDB_ON = SIM_SCGC6_PDB,
^
In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/Snooze.h:49:0,
from /var/folders/f4/yg86rjpn6lq6f5w40qmddkpr0000gn/T/arduino_95e061125ddeb3eb215d16fe38c47dc7/sketch_jan11a.ino:1:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h: In function 'void pdbEnable()':
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h:333:26: error: 'SIM_SCGC6_PDB' was not declared in this scope
if ((SIM_SCGC6 & SIM_SCGC6_PDB) == 0x00) {
^
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h: In function 'void pdbDisable()':
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Snooze/utility/peripheral.h:347:25: error: 'SIM_SCGC6_PDB' was not declared in this scope
if (SIM_SCGC6 & SIM_SCGC6_PDB) {
^
exit status 1
Error compiling.
I get this on both my mac's and on my windows machine. When I compile for other Teensy's the error does not occur. Does anybody else see this behavior?