diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 10:33:37 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 10:33:37 +0000 |
commit | 26ed3732876a649fb02a83e768e4392034d65653 (patch) | |
tree | 35d18da4d34fc6cf74a93112df3b27efa4a46662 /os/io | |
parent | cbbe7cce8c93cf578d35cde1506e83a802e4eb05 (diff) | |
download | ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.gz ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.bz2 ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1229 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io')
-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 */
|