projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'dev'
[bertos.git]
/
boards
/
at91sam7x-ek
/
hw
/
hw_eth.h
diff --git
a/boards/at91sam7x-ek/hw/hw_eth.h
b/boards/at91sam7x-ek/hw/hw_eth.h
index 71c2ac895be32de6fcfbc26c822980a900fe3fc8..fd4f7922670c020c26b19a366460b923dfd09cb9 100644
(file)
--- a/
boards/at91sam7x-ek/hw/hw_eth.h
+++ b/
boards/at91sam7x-ek/hw/hw_eth.h
@@
-41,4
+41,11
@@
extern uint8_t mac_addr[6];
-#endif // HW_ETH_H
+#define PHY_HW_INIT() \
+ do { \
+ PIOB_OER = BV(18); \
+ PIOB_CODR = BV(18); \
+ PIOB_PER = BV(18); \
+ } while (0)
+
+#endif /* HW_ETH_H */