AnsweredAssumed Answered

#167: argument of type "const BYTE *" is incompatible with parameter of type "uint8_t *"??

Question asked by H.Rick on Feb 2, 2016
Latest reply on Feb 2, 2016 by H.Rick
Guys,

Is there anyway to convert Byte to uint8_t ?

I got this error :
..\Src\user_diskio.c(171): error:  #167: argument of type "const BYTE *" is incompatible with parameter of type "uint8_t *"

static
void xmit_spi_multi (
      const BYTE *p,    /* Data block to be sent */
    UINT cnt       
)
 
{
     
    while(HAL_SPI_GetState(&hspi2) != HAL_SPI_STATE_READY);
    HAL_SPI_Transmit(&hspi2,p,cnt,100);
}


thanks

Outcomes