mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
6a986d2b0c
Makes it so much easier for novice users as the ArduinoTimers libraray is not yet available from the IDE Library Manager.
25 lines
862 B
C
25 lines
862 B
C
// This file is copied from https://github.com/davidcutting42/ArduinoTimers
|
|
// All Credit and copyright David Cutting
|
|
// The files included below come from the same source.
|
|
// This library had been included with the DCC code to avoid issues with
|
|
// library management for inexperienced users. "It just works (TM)"
|
|
|
|
#ifndef ArduinoTimers_h
|
|
#define ArduinoTimers_h
|
|
|
|
#if defined(SAMC21)
|
|
#include "ATSAMC21G/Timer.h"
|
|
#elif defined(ARDUINO_SAMD_ZERO)
|
|
#include "ATSAMD21G/Timer.h"
|
|
#elif defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560)
|
|
#include "ATMEGA2560/Timer.h"
|
|
#elif defined(ARDUINO_AVR_UNO)
|
|
#include "ATMEGA328/Timer.h"
|
|
#elif defined(ARDUINO_ARCH_MEGAAVR)
|
|
#include "ATMEGA4809/Timer.h"
|
|
#else
|
|
#error "Cannot compile - ArduinoTimers library does not support your board, or you are missing compatible build flags."
|
|
#endif
|
|
|
|
#endif
|