uC/OS Library
Posted: Sat Aug 22, 2009 4:56 am
I have recently purchased a copy of the book "MicroC/OS-II" by Jean Labrosse to help
me better understand how the uC/OS Library functions work.
Although I'm only halfway through chapter one, I have already spotted some differences
with using this operating system on the Netburner platform, which albiet a bit trivial,
it does nag me that I can't immmediately reconcile these issues.
Netburner Constants.h file states :-
System task priorities
*
* Restating the uC/OS RTOS Library document (uCOSLibrary.pdf)
* Lowest priority is 63, 1 is the highest.
* There can only be one task at each priority level.
* Idle task is created at priority 63.
According to Jean Labrosse's book, 1 is not the highest priority - zero actually is - 1 would therefore by default be the second highest task priority.
Does OSSimpleTaskCreate(){MACRO} include OSInit(),OSStart(), stack size definitions etc.
which is a mandatory requirement for uC/OS-II to work?
I see that OSInit() is declared in the ucos.h header file as a function prototype but not typically directly invoked in Main(), indirectly perhaps? Having OSSimpleTaskCreate() disguised as an exclusive NetBurner MACRO; makes it a bit slower for me to learn to what is actually layered underneath it, for a beginner who only knows a bit of C and Machine Assembly code programming.
me better understand how the uC/OS Library functions work.
Although I'm only halfway through chapter one, I have already spotted some differences
with using this operating system on the Netburner platform, which albiet a bit trivial,
it does nag me that I can't immmediately reconcile these issues.
Netburner Constants.h file states :-
System task priorities
*
* Restating the uC/OS RTOS Library document (uCOSLibrary.pdf)
* Lowest priority is 63, 1 is the highest.
* There can only be one task at each priority level.
* Idle task is created at priority 63.
According to Jean Labrosse's book, 1 is not the highest priority - zero actually is - 1 would therefore by default be the second highest task priority.
Does OSSimpleTaskCreate(){MACRO} include OSInit(),OSStart(), stack size definitions etc.
which is a mandatory requirement for uC/OS-II to work?
I see that OSInit() is declared in the ucos.h header file as a function prototype but not typically directly invoked in Main(), indirectly perhaps? Having OSSimpleTaskCreate() disguised as an exclusive NetBurner MACRO; makes it a bit slower for me to learn to what is actually layered underneath it, for a beginner who only knows a bit of C and Machine Assembly code programming.