Kaynağa Gözat

Fix Keil warnings.

Vladimir N. Shilov 2 yıl önce
ebeveyn
işleme
a463e4bb00
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 4 0
      inc/main.h
  2. 2 2
      src/rtos.c

+ 4 - 0
inc/main.h

@@ -85,6 +85,10 @@ typedef union {
 /* Exported macro ------------------------------------------------------------*/
 /* Exported functions prototypes ---------------------------------------------*/
 void Error_Handler(void);
+void NMI_Handler(void);
+void HardFault_Handler(void);
+void SVC_Handler(void);
+void PendSV_Handler(void);
 
 /* Private defines -----------------------------------------------------------*/
 

+ 2 - 2
src/rtos.c

@@ -20,7 +20,7 @@ static volatile uint32_t TDelay;            /**< @brief delay counter */
 /**
  * @brief Initialization of RTOS and t_delay, tick time - 1 ms
  */
-inline void RTOS_Init(void) {
+void RTOS_Init(void) {
   // setting up the main timer
   SysTick->LOAD  = (uint32_t)(SystemCoreClock/1000 - 1UL);          /* set reload register */
   NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
@@ -87,7 +87,7 @@ void RTOS_SetTask (void (*taskFunc)(void), uint32_t taskDelay, uint32_t taskPeri
  * 
  * @param taskFunc  function pointer
  */
-inline void RTOS_DeleteTask (void (*taskFunc)(void)) {
+void RTOS_DeleteTask (void (*taskFunc)(void)) {
    int i;
 
    // go through the list of tasks