Skip to content
Snippets Groups Projects
Commit c6dbe6e9 authored by Scott Alfter's avatar Scott Alfter Committed by Scott Lahteine
Browse files

Fix Teensy 3.5/3.6 __get_primask (#13514)

parent e40636a7
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@
#include "HAL_timers_Teensy.h"
#include <stdint.h>
#include <util/atomic.h>
#define ST7920_DELAY_1 DELAY_NS(600)
#define ST7920_DELAY_2 DELAY_NS(750)
......@@ -84,9 +85,9 @@ typedef int8_t pin_t;
#define analogInputToDigitalPin(p) ((p < 12u) ? (p) + 54u : -1)
#endif
#define CRITICAL_SECTION_START uint32_t primask = __get_PRIMASK(); __disable_irq()
#define CRITICAL_SECTION_START uint32_t primask = __get_primask(); __disable_irq()
#define CRITICAL_SECTION_END if (!primask) __enable_irq()
#define ISRS_ENABLED() (!__get_PRIMASK())
#define ISRS_ENABLED() (!__get_primask())
#define ENABLE_ISRS() __enable_irq()
#define DISABLE_ISRS() __disable_irq()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment