forked from ROMEO/fsw-ws
thread safety in newlib, newer lwip, optimized ISR for UART, some more stuff
This commit is contained in:
@@ -143,6 +143,7 @@ XScuWdt xWatchDogInstance;
|
||||
other modules. */
|
||||
XScuGic xInterruptController;
|
||||
|
||||
extern SemaphoreHandle_t malloc_mutex;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
void mission(void *);
|
||||
@@ -154,6 +155,12 @@ int main(void) {
|
||||
|
||||
printf("Booting Software\n");
|
||||
|
||||
malloc_mutex = xSemaphoreCreateRecursiveMutex();
|
||||
if (malloc_mutex == NULL) {
|
||||
printf("Could not obtaiin malloc mutex, bye...\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
int taskParameters =0;
|
||||
|
||||
xTaskCreate(
|
||||
|
||||
Reference in New Issue
Block a user