diff options
| author | Keith Packard <keithp@keithp.com> | 2016-11-20 02:59:40 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-11-20 20:48:40 -0800 |
| commit | 552ea09fe7f9ce6c6b5f412cb2fcf603be2836c3 (patch) | |
| tree | c4bd3f12dae197ee286f4c291f55241fe10d6510 /src/stm/ao_arch.h | |
| parent | fd05d495b463685d81e75115a93fdda2764c7113 (diff) | |
altos/stm: Use basepri instead of primask for controlling interrupts
This allows for high priority interrupts (priority 0) to run, even
when other interrupts are blocked. Code executing in such interrupt
handlers must not attempt to control task execution as that will race
with the scheduler.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_arch.h')
| -rw-r--r-- | src/stm/ao_arch.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h index 0cc29376..1527014a 100644 --- a/src/stm/ao_arch.h +++ b/src/stm/ao_arch.h @@ -85,9 +85,6 @@ extern const uint32_t ao_radio_cal; #define ao_arch_task_members\ uint32_t *sp; /* saved stack pointer */ -#define ao_arch_block_interrupts() asm("cpsid i") -#define ao_arch_release_interrupts() asm("cpsie i") - /* * For now, we're running at a weird frequency |
