Starting Nut/OS. More...
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. | |
| NUTFILE * | NUT_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 [] |
Starting Nut/OS.
| #define PSEUDO_RAM_SIZE 999999 |
| 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().
| 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.
| 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.
| uint8_t PSEUDO_RAM[PSEUDO_RAM_SIZE] |