Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

System Initialization
[Nut/OS API]

Collaboration diagram for System Initialization:


Detailed Description

Nut/OS initialization.

System initialization is implemented in the architecture dependant parts. Applications do not need to call any specific routine. The system is automatically initialized before the application main routine starts running.

Links to the architecture specific initialization

A bare minimum code sample

 #include <compiler.h>

 int main(void)
 {
     for (;;);
 } 

Including compiler.h is currently required to fix a problem with GCC's special handling of main().


Variables

volatile u_char ms62_5 = 0
 System tick counter.


Variable Documentation

volatile u_char ms62_5 = 0
 

System tick counter.

For the time being we put this here to ensure that it will be placed in lower RAM. This is essential for the AVR platform, where we use this counter to determine the system clock and calculate the correct baudrate factors. If this counter would be placed in external RAM, additional wait states may apply.

Todo:
To be removed.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/