#include "includes.h"
Funciones | |
int | check_prot (void) |
void | main_init (void) |
Realiza la inicializacion . | |
int | main (void) |
void | liberar_buffer (void) |
ISR (INT0_vect) | |
Variables | |
Queue | BufTx |
Queue | BufRx |
volatile int | RxC_F |
BYTE | ints |
FLOW_FLAGS | FC |
MAC_ADDR | avr_mac |
IP_ADDR | avr_ip |
IP_ADDR | gateway_ip |
int | interrumpido |
int | paq_pend |
date_time | dia_hora |
MAC_ADDR | dest_mac |
IP_ADDR | dest_ip |
BYTE | buffer [MAX_RXTX_BUFFER] |
BYTE ee_avr_mac[6] | EEMEM = { 0x00,0x03, 0xb3,0x00,0x57,0x70} |
Modulo principal.
Genera una peticion de fecha/hora a partir de un evento desencadenado por el puerto serie y devuelve la respuesta.
Inicializa UART, timer y el RTC y luego entra en un loop infinito esperando que se produzcan interrupciones de llegada de mensaje en UART
Inicializa UART, timer y el RTC y luego entra en un loop infinito esperando que se produzcan interrupciones de llegada de mensaje en UART
int check_prot | ( | void | ) |
ISR | ( | INT0_vect | ) |
void liberar_buffer | ( | void | ) |
ya no es necesario ver si hay pendientes porque las ints las manejo por nivel bajo. simplemente libero el buffer haciendo buffer_empty=1 y rehabilito las interrupciones.
int main | ( | void | ) |
void main_init | ( | void | ) |
Realiza la inicializacion
.
Se leen los datos necesarios de la EPROM, se inicializa el ENC y las banderas de control de flujo del stack TCP/IP SILICON REV. 5!!
int interrumpido |
int paq_pend |
volatile int RxC_F |
Bandera habilitada por la ISR de recepcion