Skip to content
Prev Previous commit
Changes for FreeRTOS library.
  • Loading branch information
straccio committed Dec 15, 2017
commit 5efe0692c94b79324bc8c8d1ce68fb53b210941e
5 changes: 3 additions & 2 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
#include "wiring.h"

/* sketch */
extern void setup( void ) ;
extern void loop( void ) ;

#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
extern void setup( void ) ;
extern void loop( void ) ;

void yield(void);
#ifdef __cplusplus
} // extern "C"
Expand Down
6 changes: 6 additions & 0 deletions cores/arduino/stm32/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ uint32_t GetCurrentMilli(void)
return HAL_GetTick();
}

void noOsSystickHandler(){

}

void osSystickHandler() __attribute__((weak, alias("noOsSystickHandler")));
/**
* @brief Function called when t he tick interruption falls
* @param None
Expand All @@ -134,6 +139,7 @@ void SysTick_Handler(void)
{
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
osSystickHandler();
}

/**
Expand Down