Forum Discussion
Altera_Forum
Honored Contributor
20 years agoWhy: typedef unsigned int OS_STK;
Hi,
As we know, NiosII is 32-bit processor and integrate uc/os with it. I find the the OS_STK is defined as 16-bit data struct. But in practice, the operation relating to stack always be 32-bit. typedef unsigned int OS_STK; /* Each stack entry is 16-bit wide*/ Could anyone tell me why? Wish all a best christmas, David3 Replies
- Altera_Forum
Honored Contributor
The comment is probably wrong... unsigned int is a 32-bit integer!
Paolo - Altera_Forum
Honored Contributor
Huh, you are right, paolo. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
Thanks... - Altera_Forum
Honored Contributor
Just curious how David was misled by the wrong size info.?
What is the typedef of uC/OS-II, for David's development kit.