projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sam3 pmc: add functions to handle peripheral clock enable/disable;
[bertos.git]
/
bertos
/
drv
/
eth.h
diff --git
a/bertos/drv/eth.h
b/bertos/drv/eth.h
index a5f0c2d5a713f53d2db1c7f60b09867dafdc2f1b..2d29ba7ad410260669fc53c3c479663e7557061b 100644
(file)
--- a/
bertos/drv/eth.h
+++ b/
bertos/drv/eth.h
@@
-36,7
+36,7
@@
*
* $WIZ$ module_name = "eth"
* $WIZ$ module_configuration = "bertos/cfg/cfg_eth.h"
*
* $WIZ$ module_name = "eth"
* $WIZ$ module_configuration = "bertos/cfg/cfg_eth.h"
- * $WIZ$ module_supports = "at91"
+ * $WIZ$ module_supports = "at91
sam7x
"
*/
#ifndef DRV_ETH_H
*/
#ifndef DRV_ETH_H
@@
-119,10
+119,17
@@
INLINE bool eth_addrCmp(const uint8_t *addr1, const uint8_t *addr2)
(addr1[5] ^ addr2[5]));
}
(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);
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);
int eth_init(void);
-extern uint8_t mac_addr[ETH_ADDR_LEN];
+extern
const
uint8_t mac_addr[ETH_ADDR_LEN];
#endif /* DRV_ETH_H */
#endif /* DRV_ETH_H */