Completed

embedded systems real time oprating system

Modify previous blinky LEDs code to have same result, i.e., blinking Red, Green, and Blue ones, respectively but this time instead of implementing three tasks:

static void prvSetupHardware(void)

{

SystemCoreClockUpdate();

Board_Init();

/* Initial state for each LED is off */

Board_LED_Set(Red, false);

Board_LED_Set(Green, false);

Board_LED_Set(Blue, false);

}

static void vLEDTaskRed(void *pvParameters)

{

colour_t *colourCS;

colourCS = (colour_t *) pvParameters;

palette_t col = colourCS[Red].colour;

portTickType numticks = colourCS[Red].delayTicks;

portTickType xLastWakeTime;

xLastWakeTime = xTaskGetTickCount();

while (1)

{

Board_LED_Set(col, true);

vTaskDelayUntil(&xLastWakeTime, numticks);

Board_LED_Set(col, false);

vTaskDelayUntil(&xLastWakeTime, (numticks << 1));

}

}

static void vLEDTaskGreen(void *pvParameters)

{

colour_t *colourCS;

colourCS = (colour_t *) pvParameters;

palette_t col = colourCS[Green].colour;

portTickType numticks = colourCS[Green].delayTicks;

portTickType xLastWakeTime;

xLastWakeTime = xTaskGetTickCount();

while (1)

{

vTaskDelayUntil(&xLastWakeTime, numticks);

Board_LED_Set(col, true);

vTaskDelayUntil(&xLastWakeTime, numticks);

Board_LED_Set(col, false);

vTaskDelayUntil(&xLastWakeTime, numticks);

}

}

Have only one task implementation using Mutex concept!

Skills: Embedded Systems, Embedded Software

See more: can real time quotes excel tradestation, wealth lab real time data, real time currency rates api, tradestation real time free, word real time support, real time text manipulation javascript, real time flash counter, excel real time stock 2008, embedded real time freelance israel, embedded real time freelance, tech real time embedded haptic canada, embedded real time, embedded webserver real time data, real time javascript graph embedded, real time embedded systems, embedded systems part time jobs, real-time embedded, Real time embedded, embedded real time system, Full Stack Developer / Architect with focus on real-time analytics and trading systems

About the Employer:
( 0 reviews ) Brampton, Canada

Project ID: #22257043

Awarded to:

pavanshah2001

Hi, I'm an embedded systems design engineer from India. I have experince with RTOS. I have also worked on mutex and can finish your task in one day. Let us discuss in details over the chat?

$55 CAD in 1 day
(4 Reviews)
4.2