LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
18xx/43xx FrreRTOS blinky example

Functions

static void prvSetupHardware (void)
 
static portTASK_FUNCTION (vLEDTask1, pvParameters)
 
static portTASK_FUNCTION (vLEDTask2, pvParameters)
 
static portTASK_FUNCTION (vUARTTask, pvParameters)
 
int main (void)
 main routine for FreeRTOS blinky example
 

Detailed Description

Welcome to the FreeRTOS basic blinky example. This example starts up FreeRTOS and creates 3 tasks. Tasks 1 and 2 blink different LEDs at different rates. Task 3 outputs a tick count to the debug channel (UART) every second.

To use the example, connect a serial cable to the board's RS232/UART port and start a terminal program (115.2K8N1) to monitor the port. The LEDs will also toggle based on the task execution.

Build procedure: LPCOpen 18xx/43xx build instructions

Submit bug reports for LPCOpen code here.

Function Documentation

int main ( void  )

main routine for FreeRTOS blinky example

Returns
Nothing, function should not exit

Definition at line 123 of file freertos_blinky.c.

static portTASK_FUNCTION ( vLEDTask1  ,
pvParameters   
)
static

Definition at line 77 of file freertos_blinky.c.

static portTASK_FUNCTION ( vLEDTask2  ,
pvParameters   
)
static

Definition at line 90 of file freertos_blinky.c.

static portTASK_FUNCTION ( vUARTTask  ,
pvParameters   
)
static

Definition at line 103 of file freertos_blinky.c.

static void prvSetupHardware ( void  )
static

Definition at line 67 of file freertos_blinky.c.