Revision 557c9c87
middleware/apps_urtosal.c | ||
---|---|---|
130 | 130 |
const thread_descriptor_t descriptor = { |
131 | 131 |
/* name */ "", |
132 | 132 |
/* pointer to working area base */ (stkalign_t*)memory, |
133 |
/* end of the working area */ &((stkalign_t*)memory)[size / sizeof(stkalign_t)],
|
|
133 |
/* end of the working area */ &((stkalign_t*)memory)[/*size*/ 512 / sizeof(stkalign_t)],
|
|
134 | 134 |
/* thread priority */ prio, |
135 | 135 |
/* thread function pointer */ func, |
136 | 136 |
/* thread argument */ arg, |
... | ... | |
140 | 140 |
urtPrintf("Test before chThdCreateSuspended in threadInit\n"); |
141 | 141 |
urtThreadMSleep(10); |
142 | 142 |
|
143 |
urtPrintf("memory: 0x%08X\n", memory); |
|
144 |
urtPrintf("size: %u\n", size); |
|
145 |
urtPrintf("prio: %u\n", prio); |
|
146 |
urtPrintf("func: 0x%08X\n", func); |
|
147 |
urtPrintf("arg: 0x%08X\n", arg); |
|
148 |
urtPrintf("parent: 0x%08X\n", chThdGetSelfX()); |
|
149 |
urtThreadMSleep(10); |
|
150 |
|
|
143 | 151 |
urt_osThread_t* temp= chThdCreateSuspended(&descriptor); |
144 | 152 |
|
145 | 153 |
urtPrintf("Test after chThdCreateSuspended in threadInit\n"); |
Also available in: Unified diff