CMSIS-RTOS2
Version 2.1.3
Real-Time Operating System: API and RTX Reference Implementation
|
The following section lists the hardware requirements for RTX v5 on the various supported target processors:
RTX assumes a fully function-able processor and uses the following hardware features. It does not implement any confidence test for processor validation which should be provided by an user-supplied software test library.
Hardware Requirement | Description |
---|---|
SysTick timer | The SysTick timer generates the kernel tick interrupts and the interface is implemented in os_systick.c using the OS Tick API |
Exception Handler | RTX implements exception handlers for SVC, PendSV, and SysTick interrupt |
Core Registers | The processor status is read using the following core registers: CONTROL, IPSR, PRIMASK |
System Control Block (SBC) | To control and setup the processor exceptions including PendSV and SVC |
Interrupt Control | The CMSIS-Core functions __disable_irq and __enable_irq to control the interrupt system via the CPSR core register. |
The interface files to the processor hardware are:
SystemCoreClock
is used to configure the SysTick timer.Hardware Requirement | Description |
---|---|
SysTick timer | The SysTick timer generates the kernel tick interrupts and the interface is implemented in os_systick.c using the OS Tick API |
Exception Handler | RTX implements exception handlers for SVC, PendSV, and SysTick interrupt |
Core Registers | The processor status is read using the following core registers: CONTROL, IPSR, PRIMASK, BASEPRI |
System Control Block (SBC) | To control and setup the processor exceptions including PendSV and SVC |
NVIC Interface | The CMSIS-Core function NVIC_GetPriorityGrouping to setup interrupt priorities. |
LDREX, STREX instruction | Atomic execution avoids the requirement to disable interrupts and is implemented via exclusive access instructions. |
The interface files to the processor hardware are:
SystemCoreClock
is used to configure the SysTick timer.Hardware Requirement | Description |
---|---|
Timer Peripheral | An arbitrary timer peripheral generates the kernel tick interrupts. The interfaces for Cortex-A Generic Timer and Private Timer are implemented in os_tick_gtim.c and os_tick_ptim.c using the OS Tick API |
Exception Handler | RTX implements exception handlers for SVC, IRQ, Data Abort, Prefetch Abort and Undefined Instruction interrupt. |
Core Registers | The processor status is read using the following core registers: CPSR, CPACR and FPSCR. |
LDREX, STREX instruction | Atomic execution avoids the requirement to disable interrupts and is implemented via exclusive access instructions. |
Interrupt Controller | An interrupt controller interface is required to setup and control Timer Peripheral interrupt. The interface for Arm GIC (Generic Interrupt Controller) is implemented in irq_ctrl_gic.c using the IRQ Controller API. |
The interface files to the processor hardware are:
SystemCoreClock
is used to configure the timer peripheral.RTX requires RAM memory that is accessible with contiguous linear addressing. When memory is split across multiple memory banks, some systems do not accept multiple load or store operations on this memory blocks.
RTX does not implement any confidence test for memory validation. This should be implemented by an user-supplied software test library.