Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The table below 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.

Panel


FileDirectory
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>



Panel
bgColor#f0f0f0

<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.

...

Panel
titleµC/CPU Template Files


File

Directory

cpu.h

\Micrium\Software\uC-CPU\Template

cpu_c.c

\Micrium\Software\uC-CPU\Template

cpu_a.asm

\Micrium\Software\uC-CPU\Template


cpu.h

Many CPUs have different word lengths and cpu.h declares a series of type definitions that ensure portability. Specifically, we don’t use the C data types intshortlongcharetc. at Micrium. Instead, clearer data types are defined. Consult your compiler documentation to determine whether the standard declarations described below need to be changed for the CPU/compiler you are using. You should note that the typedefs below are not all grouped together in cpu.h and also, cpu.h contains additional comments about these data types.

...