| 217 | |
| 218 | |
| 219 | rt_uint8_t *rt_hw_stack_init( |
| 220 | void *pEntry, |
| 221 | void *pParam, |
| 222 | rt_uint8_t *pStackAddr, |
| 223 | void *pExit) |
| 224 | { |
| 225 | thread_t *thread; |
| 226 | |
| 227 | thread = (thread_t *)(pStackAddr - sizeof(thread_t)); |
| 228 | |
| 229 | /* set the filed to zero */ |
| 230 | memset(thread, 0x00, sizeof(thread_t)); |
| 231 | |
| 232 | thread_create(thread, pEntry, pParam, pExit); |
| 233 | //TRACE("thread %x created\n", (unsigned int)thread_table[t].pthread); |
| 234 | |
| 235 | return (rt_uint8_t *) thread; |
| 236 | } |
| 237 | |
| 238 | rt_base_t rt_hw_interrupt_disable(void) |
| 239 | { |
nothing calls this directly
no test coverage detected