Skip to content

Commit

Permalink
updated initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajmund Szymanski committed Jul 31, 2018
1 parent 7390d30 commit d3d41c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion StateOS/kernel/inc/ostask.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ struct __tsk
******************************************************************************/

#define _TSK_INIT( _prio, _state, _stack, _size ) \
{ _OBJ_INIT(), 0, _state, 0, 0, 0, 0, 0, _stack+SSIZE(_size), _stack, _prio, _prio, 0, 0, 0, { 0, 0 }, { { 0, 0 } }, _TSK_EXTRA }
{ _OBJ_INIT(), ID_STOPPED, _state, 0, 0, 0, 0, 0, _stack+SSIZE(_size), _stack, _prio, _prio, 0, 0, 0, { 0, 0 }, { { 0, 0 } }, _TSK_EXTRA }

/******************************************************************************
*
Expand Down
2 changes: 1 addition & 1 deletion StateOS/kernel/inc/ostimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct __tmr
*
******************************************************************************/

#define _TMR_INIT( _state ) { _OBJ_INIT(), 0, _state, 0, 0, 0 }
#define _TMR_INIT( _state ) { _OBJ_INIT(), ID_STOPPED, _state, 0, 0, 0 }

/******************************************************************************
*
Expand Down

0 comments on commit d3d41c5

Please sign in to comment.