[riot-commits] [RIOT-OS/RIOT] 4534e9: cpu/cortexm_common: add irq sub-priorities

Pekka Nikander noreply at github.com
Fri Apr 3 17:49:34 CEST 2020

  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 4534e9b7733895e8a53aa68206e85c7ed2a42344
  Author: Pekka Nikander <pekka.nikander at iki.fi>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M cpu/cortexm_common/cortexm_init.c
    M cpu/cortexm_common/include/cpu_conf_common.h

  Log Message:
  cpu/cortexm_common: add irq sub-priorities

This commit enables Cortex-M CPU interrupt sub-priorities
and allows the PendSV interrupt to have a priority different
from the default one.  Together these two preprocessor
defines can be used to have PendSV always run as the last interrupt
before returning from the interrupt stack back to the user space.

Running PendSV as the last interrupt before returning to the
user space is recommended by ARM, as it increases efficiency.
Furthermore, that change enhances stability a lot with the
new nRF52 SoftDevice support, currently being worked in
PR #9473.

This commit merely enables sub-priorities and a separate
PendSV priority to be used without changing the default
RIOT behaviour.

More information about the commits mailing list