Nut/OS  5.0.5
API Reference
Initialization

Starting Nut/OS. More...

Collaboration diagram for Initialization:

Defines

#define PSEUDO_RAM_SIZE   999999
 Nut/OS Initialization.

Functions

void NutIdle (void *arg)
 Emulated idle thread.
void NutThreadInit (void)
 Initialize thread handling in the Linux emulation.
NUTFILENUT_freopen (const char *name, const char *mode, NUTFILE *stream)
int main (int argc, char *argv[])

Variables

uint8_t PSEUDO_RAM [PSEUDO_RAM_SIZE]
NUTFILE__iob []

Detailed Description

Starting Nut/OS.


Define Documentation

#define PSEUDO_RAM_SIZE   999999

Nut/OS Initialization.

Initializes the memory management and the thread system and starts an idle thread, which in turn initializes the timer management. Finally the application's main() function is called.

Referenced by main().


Function Documentation

void NutIdle ( void *  arg)

Emulated idle thread.

After initializing the timers, the idle thread switches to priority 254 and enters an endless loop.

References NUT_THREAD_MAINSTACK, NutAppMain(), NutThreadCreate(), NutThreadDestroy(), NutThreadSetPriority(), NutThreadYield(), and NutTimerInit().

Here is the call graph for this function:

void NutThreadInit ( void  )

Initialize thread handling in the Linux emulation.

Used in the Liux emulation only. Has to be initialized once.

References attr, main_cv, NULL, and thread_mutex.

NUTFILE* NUT_freopen ( const char *  name,
const char *  mode,
NUTFILE stream 
)
int main ( int  argc,
char *  argv[] 
)

References emulation_options, emulation_options_parse(), NUT_THREAD_IDLESTACK, NutHeapAdd, NutIdle(), NutLoadConfig(), NutThreadCreate(), NutThreadInit(), PSEUDO_RAM_SIZE, emulation_options_t::saved_termios, and stdout.

Here is the call graph for this function:


Variable Documentation

uint8_t PSEUDO_RAM[PSEUDO_RAM_SIZE]