git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6256 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
fa8b45cc5b
commit
6db8c459a5
|
@ -55,10 +55,10 @@ THD_FUNCTION(Thread2, arg) {
|
||||||
* Threads static table, one entry per thread. The number of entries must
|
* Threads static table, one entry per thread. The number of entries must
|
||||||
* match NIL_CFG_NUM_THREADS.
|
* match NIL_CFG_NUM_THREADS.
|
||||||
*/
|
*/
|
||||||
NIL_THREADS_TABLE_BEGIN()
|
THD_TABLE_BEGIN
|
||||||
NIL_THREADS_TABLE_ENTRY("thread1", Thread1, NULL, waThread1, sizeof(waThread1))
|
THD_TABLE_ENTRY("thread1", Thread1, NULL, waThread1, sizeof(waThread1))
|
||||||
NIL_THREADS_TABLE_ENTRY("thread2", Thread2, NULL, waThread2, sizeof(waThread2))
|
THD_TABLE_ENTRY("thread2", Thread2, NULL, waThread2, sizeof(waThread2))
|
||||||
NIL_THREADS_TABLE_END()
|
THD_TABLE_END
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application entry point.
|
* Application entry point.
|
||||||
|
|
|
@ -297,19 +297,19 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* @brief Start of user threads table.
|
* @brief Start of user threads table.
|
||||||
*/
|
*/
|
||||||
#define NIL_THREADS_TABLE_BEGIN() \
|
#define THD_TABLE_BEGIN \
|
||||||
const thread_config_t nil_thd_configs[NIL_CFG_NUM_THREADS + 1] = {
|
const thread_config_t nil_thd_configs[NIL_CFG_NUM_THREADS + 1] = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Entry of user threads table
|
* @brief Entry of user threads table
|
||||||
*/
|
*/
|
||||||
#define NIL_THREADS_TABLE_ENTRY(name, funcp, arg, wap, size) \
|
#define THD_TABLE_ENTRY(name, funcp, arg, wap, size) \
|
||||||
{name, funcp, arg, wap, size},
|
{name, funcp, arg, wap, size},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief End of user threads table.
|
* @brief End of user threads table.
|
||||||
*/
|
*/
|
||||||
#define NIL_THREADS_TABLE_END() \
|
#define THD_TABLE_END \
|
||||||
{"idle", 0, NULL, NULL, 0} \
|
{"idle", 0, NULL, NULL, 0} \
|
||||||
};
|
};
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
Loading…
Reference in New Issue