diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-26 10:26:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-26 10:26:44 +0000 |
commit | 4455dd757b412c38f3e2cf8b163a50f5e2c5c979 (patch) | |
tree | 2d583482a78acec3c770e9ffe521c6393074486e /os/hal | |
parent | c5eeaeef726c4a5eb966be9d898a5b1e03b88037 (diff) | |
download | ChibiOS-4455dd757b412c38f3e2cf8b163a50f5e2c5c979.tar.gz ChibiOS-4455dd757b412c38f3e2cf8b163a50f5e2c5c979.tar.bz2 ChibiOS-4455dd757b412c38f3e2cf8b163a50f5e2c5c979.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3985 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/mac_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/mac_lld.c b/os/hal/platforms/STM32/mac_lld.c index 5534a37da..01eb1e4c3 100644 --- a/os/hal/platforms/STM32/mac_lld.c +++ b/os/hal/platforms/STM32/mac_lld.c @@ -209,12 +209,12 @@ void mac_lld_init(void) { for (i = 0; i < STM32_MAC_RECEIVE_BUFFERS; i++) {
rd[i].rdes1 = STM32_RDES1_RCH | STM32_MAC_BUFFERS_SIZE;
rd[i].rdes2 = (uint32_t)rb[i];
- rd[i].rdes3 = (uint32_t)&rd[((i + 1) % STM32_MAC_RECEIVE_BUFFERS)];
+ rd[i].rdes3 = (uint32_t)&rd[(i + 1) % STM32_MAC_RECEIVE_BUFFERS];
}
for (i = 0; i < STM32_MAC_TRANSMIT_BUFFERS; i++) {
td[i].tdes1 = 0;
td[i].tdes2 = (uint32_t)tb[i];
- td[i].tdes3 = (uint32_t)&td[((i + 1) % STM32_MAC_TRANSMIT_BUFFERS)];
+ td[i].tdes3 = (uint32_t)&td[(i + 1) % STM32_MAC_TRANSMIT_BUFFERS];
}
/* Selection of the RMII or MII mode based on info exported by board.h.*/
|