shoh: rename threads according to thread-name
This commit is contained in:
parent
e003820710
commit
df04fc9107
@ -34,13 +34,13 @@ int main(void)
|
||||
ThreadCommon::QueueManager::manager_event_master);
|
||||
|
||||
//Creating tasks
|
||||
manager->createTask(master_thread, "master",
|
||||
manager->createTask(thread_master, "master",
|
||||
configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL,
|
||||
static_cast<void*>(qmanager));
|
||||
manager->createTask(thread_manager, "manager",
|
||||
configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL,
|
||||
static_cast<void*>(qmanager));
|
||||
manager->createTask(rotary_thread, "rotary",
|
||||
manager->createTask(thread_rotary, "rotary",
|
||||
configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL,
|
||||
static_cast<void*>(qmanager));
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ void Master::taskFunction() {
|
||||
}
|
||||
|
||||
|
||||
void master_thread(void* pvParams) {
|
||||
void thread_master(void* pvParams) {
|
||||
Master m(static_cast<ThreadCommon::QueueManager*>(pvParams));
|
||||
m.taskFunction();
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ private:
|
||||
ThreadCommon::QueueManager* _qm;
|
||||
};
|
||||
|
||||
void master_thread(void* pvParams);
|
||||
void thread_master(void* pvParams);
|
||||
|
||||
|
||||
#endif /* THREADS_MASTER_MASTER_H_ */
|
||||
|
||||
@ -64,7 +64,7 @@ void Rotary::taskFunction()
|
||||
}
|
||||
}
|
||||
|
||||
void rotary_thread(void* pvParams)
|
||||
void thread_rotary(void* pvParams)
|
||||
{
|
||||
// Special case for ISR
|
||||
QueueHandle_t rotary_isr_q = xQueueCreate(15, sizeof(char));
|
||||
|
||||
@ -25,6 +25,6 @@ private:
|
||||
{ 1, 8, true, false, false, true, PIN_INT2_IRQn} };
|
||||
};
|
||||
|
||||
void rotary_thread(void* pvParams);
|
||||
void thread_rotary(void* pvParams);
|
||||
|
||||
#endif /* THREADS_ROTARY_ROTARY_H_ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user