• 大小: 322KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-23
  • 语言: 其他
  • 标签: ucosII  M32  proteus  

资源简介

包含uCOSII在M32上移植的完整代码,编译环境为iCCAVR,直接可以在proteus下运行

资源截图

代码片段和文件信息

/*
*********************************************************************************************************
*                                                uC/OS-II
*                                          The Real-Time Kernel
*                                             CORE FUNCTIONS
*
*                          (c) Copyright 1992-2003 Jean J. Labrosse Weston FL
*                                           All Rights Reserved
*
* File    : OS_CORE.C
* By      : Jean J. Labrosse
* Version : V2.76
*********************************************************************************************************
*/

#ifndef  OS_MASTER_FILE
#define  OS_GLOBALS
#include “ucos_ii.h“
#endif

/*
*********************************************************************************************************
*                              MAPPING TABLE TO MAP BIT POSITION TO BIT MASK
*
* Note: Index into table is desired bit position 0..7
*       Indexed value corresponds to bit mask
*********************************************************************************************************
*/

INT8U  const  OSMapTbl[8]   = {0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80};

/*
*********************************************************************************************************
*                                       PRIORITY RESOLUTION TABLE
*
* Note: Index into table is bit pattern to resolve highest priority
*       Indexed value corresponds to highest priority bit position (i.e. 0..7)
*********************************************************************************************************
*/

INT8U  const  OSUnMapTbl[256] = {
    0 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x00 to 0x0F                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x10 to 0x1F                             */
    5 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x20 to 0x2F                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x30 to 0x3F                             */
    6 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x40 to 0x4F                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x50 to 0x5F                             */
    5 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x60 to 0x6F                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x70 to 0x7F                             */
    7 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x80 to 0x8F                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0x90 to 0x9F                             */
    5 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0xA0 to 0xAF                             */
    4 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0       /* 0xB0 to 0xBF                             */
    6 0 1 0 2 0 1 0 3 0 1 0 2 0 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7710  2011-03-06 21:57  CPU1\M32_C.lis

     文件       1703  2011-03-06 21:57  CPU1\M32_C.o

     文件       9135  2011-03-06 21:57  CPU1\MAIN.lis

     文件       2194  2011-03-06 21:57  CPU1\MAIN.o

     文件      23526  2011-03-06 21:57  CPU1\OS_CPU_A.lis

     文件       3446  2011-03-06 21:57  CPU1\OS_CPU_A.o

     文件      31671  2011-03-06 21:57  CPU1\OS_CPU_C.lis

     文件       5426  2011-03-06 21:57  CPU1\OS_CPU_C.o

     文件        631  2011-03-04 17:33  CPU1\transPlant\includes.h

     文件       1580  2011-03-06 16:43  CPU1\transPlant\M32_C.C

     文件       2575  2011-03-06 21:27  CPU1\transPlant\MAIN.C

     文件       8752  2011-03-06 20:40  CPU1\transPlant\OS_CFG.H

     文件       4198  2011-03-05 22:32  CPU1\transPlant\OS_CPU.H

     文件       9105  2011-03-06 21:27  CPU1\transPlant\OS_CPU_A.S

     文件      10448  2011-03-05 16:39  CPU1\transPlant\OS_CPU_C.C

     文件       9333  2011-03-06 21:56  CPU1\transPlant\transPlant.rar

     文件      68349  2011-03-04 00:38  CPU1\ucos2Src\os_core.c

     文件      11619  2004-01-02 13:11  CPU1\ucos2Src\os_dbg.c

     文件      53992  2004-10-22 13:34  CPU1\ucos2Src\os_flag.c

     文件      25345  2004-11-08 17:58  CPU1\ucos2Src\os_mbox.c

     文件      18694  2004-10-22 13:41  CPU1\ucos2Src\os_mem.c

     文件      29976  2004-11-08 17:58  CPU1\ucos2Src\os_mutex.c

     文件      37384  2004-11-09 10:21  CPU1\ucos2Src\os_q.c

     文件      23616  2004-11-08 17:58  CPU1\ucos2Src\os_sem.c

     文件      49672  2004-11-08 17:58  CPU1\ucos2Src\os_task.c

     文件      11029  2004-10-22 13:41  CPU1\ucos2Src\os_time.c

     文件      64525  2011-03-06 21:56  CPU1\ucos2Src\ucos2Src.rar

     文件       1006  2011-03-04 00:03  CPU1\ucos2Src\ucos_ii.c

     文件      53193  2011-03-06 12:58  CPU1\ucos2Src\ucos_ii.h

     文件     411499  2011-03-06 21:57  CPU1\ucos_ii.lis

............此处省略19个文件信息

评论

共有 条评论