diff options
Diffstat (limited to 'os/io/platforms')
-rw-r--r-- | os/io/platforms/AT91SAM7X/mac_lld.c | 4 | ||||
-rw-r--r-- | os/io/platforms/AT91SAM7X/mii_lld.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/os/io/platforms/AT91SAM7X/mac_lld.c b/os/io/platforms/AT91SAM7X/mac_lld.c index 223d54342..85d2812e8 100644 --- a/os/io/platforms/AT91SAM7X/mac_lld.c +++ b/os/io/platforms/AT91SAM7X/mac_lld.c @@ -204,6 +204,7 @@ void mac_lld_init(void) { */
void mac_lld_set_address(MACDriver *macp, const uint8_t *p) {
+ (void)macp;
AT91C_BASE_EMAC->EMAC_SA1L = (AT91_REG)((p[3] << 24) | (p[2] << 16) |
(p[1] << 8) | p[0]);
AT91C_BASE_EMAC->EMAC_SA1H = (AT91_REG)((p[5] << 8) | p[4]);
@@ -224,6 +225,8 @@ msg_t max_lld_get_transmit_descriptor(MACDriver *macp, MACTransmitDescriptor *tdp) {
EMACDescriptor *edp;
+ (void)macp;
+
if (!link_up)
return RDY_TIMEOUT;
@@ -318,6 +321,7 @@ msg_t max_lld_get_receive_descriptor(MACDriver *macp, unsigned n;
EMACDescriptor *edp;
+ (void)macp;
n = EMAC_RECEIVE_DESCRIPTORS;
/*
diff --git a/os/io/platforms/AT91SAM7X/mii_lld.c b/os/io/platforms/AT91SAM7X/mii_lld.c index 518190d4e..4d69adc43 100644 --- a/os/io/platforms/AT91SAM7X/mii_lld.c +++ b/os/io/platforms/AT91SAM7X/mii_lld.c @@ -42,6 +42,8 @@ void mii_lld_init(void) { */
void mii_lld_reset(MACDriver *macp) {
+ (void)macp;
+
/*
* Disables the pullups on all the pins that are latched on reset by the PHY.
* The status latched into the PHY is:
@@ -87,6 +89,7 @@ void mii_lld_reset(MACDriver *macp) { */
phyreg_t mii_lld_get(MACDriver *macp, phyaddr_t addr) {
+ (void)macp;
AT91C_BASE_EMAC->EMAC_MAN = (0b01 << 30) | /* SOF */
(0b10 << 28) | /* RW */
(PHY_ADDRESS << 23) | /* PHYA */
@@ -106,6 +109,7 @@ phyreg_t mii_lld_get(MACDriver *macp, phyaddr_t addr) { */
void mii_lld_put(MACDriver *macp, phyaddr_t addr, phyreg_t value) {
+ (void)macp;
AT91C_BASE_EMAC->EMAC_MAN = (0b01 << 30) | /* SOF */
(0b01 << 28) | /* RW */
(PHY_ADDRESS << 23) | /* PHYA */
|