Collaboration diagram for Initialization:
|
Defines | |
| #define | NUTMEM_END (u_short)(NUTMEM_START + (u_short)NUTMEM_SIZE - 1U) |
| Last memory address without using external SRAM. | |
| #define | AVR_SLEEP_CTRL_REG MCUCR |
Functions | |
| void | NutInit (void) |
| Nut/OS Initialization. | |
| void | NutAppMain (void *arg) |
| void | NutThreadSetSleepMode (u_char mode) |
| Sets the sleep mode to enter in Idle thread. | |
| void | NutIdle (void *arg) |
| AVR Idle thread. | |
Variables | |
| u_char | idle_sleep_mode = SLEEP_MODE_NONE |
|
|
Last memory address without using external SRAM.
|
|
|
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. |
|
|
Sets the sleep mode to enter in Idle thread. If the idle thread is running, no other thread is active so we can safely put the mcu to sleep.
|
|
|
AVR Idle thread. Running at priority 254 in an endless loop. |