⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 includes.h

📁 uCOSII在motorala单片机上的移植
💻 H
字号:
/*
*********************************************************************************************************
*                                                uC/OS-II
*                                          The Real-Time Kernel
*
*                          (c) Copyright 1992-1999, Jean J. Labrosse, Weston, FL
*                                           All Rights Reserved
*
*                                           Master Include File
*
* File : INCLUDES.H
* By   : Jean J. Labrosse
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                           REVISION HISTORY
*
* $Log:   J:/software/ucos-ii/m683xx/sds/source/vc/includes.h_v  $
*      
*         Rev 1.3   01 May 1999 11:51:40   JJL
*         ***************************** M683xx REL V1.05 ******************************
*         - Added check of OSIntNesting in OSIntExit68K() (see OS_CPU_A.S).
*      
*         Rev 1.2   29 Jun 1999 22:04:02   JJL
*         ***************************** M683xx REL V1.04 ******************************
*         - Added function OSIntExit68K() (see OS_CPU_A.S) which must now be JUMPed to
*           at the end of ALL ISRs.  Your ISR code MUST now look as follows:
*           
*           _YourISR:
*               ADDQ.B    #1,_OSIntNesting       ; OSIntNesting++
*               MOVEM.L   A0-A6/D0-D7,-(A7)      ; Save ALL registers 
*               ;   CLEAR the INTERRUPT source!
*               JSR       _YourISRHandler
*               JMP       _OSIntExit68K          ; Exit through uC/OS-II at end of ISR
*      
*           As you can see, you MUST increment OSIntNesting at the beginning of the ISR
*           and NOT call OSIntExit().  OSIntExit68K() knows to return to task level code 
*           because it examines the stack frame for the contents of the Status register 
*           (SR) that is pushed onto the stack when the CPU recognizes an interrupt.
*      
*         Rev 1.1   09 May 1999 11:06:56   JJL
*         ***************************** M683xx REL V1.03 ******************************
*         - The stack  adjustment constant in  OSIntCtxSw()  was set incorrectly.  The   
*           correct value  needed to be  10  instead of  18  because the  SDS compiler 
*           doesn't allocate local variables for OSIntExit().
*          
*         - The function  OSSetVect()  is OS_CPU_C.C didn't properly cast 'addr'.  The
*           correct statement is:
*              *pvect = (INT32U)addr;
*           instead of:
*              *pvect = (INT32U *)addr;
*      
*         Rev 1.0   07 Feb 1999 21:25:32   JJL
*         ***************************** M683xx REL V1.02 ******************************
*         - Initial release of the SDS port for uC/OS-II.  The revision number matches
*           that of other M683xx or M680x0 ports.
*********************************************************************************************************
*/

/*$PAGE*/
/*
*********************************************************************************************************
*                                         PROCESSOR SPECIFICS
*********************************************************************************************************
*/

#define  CPU_CLK_FREQ        16000000L /* Processor clock frequency (Hz)                               */

/*
*********************************************************************************************************
*                                           FILES TO INCLUDE
*********************************************************************************************************
*/

#include <ctype.h>
#include <float.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>

#include "OS_CPU.H"
#include "OS_CFG.H"

#include "uCOS_II.H"

#include "Mc68376.h"
#include "Display.h"
#include "MsgManager.h"
#include "UserInterface.h"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -