mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-02-12 01:43:15 +01:00
Use new atomThreadCreate() API with stack-alignment mods.
This commit is contained in:
@@ -78,7 +78,7 @@ main (void)
|
||||
printf ("atomthreads starting %s... ", ATOMTHREADS_TEST) ;
|
||||
|
||||
atomOSInit(&idle_stack[IDLE_STACK_BYTE_SIZE - sizeof(unsigned int)], IDLE_STACK_BYTE_SIZE - sizeof(unsigned int)) ;
|
||||
atomThreadCreate ((ATOM_TCB *)&test_tcb, TEST_THREAD_PRIO, test_thread, 0, &test_stack[(TEST_STACK_BYTE_SIZE) - sizeof(unsigned int)], TEST_STACK_BYTE_SIZE - sizeof(unsigned int));
|
||||
atomThreadCreate ((ATOM_TCB *)&test_tcb, TEST_THREAD_PRIO, test_thread, 0, &test_stack[0], TEST_STACK_BYTE_SIZE);
|
||||
atomOSStart() ;
|
||||
|
||||
return 0 ;
|
||||
|
||||
Reference in New Issue
Block a user