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.

ble_system.h 529B

3 years ago
12345678910111213141516171819202122
  1. #ifndef BLE_SYSTEM_H_
  2. #define BLE_SYSTEM_H
  3. /*
  4. #define HAL_IO_RADIO_CSN SS
  5. #define HAL_IO_RADIO_REQN SS
  6. #define HAL_IO_RADIO_RDY 3
  7. #define HAL_IO_RADIO_SCK SCK
  8. #define HAL_IO_RADIO_MOSI MOSI
  9. #define HAL_IO_RADIO_MISO MISO
  10. #define HAL_IO_RADIO_RESET 9
  11. #define HAL_IO_RADIO_ACTIVE 8
  12. //#define HAL_IO_LED0 2
  13. //#define HAL_IO_LED1 6
  14. */
  15. #define ENABLE_INTERRUPTS() sei()
  16. #define DISABLE_INTERRUPTS() cli()
  17. #define ARE_INTERRUPTS_ENABLED() ((SREG & 0x80) == 0x80)
  18. #endif