This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C129EXL: EK-TM4C129EXL

Part Number: EK-TM4C129EXL

Dear all,

I have problem in type definition. How can I solve this??? My code is 

#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_nvic.h"
#include "inc/hw_types.h"
#include "driverlib/flash.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
#include "driverlib/timer.h"
#include "driverlib/rom_map.h"
#include "utils/locator.h"
//#include "utils/lwiplib.h"
#include "utils/uartstdio.h"
#include "utils/ustdlib.h"
//#include "httpserver_raw/httpd.h"
//#include "drivers/pinout.h"
//#include "io.h"
//#include "cgifuncs.h"

typedef union
{
tEMACDMADescriptor *pLink;   /////error here identifier undefine
void *pvBuffer2;
}
tEMACDES3

typedef struct   ///// Error expected a.
{
uint32_t ui32CtrlStatus;
uint32_t ui32Count;
void *pvBuffer1;
tEMACDES3 DES3;
uint32_t ui32ExtRxStatus;
uint32_t ui32Reserved;
uint32_t ui32IEEE1588TimeLo;
uint32_t ui32IEEE1588TimeHi;
}
tEMACDMADescriptor

typedef struct
{
uint32_t pui32ByteMask[4];
uint8_t pui8Command[4];
uint8_t pui8Offset[4];
uint16_t pui16CRC[4];
}
tEMACWakeUpFrameFilter
//*****************************************************************************
//
// Ethernet DMA descriptors.
//
// The MAC hardware needs a minimum of 3 receive descriptors to operate. The
// number used will be application-dependent and should be tuned for best
// performance.
//
//*****************************************************************************
#define NUM_TX_DESCRIPTORS 3
#define NUM_RX_DESCRIPTORS 3
tEMACDMADescriptor g_psRxDescriptor[NUM_TX_DESCRIPTORS];
tEMACDMADescriptor g_psTxDescriptor[NUM_RX_DESCRIPTORS];
uint32_t g_ui32RxDescIndex;
uint32_t g_ui32TxDescIndex;

Thanks 

Imtiaj

  • Hello Imtiaj,

    I am not entirely sure what type to changes you are looking to make to the project, but it seems like you trying to add stuff from emac.h to your .c file?

    I would recommend just linking the header properly:

    #include "driverlib/emac.h"

    Best Regards,

    Ralph Jacobi