X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/6d441bbe709092d070c21b92aeeabfb82cb5982f..afe814271b1b8c0519595d12d5a9cad8a24a3cc9:/src/dp8390.h diff --git a/src/dp8390.h b/src/dp8390.h index a11854c..dfd19d6 100644 --- a/src/dp8390.h +++ b/src/dp8390.h @@ -24,15 +24,15 @@ sbit IOR = CTRL_PORT^5; // ISA slot pin B14, RTL8019AS pin 29, active low sbit NICE = CTRL_PORT^2; // A7, usado para activar placa de red #endif -// Configuración de paǵinas de buffers -#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 6 * 256 = 1536 bytes -#define RX_PAGE_START 0x46 // 0x4600 Rx buffer: 26 * 256 = 6656 bytes -#define RX_PAGE_STOP 0x60 // 0x6000 - // Límites de tamaño de paquete #define MIN_PACKET_LEN 60u // Mínimo permitido por 802.3 #define MAX_PACKET_LEN 128u // Mínimo permitido por nuestra escasa memoria =) +// Configuración de paǵinas de buffers +#define TX_PAGE_START 0x40 // 0x4000 Tx buffer: 256 bytes (usamos 128) +#define RX_PAGE_START 0x41 // 0x4600 Rx buffer: 31 * 256 = 7936 bytes +#define RX_PAGE_STOP 0x60 // 0x6000 + // Register base address #define REG_BASE 0x0000 // Hardwired to 0x0300