X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fat91sam7x-ek%2Fhw%2Fhw_eth.h;h=fd4f7922670c020c26b19a366460b923dfd09cb9;hb=6fffd0614f75137e8fed424c87835d4e7d478ef7;hp=71c2ac895be32de6fcfbc26c822980a900fe3fc8;hpb=362204d3e1aabcfde4877219d5ea3406e2d6f9ef;p=bertos.git diff --git a/boards/at91sam7x-ek/hw/hw_eth.h b/boards/at91sam7x-ek/hw/hw_eth.h index 71c2ac89..fd4f7922 100644 --- 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 */