Functions | Variables

eth.c File Reference

#include <string.h>
#include "eth.h"
#include "../timer/timer.h"
#include "../lpc_config.h"
#include "../uart/uart.h"
#include "../mac/emac.h"
#include "../lcd/lcd.h"
#include "../cli/cli.h"
#include "../cli/debug.h"
#include "uip-conf.h"
#include "../mult/mult_uip.h"
#include <uip.h>
#include <uip_arp.h>
#include <timer.h>
#include "clock-arch.h"

Go to the source code of this file.

Functions

void clock_init (void)
 Inicializa o clock.
clock_time_t clock_time (void)
 Retorna o tempo de T0.
void clock_start (void)
 Coloco o clock em operação.
void clock_reset (void)
 reinicializa o clock.
void() EMAC_ISR_Handler (void)
void ethernet_init ()
 Inicializa protocolo Ethernet.
void ethernet_task ()
 Funcao que recebe dados da PHY.
void set_eth_addr (void)
 Configura enderecos iniciais da rede.

Variables

struct timer periodic_timer arp_timer

Function Documentation

void clock_reset ( void   ) 

Definition at line 52 of file eth.c.

Here is the call graph for this function:

void clock_start ( void   ) 

Definition at line 44 of file eth.c.

Here is the call graph for this function:

void() EMAC_ISR_Handler ( void   ) 

Definition at line 4 of file emac_isr.c.

Here is the call graph for this function:

void ethernet_init (  ) 

Configura endereco de MAC Inicializa os clocks. Inicializa a pilha do UIP (tempo, portas, conexoes e buffer) Configura enderecos de IP, Gateway e Mascara FIXOS Inicializa camada mult. Inicializa MAC

Definition at line 82 of file eth.c.

Here is the call graph for this function:

void ethernet_task (  ) 

Funcao e chamada por interrupcao Quando um dado e recebido para ser processado vindo da rede. Verifica se é uma mensagem com protocolo IP ou uma solicitacao de ARP Verificacao do tempo das conexoes periodicas para o protocolo TCP verificando timeout.

Definition at line 130 of file eth.c.

Here is the call graph for this function:

void set_eth_addr ( void   ) 

Definition at line 239 of file eth.c.

Here is the call graph for this function:


Variable Documentation

struct timer periodic_timer arp_timer

Definition at line 69 of file eth.c.