init.s ; 注: IMPORT 之前需求有一个空格,不然编译不能通过
IMPORT Main
AREA |C$$code|,CODE,READONLY
global start
start
bl Main
END
main.c
#include
#define rGPMCON (*(volatile unsigned*)(0x7F008820))
#define rGPMDAT (*(volatile unsigned*)(0x7F008824))
#define rGPMPUD (*(volatile unsigned*)(0x7F008828))
void msDelay(int time)
{
volatile unsigned int i,j;
for(i=0;i<2000000;i++)
for(j=0;j