当前位置: 技术问答>linux和unix
uclinux新手急切求助
来源: 互联网 发布时间:2016-01-18
本文导语: 编写了一个控制LED闪亮的程序test.c,用如下指令编译: arm-elf-gcc -Wall -O2 -Wl,-elf2flt -g -o test test.c test.c程序如下: #include #include #define rPCONE (*(volatile unsigned *)0x1d20028) #define rPDATE (*(volatile unsigned *)0x1d2002c) #d...
编写了一个控制LED闪亮的程序test.c,用如下指令编译:
arm-elf-gcc -Wall -O2 -Wl,-elf2flt -g -o test test.c
test.c程序如下:
#include
#include
#define rPCONE (*(volatile unsigned *)0x1d20028)
#define rPDATE (*(volatile unsigned *)0x1d2002c)
#define rPUPE (*(volatile unsigned *)0x1d20030)
void wtDelay(int time)
{
int i;
for(;time>0;time--)
{
for(i=0;i
arm-elf-gcc -Wall -O2 -Wl,-elf2flt -g -o test test.c
test.c程序如下:
#include
#include
#define rPCONE (*(volatile unsigned *)0x1d20028)
#define rPDATE (*(volatile unsigned *)0x1d2002c)
#define rPUPE (*(volatile unsigned *)0x1d20030)
void wtDelay(int time)
{
int i;
for(;time>0;time--)
{
for(i=0;i