clean up warnings

This commit is contained in:
hathach
2013-09-18 23:34:03 +07:00
parent 9d87a1c62b
commit 61c591b9ac
11 changed files with 56 additions and 55 deletions

View File

@@ -108,7 +108,7 @@ int __sys_readc (void)
#elif defined __CC_ARM // keil
#if CFG_PRINTF_TARGET == PRINTF_TARGET_UART
#define retarget_putc(c) board_uart_send(&c, 1);
#define retarget_putc(c) board_uart_send( (uint8_t*) &c, 1);
#elif CFG_PRINTF_TARGET == PRINTF_TARGET_SWO
#define retarget_putc(c) ITM_SendChar(c)
#else
@@ -126,7 +126,7 @@ int fputc(int ch, FILE *f)
if (//CFG_PRINTF_NEWLINE[0] == '\r' &&
ch == '\n')
{
const uint8_t carry = '\r';
uint8_t carry = '\r';
retarget_putc(carry);
}
@@ -140,7 +140,7 @@ void _ttywrch(int ch)
if (//CFG_PRINTF_NEWLINE[0] == '\r' &&
ch == '\n')
{
const uint8_t carry = '\r';
uint8_t carry = '\r';
retarget_putc(carry);
}