Vladimir Umek 8 лет назад
Родитель
Сommit
8eb4e2b74f
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S
  2. 1 1
      CMSIS/RTOS2/Source/os_systick.c

+ 1 - 0
CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S

@@ -45,6 +45,7 @@ irqRtxLib:
                 .byte    0
 
                 .section ".data"
+                .global  IRQ_PendSV
 IRQ_NestLevel:
                 .word    0                          // IRQ nesting level counter
 IRQ_PendSV:

+ 1 - 1
CMSIS/RTOS2/Source/os_systick.c

@@ -37,8 +37,8 @@ static uint8_t PendST;
 
 // Setup OS Tick.
 __WEAK int32_t  OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
-  (void)handler;
   uint32_t load;
+  (void)handler;
 
   if (freq == 0U) {
     return (-1);