core/arch/cortex-m3/gcc/include/scheduler_arch.h File Reference

Scheduler architecture (Cortex-M3) specific parts. More...

Defines

#define OS_SCHEDULE_REQ   DOC_HIDDEN
 Set scheduling request. This is used in ISRs. scheduling will be done after processing all ISRs (pending or active)

Functions

static os_result_t os_schedule (void)
 Scheduling request. It is used in system function when context switching may be necessary.
static void os_schedule_init (void)
 Enables PendSV Exception - it is required for scheduling on ISR exit (the functionality is hardware supported)

Detailed Description

Scheduler architecture (Cortex-M3) specific parts.

Author:
Piotr Romaniuk, (c) ELESOFTROM
Version:
1.1 Nov 8, 2013

Function Documentation

static os_result_t os_schedule ( void  ) [inline, static]

Scheduling request. It is used in system function when context switching may be necessary.

Note that this function can switch to another thread, so returns after switching back here.

Returns:
OS_STATUS_OK when correct scheduling.
{ DOC_HIDDEN }
static void os_schedule_init ( void  ) [inline, static]

Enables PendSV Exception - it is required for scheduling on ISR exit (the functionality is hardware supported)

{ DOC_HIDDEN }