22b456946e289c89da296dcaceeb18de71761713
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

1) #include "eth.h"
2) 
3) static volatile unsigned char *const eth_ptr =
4)   (volatile unsigned char *)0x80000400;
5) 
6) /**
7)  * @brief check if receiving a character is possible
8)  * @return if receiving a character is possible
9)  */
10) int eth_can_rx(void)
11) {
12)   return eth_ptr[0];
13) }
14) 
15) /**
16)  * @brief receive a character
17)  * @return character received
18)  */
19) unsigned char eth_rx(void)
20) {
Stefan Schuermans add read_enable signal to d...

Stefan Schuermans authored 12 years ago

21)   while (!eth_ptr[0]);
22)   unsigned char chr = eth_ptr[4];