?? rtl8019.lst
字號:
C51 COMPILER V6.12 RTL8019 05/05/2008 10:44:11 PAGE 1
C51 COMPILER V6.12, COMPILATION OF MODULE RTL8019
OBJECT MODULE PLACED IN .\RTL8019.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\RTL8019.h DEBUG OBJECTEXTEND
stmt level source
1 #ifndef __RTL8019_H__
2 #define __RTL8019_H__
3 #include "delay.h"
*** ERROR 318 IN LINE 3 OF .\RTL8019.h: can't open file 'delay.h'
4 #include "compiler.h"
*** ERROR 318 IN LINE 4 OF .\RTL8019.h: can't open file 'compiler.h'
5
6 // get the MAC address from the uIP MAC address
7 #include "uipopt.h"
*** ERROR 318 IN LINE 7 OF .\RTL8019.h: can't open file 'uipopt.h'
8 void rtl8019BeginPacketSend(unsigned int packetLength);
9 void rtl8019SendPacketData(unsigned char * localBuffer, unsigned int length);
10 void rtl8019EndPacketSend(void);
11 void rtl8019Init(void);
12 void rtl8019ProcessInterrupt(void);
13 unsigned int rtl8019BeginPacketRetreive(void);
14 void rtl8019RetreivePacketData(unsigned char * localBuffer,unsigned int length);
15 void rtl8019EndPacketRetreive(void);
16 #define GENERAL_IO 0
17
18 #define MEMORY_MAPPED_HIGHADDR 1
19 #define MEMORY_MAPPED 2
20
21 // set the connection type used to communicate with the NIC
22 #define NIC_CONNECTION MEMORY_MAPPED
23
24 #if NIC_CONNECTION != GENERAL_IO
25
26 /*** NIC Interface through External SRAM Interface ****/
27 #define MEMORY_MAPPED_RTL8019_OFFSET 0x8000
28 #else
/************ NIC Interface through General I/O *******************/
// RTL8019 address port
#define RTL8019_ADDRESS_PORT PORTB
//PORTD
#define RTL8019_ADDRESS_DDR DDRB
//DDRD
#define RTL8019_ADDRESS_MASK 0x1F
// RTL8019 data port
#define RTL8019_DATA_PORT PORTA
#define RTL8019_DATA_DDR DDRA
#define RTL8019_DATA_PIN PINA
// RTL8019 control port
#define RTL8019_CONTROL_PORT PORTD
//PORTB
#define RTL8019_CONTROL_DDR DDRD
//DDRB
#define RTL8019_CONTROL_READPIN 6
//2
#define RTL8019_CONTROL_WRITEPIN 7
//1
C51 COMPILER V6.12 RTL8019 05/05/2008 10:44:11 PAGE 2
#endif /** NIC Interface **/
54
55 // RTL8019 RESET pin
56 #define RTL8019_RESET_PORT PORTD
57 #define RTL8019_RESET_DDR DDRD
58 #define RTL8019_RESET_PIN 6
59 //7
60
61
62 /*****************************************************************************
63 *
64 * Ethernet constants
65 *
66 *****************************************************************************/
67 #define ETHERNET_MIN_PACKET_LENGTH 0x3C
68 #define ETHERNET_HEADER_LENGTH 0x0E
69
70
71 /*****************************************************************************
72 *
73 * MAC address assigned to the RTL8019
74 *
75 *****************************************************************************/
76 #define MYMAC_0 UIP_ETHADDR0
77 #define MYMAC_1 UIP_ETHADDR1
78 #define MYMAC_2 UIP_ETHADDR2
79 #define MYMAC_3 UIP_ETHADDR3
80 #define MYMAC_4 UIP_ETHADDR4
81 #define MYMAC_5 UIP_ETHADDR5
82
83
84 #endif /* __RTL8019_H__ */
85
86
87
88
C51 COMPILATION COMPLETE. 0 WARNING(S), 3 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -