Other Parts Discussed in Thread: EK-TM4C123GXL
Hello.
I don´t know how to solve this error.
I´m try to compile (under IAR ARM 7.5 / with EK-TM4C123GXL), a USB CDC application.
This was successful using the C compiler , but now I need to compile it with c ++ .
And so my application as the example project " usb_dev_serial " show compilation error :
Error[Pe167]: argument of type "void *" is incompatible with parameter of type "tLineCoding *" .......\TivaWare\examples\boards\ek-tm4c123gxl\usb_dev_serial\usb_dev_serial.c 852.
to replicate the problem, I just change under IAR Compiller from C to C++.
Regards
Fernando
Code
uint32_t
ControlHandler(void *pvCBData, uint32_t ui32Event,
uint32_t ui32MsgValue, void *pvMsgData)
{
uint32_t ui32IntsOff;
//
// Which event are we being asked to process?
//
switch(ui32Event)
{
//
// We are connected to a host and communication is now possible.
//
case USB_EVENT_CONNECTED:
g_bUSBConfigured = true;
//
// Flush our buffers.
//
USBBufferFlush(&g_sTxBuffer);
USBBufferFlush(&g_sRxBuffer);
//
// Tell the main loop to update the display.
//
ui32IntsOff = ROM_IntMasterDisable();
g_pcStatus = "Connected";
g_ui32Flags |= COMMAND_STATUS_UPDATE;
if(!ui32IntsOff)
{
ROM_IntMasterEnable();
}
break;
//
// The host has disconnected.
//
case USB_EVENT_DISCONNECTED:
g_bUSBConfigured = false;
ui32IntsOff = ROM_IntMasterDisable();
g_pcStatus = "Disconnected";
g_ui32Flags |= COMMAND_STATUS_UPDATE;
if(!ui32IntsOff)
{
ROM_IntMasterEnable();
}
break;
//
// Return the current serial communication parameters.
//
case USBD_CDC_EVENT_GET_LINE_CODING:
GetLineCoding(pvMsgData);
break;
...
...