Skip to content

Commit 6ddb5c6

Browse files
stracciofpistm
authored andcommitted
Changes for FreeRTOS library.
1 parent 390deaf commit 6ddb5c6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cores/arduino/Arduino.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232
#include "wiring.h"
3333

3434
/* sketch */
35-
extern void setup( void ) ;
36-
extern void loop( void ) ;
3735

3836
#ifdef __cplusplus
3937
extern "C"{
4038
#endif // __cplusplus
39+
extern void setup( void ) ;
40+
extern void loop( void ) ;
41+
4142
void yield(void);
4243
#ifdef __cplusplus
4344
} // extern "C"

cores/arduino/stm32/clock.c

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ uint32_t GetCurrentMilli(void)
125125
return HAL_GetTick();
126126
}
127127

128+
void noOsSystickHandler(){
129+
130+
}
131+
132+
void osSystickHandler() __attribute__((weak, alias("noOsSystickHandler")));
128133
/**
129134
* @brief Function called when t he tick interruption falls
130135
* @param None
@@ -134,6 +139,7 @@ void SysTick_Handler(void)
134139
{
135140
HAL_IncTick();
136141
HAL_SYSTICK_IRQHandler();
142+
osSystickHandler();
137143
}
138144

139145
/**

0 commit comments

Comments
 (0)