本帖最后由 cat_li 于 2011-9-26 10:01 编辑
- /*---------------------------------------------------------------------------------------------------------*/
- /* */
- /* Copyright(c) 2009 Nuvoton Technology Corp. All rights reserved. */
- /* */
- /*---------------------------------------------------------------------------------------------------------*/
- #include <stdio.h>
- #include "NUC1xx.h"
- #include "Driver\DrvGPIO.h"
- #include "Driver\DrvSYS.h"
- volatile uint32_t msTick;
- void SysTick_Handler(void)
- {
- msTick++;
- }
- int main(void)
- {
- SysTick_Config(SystemCoreClock / 100);
- while(1);
- }
代码仅仅只是验证了一下SysTick中断模式的用法,附件是我整理的Systick的相关资料,希望对各位有用
|