📄 timer0isr.c
字号:
#include <types.h>#include <LPC21xx.h>#include <armVIC.h>#include <system.h>#include <sysdefs.h>extern long systemTickCounter;static int tickPrescale = 10;void timer0ISR(void){// maintain system heartbeat timer. // ack the timer's interrupt source. T0IR = 1; // form the 10ms timer. if (!(--tickPrescale)) { tickPrescale = 10; systemTickCounter++; } VICVectAddr = 0x00000000; // clear this interrupt from the VIC}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -