RTC fixes for Teensy41 and mega2561
This commit is contained in:
parent
3aa21a160a
commit
1da8672bf7
|
@ -24,7 +24,7 @@ board=ATmega2561
|
||||||
framework=arduino
|
framework=arduino
|
||||||
build_unflags = -Os
|
build_unflags = -Os
|
||||||
build_flags = -O3 -ffast-math -Wall -Wextra -std=c99
|
build_flags = -O3 -ffast-math -Wall -Wextra -std=c99
|
||||||
lib_deps = EEPROM
|
lib_deps = EEPROM, Time
|
||||||
test_build_project_src = true
|
test_build_project_src = true
|
||||||
|
|
||||||
[env:teensy35]
|
[env:teensy35]
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
#define BOARD_DIGITAL_GPIO_PINS 34
|
#define BOARD_DIGITAL_GPIO_PINS 34
|
||||||
#define BOARD_NR_GPIO_PINS 34
|
#define BOARD_NR_GPIO_PINS 34
|
||||||
#define EEPROM_LIB_H <EEPROM.h>
|
#define EEPROM_LIB_H <EEPROM.h>
|
||||||
|
#define RTC_ENABLED
|
||||||
|
#define RTC_LIB_H "TimeLib.h"
|
||||||
|
|
||||||
#define micros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros()
|
#define micros_safe() micros() //timer5 method is not used on anything but AVR, the micros_safe() macro is simply an alias for the normal micros()
|
||||||
#define pinIsReserved(pin) ( ((pin) == 0) ) //Forbiden pins like USB
|
#define pinIsReserved(pin) ( ((pin) == 0) ) //Forbiden pins like USB
|
||||||
|
|
Loading…
Reference in New Issue