X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Feth.h;h=786e7979c2ee303293ac5f72f1a91ca239c92b2c;hb=ab40eaf9ac5b43e7087588fe7f435bdbc9a6eb23;hp=a5f0c2d5a713f53d2db1c7f60b09867dafdc2f1b;hpb=452ed69b6c095a55be5ea290518b2b23e71526cc;p=bertos.git diff --git a/bertos/drv/eth.h b/bertos/drv/eth.h index a5f0c2d5..786e7979 100644 --- a/bertos/drv/eth.h +++ b/bertos/drv/eth.h @@ -36,12 +36,14 @@ * * $WIZ$ module_name = "eth" * $WIZ$ module_configuration = "bertos/cfg/cfg_eth.h" - * $WIZ$ module_supports = "at91" + * $WIZ$ module_supports = "at91sam7x or sam3x" + * $WIZ$ module_hw = "bertos/hw/hw_eth.h", "bertos/hw/hw_eth.c" */ #ifndef DRV_ETH_H #define DRV_ETH_H +#include "hw/hw_eth.h" #include #define ETH_ADDR_LEN 6 @@ -119,10 +121,15 @@ INLINE bool eth_addrCmp(const uint8_t *addr1, const uint8_t *addr2) (addr1[5] ^ addr2[5])); } +ssize_t eth_putFrame(const uint8_t *buf, size_t len); +void eth_sendFrame(void); + +size_t eth_getFrameLen(void); +ssize_t eth_getFrame(uint8_t *buf, size_t len); + ssize_t eth_send(const uint8_t *buf, size_t len); ssize_t eth_recv(uint8_t *buf, size_t len); -int eth_init(void); -extern uint8_t mac_addr[ETH_ADDR_LEN]; +int eth_init(void); #endif /* DRV_ETH_H */