AnsweredAssumed Answered

'AS1_SendBlock' makes integer from pointer without a cast --- warning

Question asked by Russell Sher on Apr 24, 2015
Latest reply on Apr 26, 2015 by Russell Sher

I am using processor expert to make a uart as below:

 

int main(void)

 

{

 

  char OutData[] = "Hello world";

  LDD_TError Error;

  LDD_TDeviceData *MySerialPtr;

 

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/

  PE_low_level_init();

 

  /*** End of Processor Expert internal initialization.                    ***/

 

  /* Write your code here */

 

  for(;;)

  {

   Set_Led_SetVal();  // Led on

   AS1_SendChar('A'); // Send a Char

   Error = AS1_SendBlock(MySerialPtr, OutData, sizeof(OutData)); /* Send block of characters */

  }

 

I get this warning:

passing argument 2 of 'AS1_SendBlock' makes integer from pointer without a cast [enabled by default]

passing argument 3 of 'AS1_SendBlock' makes pointer from integer without a cast [enabled by default]

 

 

 

I'm not quite sure what I should change, any advice?

thanks

Russell

Outcomes