UC / OS-III 사용 설명서에 대한주의 사항

1. 아키텍처

 

F2-1 (1) 응용 프로그램 코드는 프로젝트 또는 제품 파일로 구성되어 있습니다. 편의를 위해,이 단순히 그러나 응용 프로그램이 응용 프로그램 호출 할 필요가 없습니다 파일이 포함될 수 있습니다, APP.C 및 APP_H,라고합니다. *. 응용 프로그램 코드는 하나의 메인을 찾을 것이다 곳 일반적으로 ().

F2-1 (2) 반도체 제조업체들은 종종 자신의 CPU 또는 MCU의 주변 장치에 액세스하기위한 소스 형태의 라이브러리 기능을 제공합니다. 이 라이브러리는 매우 유용하고 자주 귀중한 시간을 저장합니다. 가정 .H 이러한 파일, *이 .c와 *에 대한 명명 규칙이 없기 때문에.

F2-1 (3) 보드 지원 패키지 (BSP)은 일반적으로 타겟 보드에 주변 장치 인터페이스에 기록되는 코드입니다. 예를 들면 코드와 LED를 끌 수와 릴레이 끄거나 스위치, 온도 센서 등을 읽는다.

F2-1(4) This is the μC/OS-III processor-independent code. This code is written in highly portable ANSI C.

F2-1(5) This is the μC/OS-III code that is adapted to a specific CPU architecture and is called a port. μC/OS-III has its roots in μC/OS-II and benefits from being able to use most of the 45 or so ports available for μC/OS-II. μC/OS-II ports, however, will require small changes to work with μC/OS-III. These changes are  described in Appendix C, “Migrating from μC/OS-II to μC/OS-III” on page 697.

F2-1(6) At Micriμm, we encapsulate CPU functionality. These files define functions to disable and enable interrupts, CPU_??? data types to be independent of the CPU and compiler used, and many more functions.

F2-1(7) μC/LIB is of a series of source files that provide common functions such as memory copy, string, and ASCII-related functions. Some are occasionally used to replace stdlib functions provided by the compiler. The files are provided to ensure that they are fully portable from application to application and especially, from compiler to compiler. μC/OS-III does not use these files, but μC/CPU does.

F2-1(8) Configuration files are used to define μC/OS-III features (os_cfg.h) to include in the application, specify the size of certain variables and data structures expected by μC/OS-III (os_cfg_app.h), such as idle task stack size, tick rate, size of the message pool, configure the μC/CPU features available to the application programmer (cpu_cfg.h) and also configure μC/LIB options (lib_cfg.h).

 

추천

출처www.cnblogs.com/qiyuexin/p/12150418.html