- minor refactoring regarding data type usage.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@116 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2015-03-30 09:20:44 +00:00
parent e02caf47e9
commit 74334a7d65
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ static blt_bool UartReceiveByte(blt_int8u *data)
if (USART_GetFlagStatus(USART_CHANNEL, USART_FLAG_RXNE) == SET) if (USART_GetFlagStatus(USART_CHANNEL, USART_FLAG_RXNE) == SET)
{ {
/* retrieve and store the newly received byte */ /* retrieve and store the newly received byte */
*data = (unsigned char)USART_ReceiveData(USART_CHANNEL); *data = (blt_int8u)USART_ReceiveData(USART_CHANNEL);
/* all done */ /* all done */
return BLT_TRUE; return BLT_TRUE;
} }

View File

@ -103,7 +103,7 @@ void ComInit(void)
void ComTask(void) void ComTask(void)
{ {
/* make xcpCtoReqPacket static for runtime efficiency */ /* make xcpCtoReqPacket static for runtime efficiency */
static unsigned char xcpCtoReqPacket[BOOT_COM_RX_MAX_DATA]; static blt_int8u xcpCtoReqPacket[BOOT_COM_RX_MAX_DATA];
#if (BOOT_COM_CAN_ENABLE > 0) #if (BOOT_COM_CAN_ENABLE > 0)
if (CanReceivePacket(&xcpCtoReqPacket[0]) == BLT_TRUE) if (CanReceivePacket(&xcpCtoReqPacket[0]) == BLT_TRUE)