X893

Maple (STM32) library for FreeRTOS

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: 

#include 

int 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

  1. Hello,

    did you also publish the latest HardwareCAN library for Maple? Thanks.

  2. This library published here akb77.com/.../maplehardwareca

  3. 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.

  4. 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,

  5. 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 ?

Post your comment

Thanks for your comments

  • Comment

Github
Bitbucket
SF.net

Skype
Telegram

Subscribe to x893 blog Subscribe