This port includes support for all devices using one of the following cores:
The core supports the following features:
WFI
instruction in the idle thread in order to reduce power consumption.This port uses an highest priority exception for preemption handling, there are two possible choices.
This mode uses a software-triggered NMI for preemption, this solution has the advantage of freeing the whole IRQ priority range for applications because NMI has priority -1.
By setting CORTEX_ALTERNATE_SWITCH
to TRUE
in chconf.h
PendSV is used instead of NMI. PendSV is placed to priority level zero which becomes reserved. This is a fallback in case NMI is used for other things.
Setting CORTEX_ENABLE_WFI_IDLE
to TRUE
in chconf.h
inserts a WFI
instruction in the system idle tool. This can be used for advanced power management.