handle.c代码
#include "config.h"
#include "handle.h"
#include "led.h"
extern int flag;
void isr_init(void)
{
pISR_TIMER0 = (U32)timer0_isr ;
}
void __irq timer0_isr(void)
{
if (flag==4)
{
Led2_On();
}
flag++;
rSRCPND |=1<<10;
rINTPND |=1<<10;
}
#include "config.h"
#include "handle.h"
#include "led.h"
extern int flag;
void isr_init(void)
{
pISR_TIMER0 = (U32)timer0_isr ;
}
void __irq timer0_isr(void)
{
if (flag==4)
{
Led2_On();
}
flag++;
rSRCPND |=1<<10;
rINTPND |=1<<10;
}
