BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
22b4569
Branches
Tags
master
mips_sys
fw
eth.c
add read_enable signal to data bus and some peripherals
Stefan Schuermans
commited
22b4569
at 2012-02-26 21:20:53
eth.c
Blame
History
Raw
#include "eth.h" static volatile unsigned char *const eth_ptr = (volatile unsigned char *)0x80000400; /** * @brief check if receiving a character is possible * @return if receiving a character is possible */ int eth_can_rx(void) { return eth_ptr[0]; } /** * @brief receive a character * @return character received */ unsigned char eth_rx(void) { while (!eth_ptr[0]); unsigned char chr = eth_ptr[4]; return chr; }