AnsweredAssumed Answered

A qustion about osThreadId?

Question asked by H.Rick on Mar 28, 2017
Latest reply on Mar 28, 2017 by H.Rick

Everyone,

 

I have a puzzle in my mind, how can I change the Id into a specific one for a different task ?

on freetos.c :

osThreadId defaultTaskHandle;
osThreadId secondTaskHandle;

 

on cmisis_os.h :

/// Thread ID identifies the thread (pointer to a thread control block).
/// \note CAN BE CHANGED: \b os_thread_cb is implementation specific in every CMSIS-RTOS.
typedef TaskHandle_t osThreadId;

 

 

How can I make, base on cmisis_os.h, ? or any suggestions ?

osThreadId1 defaultTaskHandle
osThreadId2 secondTaskHandle;

 

  Thanks

Outcomes