From 4455dd757b412c38f3e2cf8b163a50f5e2c5c979 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 26 Feb 2012 10:26:44 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3985 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/mac_lld.c | 4 ++-- 1 file 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.*/ -- cgit v1.2.3