A PicoTCP driver for the lpc1768 mbed board
Dependents: lpc1768-picotcp-demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test TCPSocket_HelloWorld_PicoTCP ... more
Diff: pico_dev_mbed_emac.cpp
- Revision:
- 11:a85f164b4d28
- Parent:
- 10:7b931f77f39a
- Child:
- 14:456f2ea9804c
--- a/pico_dev_mbed_emac.cpp Mon Nov 25 11:23:49 2013 +0000 +++ b/pico_dev_mbed_emac.cpp Thu Nov 28 10:07:45 2013 +0000 @@ -33,31 +33,31 @@ /******************************* * Local structs and typedefs * *******************************/ -__packed struct RX_DESC_TypeDef { /* RX Descriptor struct */ +struct __attribute__((packed)) RX_DESC_TypeDef { /* RX Descriptor struct */ unsigned int Packet; unsigned int Ctrl; }; typedef struct RX_DESC_TypeDef RX_DESC_TypeDef; -__packed struct RX_STAT_TypeDef { /* RX Status struct */ +struct __attribute__((packed)) RX_STAT_TypeDef { /* RX Status struct */ unsigned int Info; unsigned int HashCRC; }; typedef struct RX_STAT_TypeDef RX_STAT_TypeDef; -__packed struct TX_DESC_TypeDef { /* TX Descriptor struct */ +struct __attribute__((packed)) TX_DESC_TypeDef { /* TX Descriptor struct */ unsigned int Packet; unsigned int Ctrl; }; typedef struct TX_DESC_TypeDef TX_DESC_TypeDef; -__packed struct TX_STAT_TypeDef { /* TX Status struct */ +struct __attribute__((packed)) TX_STAT_TypeDef { /* TX Status struct */ unsigned int Info; }; typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; // To be allocated in the ETH AHB RAM -__packed typedef struct emac_dma_data { +typedef struct __attribute__((packed)) emac_dma_data { RX_STAT_TypeDef p_rx_stat[NUM_RX_FRAG]; /**< Pointer to RX statuses */ RX_DESC_TypeDef p_rx_desc[NUM_RX_FRAG]; /**< Pointer to RX descriptor list */ TX_STAT_TypeDef p_tx_stat[NUM_TX_FRAG]; /**< Pointer to TX statuses */