Emulator (UNIX)
[Architectures]

Running Nut/OS Apps on a UNIX machine. More...

Collaboration diagram for Emulator (UNIX):


Data Structures

struct  UNIXDCB
 UNIX devices low level information structure. More...

Modules

 Initialization
 Starting Nut/OS.
 System Support
 Hardware dependant functions used by Nut/OS.

Variables

NUTDEVICE devUart0
 UART 0 Device information structure.
NUTDEVICE devUart1
 UART 1 Device information structure.
NUTDEVICE devUart2
 uart device 2 information structure.
NUTDEVICE devUsartAvr0
 USART0 device information structure.
NUTDEVICE devUsartAvr1
 USART1 device information structure.
NUTDEVICE devUsartAvr2
 usartavr device 2 information structure.
NUTDEVICE devDebug0
 Debug device 0 information structure.
NUTDEVICE devDebug1
 UART 1 Device information structure.
NUTDEVICE devDebug2

Detailed Description

Running Nut/OS Apps on a UNIX machine.

Nut/OS can be compiled for a native unix target.

The following hardware is currently emulated: RTC and UART. A RTC clock is provided. All AVR UARTS are mapped to STDIO but this can configure at app start-up using command line paramters. Syntax:

MyNutOSAPP.unix [-u0 deviceName] [-u1 deviceName] [-u2 deviceName]

The unix emulation provides a third uart for debugging purposes as devDebug2, devUsart2 and devUsartAvr2)


Variable Documentation

NUTDEVICE devUart0

UART 0 Device information structure.

Definition at line 76 of file uart0.c.

NUTDEVICE devUart1

UART 1 Device information structure.

Definition at line 76 of file uart1.c.

NUTDEVICE devUart2

uart device 2 information structure.

Definition at line 1166 of file unix_devs.c.

NUTDEVICE devUsartAvr0

USART0 device information structure.

An application must pass a pointer to this structure to NutRegisterDevice() before using the serial communication driver of the AVR's on-chip USART0.

The device is named uart0.

Definition at line 284 of file usart0avr.c.

NUTDEVICE devUsartAvr1

USART1 device information structure.

An application must pass a pointer to this structure to NutRegisterDevice() before using the serial communication driver of the AVR's on-chip USART1.

The device is named uart1.

Definition at line 288 of file usart1avr.c.

NUTDEVICE devUsartAvr2

usartavr device 2 information structure.

Definition at line 1229 of file unix_devs.c.

NUTDEVICE devDebug0

Debug device 0 information structure.

Definition at line 212 of file debug0.c.

NUTDEVICE devDebug1

UART 1 Device information structure.

Definition at line 160 of file debug1.c.

Referenced by main().

NUTDEVICE devDebug2


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