资源简介
在arm9上移植ucos源码及教程大全,资料内容很丰富,自己收集的
代码片段和文件信息
//===================================================================
// File Name : 2440lib.c
// Function : S3C2440 PLLUart LED Port Init
// Date : March 20 2002
// Version : 0.0
// History
// 0.0 : Programming start (February 202002) -> SOP
//===================================================================
#include “option.h“
#include “2440addr.h“
#include “2440lib.h“
#include “2440slib.h“
#include
#include
#include
#include
#include
extern char Image$$RW$$Limit[];
void *mallocPt=Image$$RW$$Limit;
//***************************[ SYSTEM ]***************************************************
static int delayLoopCount;
void Delay(int time)
{
// time=0: adjust the Delay function by WatchDog timer.
// time>0: the number of loop time
// resolution of time is 100us.
int i adjust=0;
if(time==0)
{
time = 200;
adjust = 1;
delayLoopCount = 800;
//PCLK/1MWatch-dog disable1/64interrupt disablereset disable
rWTCON = ((PCLK/1000000-1)<<8)|(2<<3);
rWTDAT = 0xffff; //for first update
rWTCNT = 0xffff; //resolution=64us @any PCLK
rWTCON = ((PCLK/1000000-1)<<8)|(2<<3)|(1<<5); //Watch-dog timer start
}
for(;time>0;time--)
for(i=0;i
if(adjust==1)
{
rWTCON = ((PCLK/1000000-1)<<8)|(2<<3); //Watch-dog timer stop
i = 0xffff - rWTCNT; //1count->64us 200*800 cycle runtime = 64*i us
//Uart_Printf(“\nrWTCNT=%x “ rWTCNT);
//Uart_Printf(“\ni (0xffff -rWTCNT)=%d“ i);
delayLoopCount = 16000000/(i*64); //200*800:64*i=1*x:100 -> x=160000*100/(64*i)
//Uart_Printf(“\ndelayLoopCount=%d“ delayLoopCount);
}
}
//***************************[ PORTS ]****************************************************
void Port_Init(void)
{
//CAUTION:Follow the configuration order for setting the ports.
// 1) setting value(GPnDAT)
// 2) setting control register (GPnCON)
// 3) configure pull-up resistor(GPnUP)
//32bit data bus configuration
//*** PORT A GROUP
//Ports : GPA22 GPA21 GPA20 GPA19 GPA18 GPA17 GPA16 GPA15 GPA14 GPA13 GPA12
//Signal : nFCE nRSTOUT nFRE nFWE ALE CLE nGCS5 nGCS4 nGCS3 nGCS2 nGCS1
//Binary : 1 1 1 1 1 1 1 1 1 1 1
//Ports : GPA11 GPA10 GPA9 GPA8 GPA7 GPA6 GPA5 GPA4 GPA3 GPA2 GPA1 GPA0
//Signal : ADDR26 ADDR25 ADDR24 ADDR23 ADDR22 ADDR21 ADDR20 ADDR19 ADDR18 ADDR17 ADDR16 ADDR0
//Binary : 1 1 1 1 1 1 1 1 1 1 1 1
rGPACON = 0x7fffff;
//**** PORT B GROUP
//Ports : GPB10 GPB9 GPB8 GPB7 GPB6 GPB5 GPB4
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 40140 2004-03-03 09:02 uCos2 for mini2440_Basic\S3C2440\includes\2440addr.h
文件 2233 2009-12-02 20:05 uCos2 for mini2440_Basic\S3C2440\includes\2440lib.h
文件 1791 2003-07-28 17:26 uCos2 for mini2440_Basic\S3C2440\includes\2440slib.h
文件 4080 2008-07-22 16:10 uCos2 for mini2440_Basic\S3C2440\includes\config.h
文件 311 2008-06-13 11:34 uCos2 for mini2440_Basic\S3C2440\includes\Def1.h
文件 1286 2003-06-17 08:35 uCos2 for mini2440_Basic\S3C2440\includes\mmu.h
文件 4995 2009-12-02 12:30 uCos2 for mini2440_Basic\S3C2440\includes\Option.h
文件 253 2009-12-02 12:31 uCos2 for mini2440_Basic\S3C2440\includes\Target.h
文件 111 2008-07-31 16:07 uCos2 for mini2440_Basic\S3C2440\includes\Timer.h
文件 3767 2008-07-28 16:13 uCos2 for mini2440_Basic\S3C2440\source\2440addr.inc
文件 19290 2009-07-17 17:09 uCos2 for mini2440_Basic\S3C2440\source\2440init.s
文件 24741 2009-12-03 12:58 uCos2 for mini2440_Basic\S3C2440\source\2440lib.c
文件 7400 2004-03-05 14:20 uCos2 for mini2440_Basic\S3C2440\source\2440slib.s
文件 1236 2009-12-03 12:54 uCos2 for mini2440_Basic\S3C2440\source\main.c
文件 2644 2008-05-28 10:19 uCos2 for mini2440_Basic\S3C2440\source\Memcfg.inc
文件 3817 2008-09-08 21:26 uCos2 for mini2440_Basic\S3C2440\source\mmu.c
文件 4931 2018-08-16 22:04 uCos2 for mini2440_Basic\S3C2440\source\nand.c
文件 4929 2009-12-02 20:06 uCos2 for mini2440_Basic\S3C2440\source\nand.c~
文件 4995 2009-12-02 12:30 uCos2 for mini2440_Basic\S3C2440\source\Option.h
文件 2540 2007-06-28 13:17 uCos2 for mini2440_Basic\S3C2440\source\Option.inc
文件 1784 2009-12-02 20:33 uCos2 for mini2440_Basic\S3C2440\source\Target.c
文件 1734 2008-09-08 22:16 uCos2 for mini2440_Basic\S3C2440\source\Timer.c
文件 222542 2009-12-03 12:59 uCos2 for mini2440_Basic\uCOS2 for mini2440_Basic.mcp
文件 1142 2008-09-09 16:44 uCos2 for mini2440_Basic\uCOS_II\API\app_cfg.h
文件 3887 2004-08-27 15:09 uCos2 for mini2440_Basic\uCOS_II\arm\IRQ.inc
文件 5124 2008-08-01 10:01 uCos2 for mini2440_Basic\uCOS_II\arm\OS_CPU.H
文件 16706 2008-09-08 21:12 uCos2 for mini2440_Basic\uCOS_II\arm\Os_cpu_a.s
文件 9914 2008-08-01 09:50 uCos2 for mini2440_Basic\uCOS_II\arm\Os_cpu_c.c
文件 5205 2008-07-22 16:39 uCos2 for mini2440_Basic\uCOS_II\SOURCE\API\os_api.c
文件 633 2008-07-22 20:34 uCos2 for mini2440_Basic\uCOS_II\SOURCE\API\os_api.h
............此处省略27个文件信息
相关资源
- ARM9(S3C2440PCB)
- 移植UCOS II到X86 PC上,移植成功
- STM32F030-uCOSIII
- ucos在mega128上的移植STEp bySTEp
- UC/OSII MINI2440移植
- ARM9mini2440GPS程序
- arm9 + linux modbus tcp 运行文件,可用于
- ucos中的消息队列代码详解
- ucos2串行通信.doc
- UCOS-II_API函数参考手册(带书签)
- ucos2在cortex-A8上的移植
- ucos在ARM7上的移植全过程
- UCos PLL 计算工具
- uCGUI+UCOS-II+LPC2138在proteus上的仿真-用
- ucos_ii移植过程详解(移植原理
- 扬创 YC2440-T35B启动u-boot文件
- uCOS-II 工作流程图.pdf
- ARM9_S3C2440最小系统.doc
- ucos嵌入式开发教程
- IAR环境下stm32上ucos的移植代码
- uCOS_51uCOS-II v2.52基于51单片机的移植
- 磁通门磁力仪采集系统研制
- STM32F4接LAN8720A网络连接源代码免费
- uCOSII移植到VS2013AppPorts
- STM32-UCOS
- STM32+FreeModbus+uC/OSII
- stm32+uCOSII+FreeModbus
- 基于stm32f407+ucos-iii+lwip1.4.1的tcp serve
- uCOS-II中文版电子书.rar
- uCOS-II移植到PC源码uCOS-II版本v2.91.zip
评论
共有 条评论