Detailed Description
ARM Cortex-Mx specific port code, structures and macros.
Function Documentation
Halts the system.
- Note:
- The function is declared as a weak symbol, it is possible to redefine it in your application code.
Definition at line 39 of file chcore.c.
References port_disable, and TRUE.
Define Documentation
Cortex-M0 variant.
Definition at line 44 of file chcore.h.
Cortex-M1 variant.
Definition at line 45 of file chcore.h.
Cortex-M3 variant.
Definition at line 46 of file chcore.h.
Cortex-M4 variant.
Definition at line 47 of file chcore.h.
| #define CORTEX_PRIORITY_LEVELS (1 << CORTEX_PRIORITY_BITS) |
Total priority levels.
Definition at line 64 of file chcore.h.
| #define CORTEX_MINIMUM_PRIORITY (CORTEX_PRIORITY_LEVELS - 1) |
Minimum priority level.
This minimum priority level is calculated from the number of priority bits supported by the specific Cortex-Mx implementation.
Definition at line 71 of file chcore.h.
| #define CORTEX_MAXIMUM_PRIORITY 0 |
Maximum priority level.
The maximum allowed priority level is always zero.
Definition at line 77 of file chcore.h.
| #define CORTEX_IS_VALID_PRIORITY |
( |
|
n | ) |
(((n) >= 0) && ((n) < CORTEX_PRIORITY_LEVELS)) |
Priority level verification macro.
Definition at line 86 of file chcore.h.
| #define CORTEX_IS_VALID_KERNEL_PRIORITY |
( |
|
n | ) |
(((n) >= CORTEX_MAX_KERNEL_PRIORITY) && ((n) < CORTEX_PRIORITY_LEVELS)) |
Priority level verification macro.
Definition at line 92 of file chcore.h.
| #define CORTEX_PRIORITY_MASK |
( |
|
n | ) |
((n) << (8 - CORTEX_PRIORITY_BITS)) |
Priority level to priority mask conversion macro.
Definition at line 98 of file chcore.h.
Referenced by _port_init().
| #define CH_ARCHITECTURE_ARM |
Macro defining a generic ARM architecture.
Definition at line 116 of file chcore.h.
| #define CH_COMPILER_NAME "IAR" |
Name of the compiler supported by this port.
Definition at line 121 of file chcore.h.
| #define PORT_OPTIMIZED_ISPREEMPTIONREQUIRED |
Inline function modifier.
Definition at line 55 of file chtypes.h.
ROM constant modifier.
- Note:
- It is set to use the "const" keyword in this port.
Definition at line 61 of file chtypes.h.
| #define PACK_STRUCT_STRUCT |
Packed structure modifier (within).
- Note:
- Empty in this port.
Definition at line 67 of file chtypes.h.
| #define PACK_STRUCT_BEGIN __packed |
Packed structure modifier (before).
Definition at line 72 of file chtypes.h.
Packed structure modifier (after).
- Note:
- Empty in this port.
Definition at line 78 of file chtypes.h.
Typedef Documentation
Stack and memory alignment enforcement.
- Note:
- In this architecture the stack alignment is enforced to 64 bits, 32 bits alignment is supported by hardware but deprecated by ARM, the implementation choice is to not offer the option.
Definition at line 149 of file chcore.h.
Fast boolean type.
Definition at line 39 of file chtypes.h.
Inter-thread message.
Definition at line 45 of file chtypes.h.
Resources counter.
Definition at line 50 of file chtypes.h.