Skip to content

Commit 58da078

Browse files
authored
Merge pull request #12015 from jeromecoutant/PR_ETHERNET_ARMC5
STM EMAC: compilation issue with ARMC5
2 parents a4dbf63 + 27f4015 commit 58da078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT]; /* Ethernet Tx DMA Descriptor
8282
#pragma location=0x30040400
8383
uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_MAX_PACKET_SIZE]; /* Ethernet Receive Buffers */
8484

85-
#elif defined ( __CC_ARM ) /* MDK ARM Compiler */
85+
#elif defined ( __CC_ARM ) /* ARMC5 */
8686

8787
__attribute__((section(".RxDecripSection"))) ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT]; /* Ethernet Rx DMA Descriptors */
8888
__attribute__((section(".TxDecripSection"))) ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT]; /* Ethernet Tx DMA Descriptors */
89-
__attribute__((section(".RxArraySection"))) uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_RX_BUFFER_SIZE]; /* Ethernet Receive Buffer */
89+
__attribute__((section(".RxArraySection"))) uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_MAX_PACKET_SIZE]; /* Ethernet Receive Buffer */
9090

91-
#elif defined ( __GNUC__ ) /* GNU Compiler */
91+
#elif defined ( __GNUC__ ) /* GCC & ARMC6*/
9292

9393
ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT] __attribute__((section(".RxDecripSection"))); /* Ethernet Rx DMA Descriptors */
9494
ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute__((section(".TxDecripSection"))); /* Ethernet Tx DMA Descriptors */

0 commit comments

Comments
 (0)