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

📄 main.c

📁 上海勤研的KY44B0X有中断的BIOS源码
💻 C
字号:
#include"uhal.h"
#include"myuart.h"
#include"Timer.h"
#include"Isr.h"
#include"44b.h"


#pragma import(__use_no_semihosting_swi)  // ensure no functions that use semihosting 

int main(void)
{	int val=0;
    ARMTargetInit();	//开发版初始化
    Uart_Printf("\r\n we show the timer");
    Delay(1000);

 //   Zlg7289_Reset();
    Init_Timer3(100,4,40000,20000);
    INTS_OFF();//Disable interrupt in PSR
    SetISR_Interrupt(INT_TIMER3_OFFSET, Timer3_ISR,0);
    Open_INT_GLOBAL();
    Open_INT(BIT_TIMER3);
    INTS_ON();//Enable interrupt in PSR
    Start_Timer3();
    Uart_Printf("\n");
    while(1)
      {Uart_Printf("\r\n%d  ",rTCNTO3); Delay(1000);}
}

⌨️ 快捷键说明

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