forked from FastLED/FastLED
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up systefs/fastled headers for k26. Tweak some TEENSY3 define che…
…cks to also check (or ignore) TEENSYLC
- Loading branch information
1 parent
2f26e8b
commit a317355
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef __INC_FASTLED_ARM_K26_H | ||
#define __INC_FASTLED_ARM_K26_H | ||
|
||
// Include the k20 headers | ||
#include "delay.h" | ||
#include "fastpin_arm_k26.h" | ||
#include "fastspi_arm_k26.h" | ||
#include "clockless_arm_k26.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef __INC_LED_SYSDEFS_ARM_K26_H | ||
#define __INC_LED_SYSDEFS_ARM_K26_H | ||
|
||
#define FASTLED_TEENSYLC | ||
#define FASTLED_ARM | ||
|
||
#ifndef INTERRUPT_THRESHOLD | ||
#define INTERRUPT_THRESHOLD 1 | ||
#endif | ||
|
||
// Default to allowing interrupts | ||
#ifndef FASTLED_ALLOW_INTERRUPTS | ||
#define FASTLED_ALLOW_INTERRUPTS 1 | ||
#endif | ||
|
||
#if FASTLED_ALLOW_INTERRUPTS == 1 | ||
#define FASTLED_ACCURATE_CLOCK | ||
#endif | ||
|
||
#if (F_CPU == 96000000) | ||
#define CLK_DBL 1 | ||
#endif | ||
|
||
// Get some system include files | ||
#include <avr/io.h> | ||
#include <avr/interrupt.h> // for cli/se definitions | ||
|
||
// Define the rgister types | ||
#if defined(ARDUINO) // && ARDUINO < 150 | ||
typedef volatile uint8_t RoReg; /**< Read only 8-bit register (volatile const unsigned int) */ | ||
typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */ | ||
#endif | ||
|
||
extern volatile uint32_t systick_millis_count; | ||
# define MS_COUNTER systick_millis_count | ||
|
||
#endif |