/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
* CORE FUNCTIONS
*
* (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
* All Rights Reserved
*
* File : OS_CORE.C
* By : Jean J. Labrosse
*********************************************************************************************************
*/
#ifndef OS_MASTER_FILE
#define OS_GLOBALS
#include "includes.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[] = {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[] = {
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, 1, 0, /* 0xC0 to 0xCF */
4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xD0 to 0xDF */
5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xE0 to 0xEF */
4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0 /* 0xF0 to 0xFF */
};
/*$PAGE*/
/*
*********************************************************************************************************
* DEBUG DATA
*********************************************************************************************************
*/
INT16U const OSDebugEn = OS_DEBUG_EN; /* Debug constants are defined below */
#if OS_DEBUG_EN > 0
INT16U const OSEventMax = OS_MAX_EVENTS; /* Number of event control blocks */
INT16U const OSEventNameSize = OS_EVENT_NAME_SIZE; /* Size (in bytes) of event names */
#if (OS_EVENT_EN > 0) && (OS_MAX_EVENTS > 0)
INT16U const OSEventSize = sizeof(OS_EVENT); /* Size in Bytes of OS_EVENT */
INT16U const OSEventTblSize = sizeof(OSEventTbl); /* Size of OSEventTbl[] in bytes */
#else
INT16U const OSEventSize = 0;
INT16U const OSEventTblSize = 0;
#endif
INT16U const OSFlagEn = OS_FLAG_EN;
#if (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
INT16U const OSFlagGrpSize = sizeof(OS_FLAG_GRP); /* Size in Bytes of OS_FLAG_GRP */
INT16U const OSFlagNodeSize = sizeof(OS_FLAG_NODE); /* Size in Bytes of OS_FLAG_NODE */
INT16U const OSFlagWidth = sizeof(OS_FLAGS); /* Width (in bytes) of OS_FLAGS */
#else
INT16U const OSFlagGrpSize = 0;
INT16U const OSFlagNodeSize = 0;
INT16U const OSFlagWidth = 0;
#endif
INT16U const OSFlagMax = OS_MAX_FLAGS;
INT16U const OSFlagNameSize = OS_FLAG_NAME_SIZE; /* Size (in bytes) of flag names */
INT16U const OSLowestPrio = OS_LOWEST_PRIO;
INT16U const OSMboxEn = OS_MBOX_EN;
INT16U const OSMemEn = OS_MEM_EN;
INT16U const OSMemMax = OS_MAX_MEM_PART; /* Number of memory partitions */
INT16U const OSMemNameSize = OS_MEM_NAME_SIZE; /* Size (in bytes) of partition names */
#if (OS_MEM_EN > 0) && (OS_MAX_MEM_PART > 0)
INT16U const OSMemSize = sizeof(OS_MEM); /* Mem. Partition header sine (bytes) */
INT16U const OSMemTblSize = sizeof(OSMemTbl);
#else
INT16U const OSMemSize = 0;
INT16U const OSMemTblSize = 0;
#endif
INT16U const OSMutexEn = OS_MUTEX_EN;
INT16U const OSPtrSize = sizeof(void *); /* Size in Bytes of a pointer */
INT16U const OSQEn = OS_Q_EN;
INT16U const OSQMax = OS_MAX_QS; /* Number of queues */
#if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
INT16U const OSQSize = sizeof(OS_Q); /* Size in bytes of OS_Q structure */
#else
INT16U const OSQSize = 0;
#endif
INT16U const OSRdyTblSize = OS_RDY_TBL_SIZE; /* Number of bytes in the ready table */
INT16U const OSSemEn = OS_SEM_EN;
INT16U const OSStkWidth = sizeof(OS_STK); /* Size in Bytes of a stack entry */
INT16U const OSTaskCreateEn = OS_TASK_CREATE_EN;
INT16U const OSTaskCreateExtEn = OS_TASK_CREATE_EXT_EN;
INT16U const OSTaskDelEn = OS_TASK_DEL_EN;
INT16U const OSTaskIdleStkSize = OS_TASK_IDLE_STK_SIZE;
INT16U const OSTaskProfileEn = OS_TASK_PROFILE_EN;
INT16U const OSTaskMax = OS_MAX_TASKS + OS_N_SYS_TASKS; /* Total max. number of tasks */
INT16U const OSTaskNameSize = OS_TASK_NAME_SIZE; /* Size (in bytes) of task names */
INT16U const OSTaskStatEn = OS_TASK_STAT_EN;
INT16U const OSTaskStatStkSize = OS_TASK_STAT_STK_SIZE;
INT16U const OSTaskStatStkChkEn = OS_TASK_STAT_STK_CHK_EN;
INT16U const OSTaskSwHookEn = OS_TASK_SW_HOOK_EN;
INT16U const OSTCBPrioTblMax = OS_LOWEST_PRIO + 1; /* Number of entries in OSTCBPrioTbl[] */
INT16U const OSTCBSize = sizeof(OS_TCB); /* Size in Bytes of OS_TCB */
INT16U const OSTicksPerSec = OS_TICKS_PER_SEC;
INT16U const OSTimeTickHookEn = OS_TIME_TICK_HOOK_EN;
INT16U const OSVersionNbr = OS_VERSION;
#endif
/*$PAGE*/
/*
*********************************************************************************************************
* DEBUG DATA
* TOTAL DATA SPACE (i.e. RAM) USED BY uC/OS-II
********************************************************************************************************
没有合适的资源?快使用搜索试试~ 我知道了~
基于S3C44B0的RTC,adc ds18b20
共106个文件
h:43个
o:25个
c:23个
4星 · 超过85%的资源 需积分: 9 3 下载量 19 浏览量
2011-08-09
10:48:52
上传
评论
收藏 844KB RAR 举报
温馨提示
在UCOSii下基于S3C44B0的RTC,adc ds18b20 代码在液晶上显示。
资源推荐
资源详情
资源评论
收起资源包目录
基于S3C44B0的RTC,adc ds18b20 (106个子文件)
ucos_adc.axf 178KB
adc_ucos.bin 43KB
os_core.c 66KB
os_flag.c 51KB
os_task.c 44KB
os_q.c 36KB
os_mutex.c 28KB
os_mbox.c 24KB
os_sem.c 20KB
os_mem.c 17KB
LCDLIB.C 12KB
Slib.c 12KB
os_time.c 10KB
44blib.c 9KB
OS_cpu_c.c 8KB
GLIB.C 4KB
44btest.c 4KB
console.c 4KB
44BLCD.C 4KB
rtc.c 4KB
DS18B20.C 3KB
SysUtils.c 3KB
target.C 3KB
MAIN.c 2KB
Adc.c 925B
WindowsXP_Wav.h 1.41MB
PLMM.H 192KB
ucos_ii.h 50KB
44b0x.h 15KB
44b.h 15KB
myplmm.h 12KB
usb.H 9KB
os_cfg.h 8KB
OS_cpu.h 3KB
Includes.h 2KB
LCDLIB.H 2KB
LCDLIB.H 2KB
Option.h 1KB
44blib.h 1KB
uTypes.h 908B
utils.h 769B
target.h 509B
GLIB.H 504B
SysUtils.h 493B
44BLCD.H 475B
UDA1341.H 435B
Uart.h 400B
rtc.h 396B
ds18b20.h 381B
rtc.h 287B
console.h 277B
DEF.H 242B
Slib.h 238B
Slib.h 238B
Power.h 232B
Lcd.h 219B
IIC.H 179B
Dma.h 145B
Etc.h 129B
CACHE.H 115B
extdma.h 104B
AD.H 103B
TIMER.H 98B
stop.h 94B
led.H 88B
PWM.H 88B
TP.H 81B
kb.H 70B
MEMCFG.inc 2KB
Option.inc 1KB
ucos_adc.mcp 215KB
44BLCD.o 67KB
os_core.o 44KB
MAIN.o 42KB
target.o 37KB
os_flag.o 35KB
os_task.o 34KB
44blib.o 33KB
Slib.o 33KB
os_q.o 30KB
GLIB.o 28KB
LCDLIB.o 28KB
os_mutex.o 28KB
os_mbox.o 27KB
console.o 26KB
os_mem.o 26KB
os_sem.o 25KB
DS18B20.o 25KB
os_time.o 24KB
OS_cpu_c.o 22KB
SysUtils.o 21KB
rtc.o 21KB
Adc.o 20KB
44binit.o 7KB
Os_cpu_a.o 3KB
44BLIB_A.o 1KB
44binit.s 14KB
Os_cpu_a.s 11KB
SysInit.s 9KB
MEMCFG.S 3KB
共 106 条
- 1
- 2
资源评论
- vans882014-05-18可以参考,是代码!
alexxiaomingxu
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 教学内容及补充-cha7.rar
- 设计1.ms14
- vscode-1.64.1.tar源码文件
- vscode-1.64.0.tar源码文件
- vscode-1.52.0.tar源码文件
- Music-Player +PlayerActivity+ rockplayer+ SeeJoPlayer 播放器JAVA源码
- vscode-1.46.0.tar源码文件
- 最近很火植物大战僵尸杂交版2.08苹果+安卓+PC+防闪退工具V2+修改工具+高清工具+通关存档整合包更新
- 超级好用的截图工具PixPin,可录制Gif图
- Screenshot_2024-05-21-17-06-42-64_2332cb9b27b851b548ba47a91682926c.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功