Begin Teensy 3.1 port

This commit is contained in:
PaulStoffregen
2014-06-07 18:47:44 -07:00
parent d765d114e0
commit ba10c7c572
6 changed files with 118 additions and 32 deletions

View File

@@ -22,9 +22,10 @@
/** \file
Tlc5940 library header file. */
#include <stdint.h>
#include <Arduino.h>
#include "tlc_config.h"
#if defined(__AVR__)
#ifdef TLC_ATMEGA_8_H
/** Enables the Timer1 Overflow interrupt, which will fire after an XLAT
@@ -48,6 +49,19 @@
/** Disables the output of XLAT pulses */
#define disable_XLAT_pulses() TCCR1A = _BV(COM1B1)
#elif defined(__arm__) && defined(TEENSYDUINO)
#define set_XLAT_interrupt()
#define clear_XLAT_interrupt()
#define enable_XLAT_pulses()
#define disable_XLAT_pulses()
#endif
extern volatile uint8_t tlc_needXLAT;
extern volatile void (*tlc_onUpdateFinished)(void);
extern uint8_t tlc_GSData[NUM_TLCS * 24];