中断遇到问题,请大侠帮助
我最近用103ret6,自己做的板子,调试时系统中断不好用,SysTick和其他的IRQ都不能产生中断。但知不道原因。请求大侠帮帮忙。以SysTick为例,配置如下:
/* ################################## SysTick function ############################################ */
//========================位于core_cm3.h文件==================================
/* SysTick constants */
#define SYSTICK_ENABLE 0 /* Config-Bit to start or stop the SysTick Timer */
#define SYSTICK_TICKINT 1 /* Config-Bit to enable or disable the SysTick interrupt */
#define SYSTICK_CLKSOURCE 2 /* Clocksource has the offset 2 in SysTick Control and Status Register */
#define SYSTICK_MAXCOUNT ((1LOAD = (ticks & SYSTICK_MAXCOUNT) - 1; /* set reload register */
NVIC_SetPriority (SysTick_IRQn, (1CTRL = (1
页:
[1]