diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-27 20:13:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-27 20:13:36 +0000 |
commit | 4a5239de7fff7c51b4175531ce06c263e0c2525a (patch) | |
tree | 1c596200bc83d4fe14aa61a261ea765dc9c359d0 /os | |
parent | 26c301ec2ccc137cde4bc62440cd4e1b28039edd (diff) | |
download | ChibiOS-4a5239de7fff7c51b4175531ce06c263e0c2525a.tar.gz ChibiOS-4a5239de7fff7c51b4175531ce06c263e0c2525a.tar.bz2 ChibiOS-4a5239de7fff7c51b4175531ce06c263e0c2525a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3996 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/AT91SAM7/mac_lld.c | 16 | ||||
-rw-r--r-- | os/hal/platforms/AT91SAM7/mac_lld.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/os/hal/platforms/AT91SAM7/mac_lld.c b/os/hal/platforms/AT91SAM7/mac_lld.c index 1e6852ebc..b4555194b 100644 --- a/os/hal/platforms/AT91SAM7/mac_lld.c +++ b/os/hal/platforms/AT91SAM7/mac_lld.c @@ -57,7 +57,7 @@ /**
* @brief Ethernet driver 1.
*/
-MACDriver ETH1;
+MACDriver ETHD1;
/*===========================================================================*/
/* Driver local variables. */
@@ -100,9 +100,9 @@ static void serve_interrupt(void) { if ((isr & AT91C_EMAC_RCOMP) || (rsr & RSR_BITS)) {
if (rsr & AT91C_EMAC_REC) {
chSysLockFromIsr();
- chSemResetI(Ð1.rdsem, 0);
+ chSemResetI(ÐD1.rdsem, 0);
#if MAC_USE_EVENTS
- chEvtBroadcastI(Ð1.rdevent);
+ chEvtBroadcastI(ÐD1.rdevent);
#endif
chSysUnlockFromIsr();
}
@@ -112,7 +112,7 @@ static void serve_interrupt(void) { if ((isr & AT91C_EMAC_TCOMP) || (tsr & TSR_BITS)) {
if (tsr & AT91C_EMAC_COMP) {
chSysLockFromIsr();
- chSemResetI(Ð1.tdsem, 0);
+ chSemResetI(ÐD1.tdsem, 0);
chSysUnlockFromIsr();
}
AT91C_BASE_EMAC->EMAC_TSR = TSR_BITS;
@@ -177,12 +177,12 @@ CH_IRQ_HANDLER(irq_handler) { void mac_lld_init(void) {
miiInit();
- macObjectInit(Ð1);
+ macObjectInit(ÐD1);
/*
* Associated PHY initialization.
*/
- miiReset(Ð1);
+ miiReset(ÐD1);
/*
* EMAC pins setup. Note, PB18 is not included because it is
@@ -248,8 +248,8 @@ void mac_lld_start(MACDriver *macp) { * PHY device identification.
*/
AT91C_BASE_EMAC->EMAC_NCR |= AT91C_EMAC_MPE;
- if ((miiGet(Ð1, MII_PHYSID1) != (PHY_ID >> 16)) ||
- ((miiGet(Ð1, MII_PHYSID2) & 0xFFF0) != (PHY_ID & 0xFFF0)))
+ if ((miiGet(ÐD1, MII_PHYSID1) != (PHY_ID >> 16)) ||
+ ((miiGet(ÐD1, MII_PHYSID2) & 0xFFF0) != (PHY_ID & 0xFFF0)))
chSysHalt();
AT91C_BASE_EMAC->EMAC_NCR &= ~AT91C_EMAC_MPE;
diff --git a/os/hal/platforms/AT91SAM7/mac_lld.h b/os/hal/platforms/AT91SAM7/mac_lld.h index 897c3cf0f..c89464ffa 100644 --- a/os/hal/platforms/AT91SAM7/mac_lld.h +++ b/os/hal/platforms/AT91SAM7/mac_lld.h @@ -218,7 +218,7 @@ typedef struct { /*===========================================================================*/
#if !defined(__DOXYGEN__)
-extern MACDriver ETH1;
+extern MACDriver ETHD1;
#endif
#ifdef __cplusplus
|