MapleFreeRTOS library for Maple platform to implement realtime FreeRTOS.
Also need change systick.c and systick.h in hardware\leaflabs\cores\maple folder
Blink example:
#includeint ledPin = 13; // LED connected to digital pin 13 static void vLEDFlashTask( void *pvParameters ) { for(;;) { vTaskDelay( 2000 ); digitalWrite( ledPin, HIGH ); vTaskDelay( 200 ); digitalWrite( ledPin, LOW ); } } // The setup() method runs once, when the sketch starts void setup() { // initialize the digital pin as an output: pinMode(ledPin, OUTPUT); xTaskCreate( vLEDFlashTask, "LEDx", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL ); vTaskStartScheduler(); } void loop() { // Insert background code here }
5 comment(s) so far
Hello,
did you also publish the latest HardwareCAN library for Maple? Thanks.
This library published here akb77.com/.../maplehardwareca
Thanks. Can I put in any comments on that topic? I have some questions regarding this library. I also post them on the leaflabs forum.
i tried the FreeRTOS libary in maple ide 0.0.12
it can't let the second created task run ,it can just run one task,
Hi X893,
thanks for your work.
With maple ide v0.0.12 get error
Settings\Admin\Desktop\maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\/systick.h:52: error: '__read' was not declared in this scope
Can not find where __read function is coming from. Have you seen this error X893 ?