µC/CPU
µC/CPU is a module that provides CPU-specific functionality that is independent of µC/OS-III. Specifically, µC/CPU defines compiler and CPU dependent data types, the word width of the stack, whether the stack grows from high-to-low memory or from low-to-high memory, functions for disabling and enabling interrupts and more. Additional information about this module is provided in the µC/CPU User’s Manual (uC-CPU-Manual.pdf) which is found in the \Micrium\Software\uC-CPU\Doc folder.
Table 18-1 shows the name of µC/CPU files and where they should be placed on the computer used to develop a µC/OS-III-based application. The file names in bold are files you will need to create or modify for your own port.
File |
Directory |
cpu_bsp.c |
\Micrium\Software\uC-CPU\BSP\Template\cpu_bsp.c |
cpu_def.h |
\Micrium\Software\uC-CPU\ |
cpu_cfg.h |
\Micrium\Software\uC-CPU\CFG\Template |
cpu_core.c |
\Micrium\Software\uC-CPU\ |
cpu_core.h |
\Micrium\Software\uC-CPU\ |
cpu.h |
\Micrium\Software\uC-CPU\<processor>\<compiler> |
cpu_c.c |
\Micrium\Software\uC-CPU\<processor>\<compiler> |
cpu_a.asm |
\Micrium\Software\uC-CPU\<processor>\<compiler> |
-
- µC/CPU files and directories
<processor> is the name of the processor that the cpu*.* files apply to.
<compiler> is the name of the toolchain (compiler, assembler, linker/locator) used. Each has its own directory because they may have different features that makes them different from one another.