Skip to content

Commit

Permalink
Use GCC-compatible alignment specifier in TM4C NetworkInterface.c (#1027
Browse files Browse the repository at this point in the history
)

* Use GCC-compatible alignment specifier in TM4C NetworkInterface.c

Replace the CCS-only pragma with GCC attribute. Fixing this along with #1206 will make this file build without warnings on the ARM GNU toolchain.

The CCS compiler does support this attribute, see section 5.17.2 in: https://www.ti.com/lit/ug/spnu151w/spnu151w.pdf?ts=1695011722091

* Uncrustify: triggered by comment.

---------

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
jonathangjertsen and actions-user authored Sep 18, 2023
1 parent 5e55153 commit ce7b689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/portable/NetworkInterface/TM4C/NetworkInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ static tEMACDMADescriptor _rx_descriptors[ niEMAC_RX_DMA_DESC_COUNT ];
static tDescriptorList _tx_descriptor_list = { .number_descriptors = niEMAC_TX_DMA_DESC_COUNT, 0 };
static tDescriptorList _rx_descriptor_list = { .number_descriptors = niEMAC_RX_DMA_DESC_COUNT, 0 };

static uint8_t _network_buffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ][ BUFFER_SIZE_ROUNDED_UP ];
#pragma DATA_ALIGN(_network_buffers, 4)
static uint8_t _network_buffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ][ BUFFER_SIZE_ROUNDED_UP ] __attribute__( ( aligned( 4 ) ) );

static EthernetPhy_t xPhyObject;

Expand Down

0 comments on commit ce7b689

Please sign in to comment.