Tx_FreeRTOS_Wrapper Application Description

This application provides an example of Azure RTOS ThreadX stack usage, it shows how to develop an application using the FreeRTOS adaptation layer for ThreadX.

The main entry function tx_application_define() is called by ThreadX during kernel start, at this stage, the application creates 1 thread : ‘LED_Thread’ (Priority : 5).

The ‘LED_Thread’ toggles the ‘LED_GREEN’ every 500ms.

Expected success behavior

‘LED_GREEN’ toggles every 500ms.

Error behaviors

‘LED_GREEN’ is turrned off and the program enters an infinite loop.

Assumptions if any

None

Known limitations

None

Notes

To optimize the application footprint, the following ThreadX configuration options should be enabled in the tx_user.h file:

#define TX_DISABLE_PREEMPTION_THRESHOLD

#define TX_DISABLE_NOTIFY_CALLBACKS

#define TX_DISABLE_REDUNDANT_CLEARING

#define TX_DISABLE_STACK_FILLING

#define TX_NOT_INTERRUPTABLE

#define TX_TIMER_PROCESS_IN_ISR

#define TX_DISABLE_ERROR_CHECKING

ThreadX usage hints

Keywords

RTOS, ThreadX, Threading, RTOS compatibility layers

Hardware and Software environment

How to use it ?

In order to make the program work, you must do the following: