diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-09-27 18:48:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-09-27 18:48:47 +0000 |
commit | c9bfcaa15ec3d03ee088ecfa5cf6cf82e718cb38 (patch) | |
tree | 0bcfd6b978bb7004587ce6f70ad17ed95bda13b8 /os/io | |
parent | ee0d07151a144a8425d8cfd0740098d1b76711c2 (diff) | |
download | ChibiOS-c9bfcaa15ec3d03ee088ecfa5cf6cf82e718cb38.tar.gz ChibiOS-c9bfcaa15ec3d03ee088ecfa5cf6cf82e718cb38.tar.bz2 ChibiOS-c9bfcaa15ec3d03ee088ecfa5cf6cf82e718cb38.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1192 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io')
-rw-r--r-- | os/io/platforms/AT91SAM7X/mac_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/io/platforms/AT91SAM7X/mac_lld.c b/os/io/platforms/AT91SAM7X/mac_lld.c index f218af15a..69d45dfbc 100644 --- a/os/io/platforms/AT91SAM7X/mac_lld.c +++ b/os/io/platforms/AT91SAM7X/mac_lld.c @@ -84,7 +84,7 @@ static void serve_interrupt(void) { chSysLockFromIsr();
chSemResetI(&MAC1.md_rdsem, 0);
#if CH_USE_EVENTS
- chEvtBroadcast(&MAC1.md_rdevent);
+ chEvtBroadcastI(&MAC1.md_rdevent);
#endif
chSysUnlockFromIsr();
}
@@ -202,9 +202,9 @@ void mac_lld_init(void) { */
void mac_lld_set_address(MACDriver *macp, const uint8_t *p) {
- AT91C_BASE_EMAC->EMAC_SA1L = (AT91_REG)((p[2] << 24) | (p[3] << 16) |
- (p[4] << 8) | p[5]);
- AT91C_BASE_EMAC->EMAC_SA1H = (AT91_REG)((p[0] << 8) | p[1]);
+ 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]);
}
/**
|