theCore C++ embedded framework
Collaboration diagram for Execution control module:

Functions

 ecl::__attribute__ ((noreturn)) static inline void abort()
 Aborts execution of currently running code. Never return. More...
 
static void ecl::wfi ()
 Waits for interrupts. More...
 
static void ecl::wfe ()
 Waits for events. More...
 
static void ecl::spin_wait (uint32_t ms)
 Performs a dummy busy wait for specified amount of milliseconds. More...
 

Detailed Description

Function Documentation

◆ __attribute__()

ecl::__attribute__ ( (noreturn)  )

Aborts execution of currently running code. Never return.

◆ wfi()

static void ecl::wfi ( )
inlinestatic

Waits for interrupts.

Processor will stop executing until any interrupt will occur. See also: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0014q/CJAJGICJ.html

◆ wfe()

static void ecl::wfe ( )
inlinestatic

Waits for events.

Processor will stop executing until any event will occur.

Note
Event flag will be set regardless of execution state. To track spurious wakeup, additional flags must be checked. See also: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0014q/CJAJGICJ.html

◆ spin_wait()

static void ecl::spin_wait ( uint32_t  ms)
inlinestatic

Performs a dummy busy wait for specified amount of milliseconds.

Parameters
msnumber of milliseconds to wait.

This function is useful for a short delays.

Returns
None.