用cw_12新建项目时自带下列函数是什么意思啊 ,麻烦解释一下
#pragma CODE_SEG __NEAR_SEG NON_BANKED /* Interrupt section for this module. Placement will be in NON_BANKED area. */ interrupt void RTI_ISR(void) { /* simple RTI interrupt service routine */ /* clear RTIF bit */ CRGFLG = 0x80; }
#pragma CODE_SEG DEFAULT static void RTIInit(void) { /* setup of the RTI interrupt frequency */ /* adjusted to get 1 millisecond (1.024 ms) with 16 MHz oscillator */ RTICTL = 0x1F; /* set RTI prescaler */ CRGINT = 0x80; /* enable RTI interrupts */ }
|