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.

73 satır
2.3KB

  1. //
  2. // OSCBoards.h
  3. //
  4. //
  5. // Created by AdrianFreed on 5/26/13.
  6. //
  7. //
  8. #ifndef _OSCBoards_h
  9. #define _OSCBoards_h
  10. #if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__) || defined(__MK66FX1M0__)
  11. // Teensy 3.0 3.1 (PIC32's might have some day) 3.1LC 3.2 3.5
  12. #define BOARD_HAS_CAPACITANCE_SENSING
  13. #endif
  14. #if defined(__AVR_ATmega32U4__) || defined(__MKL26Z64__) || defined(__MK20DX128__)|| defined(__MK20DX256__) || defined(__MK66FX1M0__) || defined(__AVR_ATmega328_) || defined(__AVR_ATmega128__)
  15. #define BOARD_HAS_DIE_TEMPERATURE_SENSOR
  16. #endif
  17. #if defined(__AVR_ATmega32U4__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK66FX1M0__)|| defined(__MKL26Z64__) || defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined (__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined (__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega328_) || defined(__AVR_ATmega128__)
  18. #define BOARD_HAS_DIE_POWER_SUPPLY_MEASUREMENT
  19. #endif
  20. #if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined (__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined (__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega328_) || defined(__AVR_ATmega128__)
  21. #define BOARD_HAS_ANALOG_PULLUP
  22. #endif
  23. // missing specs for PIC32
  24. #if defined(__PIC32MX__)
  25. #define NUM_ANALOG_INPUTS NUM_ANALOG_PINS
  26. #define NUM_DIGITAL_INPUTS NUM_DIGITAL_PINS
  27. #define LED_BUILTIN PIN_LED1
  28. #endif
  29. // missing specs for Arduino Due
  30. #if defined(__SAM3X8E__)
  31. #endif // defined(__SAM3X8E__)
  32. // missing specs for Leonardo derived devices
  33. #if ! defined(CORE_TEENSY) && (defined(__AVR_ATmega32U4__) && (!defined(LED_BUILTIN) || !defined(analogInputToDigitalPin)) )
  34. #if F_CPU==16000000
  35. // Leonardo and Esplora
  36. #ifndef LED_BUILTIN
  37. #define LED_BUILTIN 13
  38. #endif
  39. #else // F_CPU
  40. //Lilypad USB and Flora (8Mhz)
  41. #ifndef LED_BUILTIN
  42. #define LED_BUILTIN 13 // its 7 on Flora but how do we detect this?
  43. #endif
  44. #endif //F_CPU
  45. #endif
  46. #endif