timer0isr.c
来自「FAT16 Filesystem on Philips LPC2000 seri」· C语言 代码 · 共 23 行
C
23 行
#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 + =
减小字号Ctrl + -
显示快捷键?