File nut/app/basemon/realtek.c


Included Files


Preprocessor definitions

#define RTL_EESK_BIT 5

#define RTL_EESK_PORT PORTC

#define RTL_EESK_PIN PINC

#define RTL_EESK_DDR DDRC

#define RTL_EEDO_BIT 6

#define RTL_EEDO_PORT PORTC

#define RTL_EEDO_DDR DDRC

#define RTL_EEMU_BIT 7

#define RTL_EEMU_PORT PORTC

#define RTL_EEMU_DDR DDRC

#define RTL_EE_MEMBUS

#define NIC_PAGE_SIZE 0x100

#define NIC_START_PAGE 0x40

#define NIC_STOP_PAGE 0x60

#define NIC_TX_PAGES 6

#define NIC_TX_BUFFERS 2

#define NIC_FIRST_TX_PAGE NIC_START_PAGE

#define NIC_FIRST_RX_PAGE

#define TX_PAGES 12


Local Variables

nic_eeprom
static prog_char nic_eeprom[18]

Global Function RealtekDetect()

int RealtekDetect ( void )
Prototyped in: nut/app/basemon/realtek.h

Global Function RealtekLoop()

void RealtekLoop ( void )
Prototyped in: nut/app/basemon/realtek.h
Calls: GetChar(), printf(), printf_P(), puts()
References Variables: presskey_P

Global Function RealtekSend()

void RealtekSend ( void )
Prototyped in: nut/app/basemon/realtek.h
Calls: DetectNicEeprom() nut/app/basemon/realtek.c
  EmulateNicEeprom() nut/app/basemon/realtek.c
  NicReset() nut/app/basemon/realtek.c
  Delay(), GetChar(), printf(), puts()

Global Function RealtekTest()

int RealtekTest ( void )
Prototyped in: nut/app/basemon/realtek.h
Calls: Delay(), printf(), puts()
References Variables: uart_bs

Local Function DetectNicEeprom()

static int DetectNicEeprom ( void )
Called by: RealtekSend() nut/app/basemon/realtek.c

Local Function EmulateNicEeprom()

static void EmulateNicEeprom ( void )
Called by: RealtekSend() nut/app/basemon/realtek.c

Local Function NicReset()

static int NicReset ( void )
Calls: Delay(), printf(), puts()
Called by: RealtekSend() nut/app/basemon/realtek.c