Nut/OS  5.0.5
API Reference
unix.h File Reference
#include <sys/types.h>
#include <stdint.h>
#include <dev/mweeprom.h>
#include <termios.h>
#include <unistd_orig.h>
Include dependency graph for unix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uart_options_t
struct  emulation_options_t

Defines

#define CONST   const
#define INLINE   inline
#define PSTR(p)   (p)
#define PRG_RDB(p)   (*((const char *)(p)))
#define prog_char   const char
#define PGM_P   prog_char *
#define main(...)   NutAppMain(__VA_ARGS__)
#define strlen_P(x)   strlen(x)
#define strcpy_P(x, y)   strcpy(x,y)
#define strcmp_P(x, y)   strcmp(x, y)
#define memcpy_P(x, y, z)   memcpy(x, y, z)
#define RAMSTART   ((void *)0x00100)
#define malloc(...)   NUT_malloc(__VA_ARGS__)
#define realloc(...)   NUT_realloc(__VA_ARGS__)
#define free(...)   NUT_free(__VA_ARGS__)

Enumerations

enum  {
  IRQ_TIMER0, IRQ_UART0_RX, IRQ_UART1_RX, IRQ_UART2_RX,
  IRQ_MAX
}

Functions

void emulation_options_parse (int argc, char *argv[])

Variables

emulation_options_t emulation_options

Backwards compatibility defines

#define eeprom_rb(addr)   eeprom_read_byte ((uint8_t *)(uint32_t) (addr))
#define eeprom_rw(addr)   eeprom_read_word ((uint16_t *)(uint32_t) (addr))
#define eeprom_wb(addr, val)   eeprom_write_byte ((uint8_t *)(uint32_t) (addr), (val))
#define E2END   0x0FFF
#define eeprom_is_ready()   TRUE

Define Documentation

#define CONST   const
#define INLINE   inline
#define PSTR (   p)    (p)
#define PRG_RDB (   p)    (*((const char *)(p)))
#define prog_char   const char
#define PGM_P   prog_char *
#define main (   ...)    NutAppMain(__VA_ARGS__)
#define strlen_P (   x)    strlen(x)
#define strcpy_P (   x,
 
)    strcpy(x,y)
#define strcmp_P (   x,
 
)    strcmp(x, y)
#define memcpy_P (   x,
  y,
 
)    memcpy(x, y, z)
#define RAMSTART   ((void *)0x00100)
#define malloc (   ...)    NUT_malloc(__VA_ARGS__)
#define realloc (   ...)    NUT_realloc(__VA_ARGS__)
#define free (   ...)    NUT_free(__VA_ARGS__)
#define eeprom_rb (   addr)    eeprom_read_byte ((uint8_t *)(uint32_t) (addr))
#define eeprom_rw (   addr)    eeprom_read_word ((uint16_t *)(uint32_t) (addr))
#define eeprom_wb (   addr,
  val 
)    eeprom_write_byte ((uint8_t *)(uint32_t) (addr), (val))
#define E2END   0x0FFF
#define eeprom_is_ready ( )    TRUE

always returns 1, as eeprom = unix_file is always ready


Enumeration Type Documentation

anonymous enum
Enumerator:
IRQ_TIMER0 
IRQ_UART0_RX 
IRQ_UART1_RX 
IRQ_UART2_RX 
IRQ_MAX 

Function Documentation

void emulation_options_parse ( int  argc,
char *  argv[] 
)

References atoi(), uart_options_t::bautrate, uart_options_t::device, uart_options_t::flowcontrol, NULL, printf, strcmp(), strdup(), strncmp(), emulation_options_t::uart_options, uart_options_t::usbnum, and emulation_options_t::verbose.

Referenced by main().

Here is the call graph for this function:


Variable Documentation