⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 用hitool开发的8段数码管的显示程序 c语言的程序 嵌入一点汇编
💻 C
字号:
/****************************************************************************
** 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -