File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11name =FreeRTOS
2- version =10.3.0-4
2+ version =10.3.0-5
33author =Richard Barry <info@freertos.org>
44maintainer =Phillip Stevens <phillip.stevens@gmail.com>
55sentence =Real Time Operating System implemented for AVR (Uno, Leonardo, Mega).
Original file line number Diff line number Diff line change @@ -46,16 +46,16 @@ extern void loop(void);
4646void initVariant (void ) __attribute__ ((OS_main));
4747void initVariant (void )
4848{
49- // as the Task stacks are usually on heap before memory within the task, the normal
50- // __malloc_heap_end = 0 doesn't work. Allow for a minimal initial stack only .
51- __malloc_heap_end = (char *)(RAMEND - configMINIMAL_STACK_SIZE );
49+ // As the Task stacks are on heap before Task allocated heap variables,
50+ // the library default __malloc_heap_end = 0 doesn't work.
51+ __malloc_heap_end = (char *)(RAMEND - __malloc_margin );
5252
5353#if defined(USBCON)
5454 USBDevice.attach ();
5555#endif
5656
57- setup (); // the normal Arduino setup() function is run here.
58- vTaskStartScheduler (); // initialise and run the freeRTOS scheduler. Execution should never return here.
57+ setup (); // the normal Arduino setup() function is run here.
58+ vTaskStartScheduler (); // initialise and run the freeRTOS scheduler. Execution should never return here.
5959}
6060
6161
@@ -73,7 +73,7 @@ void vApplicationIdleHook( void ) __attribute__((weak));
7373
7474void vApplicationIdleHook ( void )
7575{
76- loop (); // the normal Arduino loop() function is run here.
76+ loop (); // the normal Arduino loop() function is run here.
7777 if (serialEventRun) serialEventRun ();
7878}
7979
You can’t perform that action at this time.
0 commit comments