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
}

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

Post your comment

Thanks for your comments

  • Comment


Subscribe to x893 blog Subscribe to x893 blog