mirror of
https://github.com/PaulStoffregen/Tlc5940
synced 2025-09-27 10:02:20 +02:00
Begin Teensy 3.1 port
This commit is contained in:
16
Tlc5940.h
16
Tlc5940.h
@@ -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];
|
||||
|
Reference in New Issue
Block a user