PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
960B

  1. #ifndef __INC_LED_SYSDEFS_APOLLO3_H
  2. #define __INC_LED_SYSDEFS_APOLLO3_H
  3. #define FASTLED_APOLLO3
  4. #ifndef INTERRUPT_THRESHOLD
  5. #define INTERRUPT_THRESHOLD 1
  6. #endif
  7. // Default to allowing interrupts
  8. #ifndef FASTLED_ALLOW_INTERRUPTS
  9. #define FASTLED_ALLOW_INTERRUPTS 1
  10. #endif
  11. #if FASTLED_ALLOW_INTERRUPTS == 1
  12. #define FASTLED_ACCURATE_CLOCK
  13. #endif
  14. #ifndef F_CPU
  15. #define F_CPU 48000000
  16. #endif
  17. // Default to NOT using PROGMEM
  18. #ifndef FASTLED_USE_PROGMEM
  19. #define FASTLED_USE_PROGMEM 0
  20. #endif
  21. // data type defs
  22. typedef volatile uint8_t RoReg; /**< Read only 8-bit register (volatile const unsigned int) */
  23. typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile unsigned int) */
  24. #define FASTLED_NO_PINMAP
  25. // reusing/abusing cli/sei defs for due
  26. // These should be fine for the Apollo3. It has its own defines in cmsis_gcc.h
  27. #define cli() __disable_irq(); //__disable_fault_irq();
  28. #define sei() __enable_irq(); //__enable_fault_irq();
  29. #endif