用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 */
}
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |