main.c

来自「用hitool开发的8段数码管的显示程序 c语言的程序 嵌入一点汇编」· C语言 代码 · 共 64 行

C
64
字号
/****************************************************************************
** File Name: main.c
** Description:
** Generated Automatically for: ARM7TDMI-S3c44b0x Evaluation Board.
** Time: Friday, August 13, 2004 11:42:11
** Copyright 2001 Hitool System Inc.
****************************************************************************/
#include <string.h>
#include "..\inc\option.h"
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\def.h"
void IsrInit(void);
int __main() 

{ rSYSCFG=SYSCFG_8KB;

//digit_led_test();
IsrInit();
Port_Init();
Uart_Init(0,115200);
Uart_Select(0);
while(1)
{
init_keyboard();
}
}
 void IsrInit(void) 
{
    U32 i;
    
  
      for(i=_RAM_STARTADDRESS;i<(_RAM_STARTADDRESS+0x20);i+=4)
    {
  	*((volatile unsigned *)i)=0xEA000000+0x1FFE;
	 rINTCON=0x5;	  // Non-vectored,IRQ enable,FIQ disable    
    rINTMOD=0x0;	  // All=IRQ mode
    rINTMSK|=BIT_GLOBAL|BIT_EINT3;	  // All interrupt is masked.
	
	
	
    }
                              
}



















⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?