源码/核心板/Src/OnChipDevices/Rcc_Nvic_Systick.c
@@ -53,13 +53,20 @@ NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_InitStructure.NVIC_IRQChannel = RTCAlarm_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; NVIC_InitStructure.NVIC_IRQChannelCmd =ENABLE; NVIC_Init(&NVIC_InitStructure); } int Systick_Init(void) { int time_retry = 500; if (SysTick_Config(64000)) if (SysTick_Config(72000)) { /* Capture error */ while (time_retry--);