more with -Wcast-qual
This commit is contained in:
+7
-2
@@ -101,9 +101,14 @@ int board_uart_read(uint8_t* buf, int len)
|
||||
int board_uart_write(void const * buf, int len)
|
||||
{
|
||||
int32_t offset = 0;
|
||||
uint8_t const* buf8 = (uint8_t const*) buf;
|
||||
for (offset = 0; offset < len; offset++)
|
||||
if (! (messible_status_read() & CSR_MESSIBLE_STATUS_FULL_OFFSET))
|
||||
messible_in_write(((uint8_t *)buf)[offset]);
|
||||
{
|
||||
if (!(messible_status_read() & CSR_MESSIBLE_STATUS_FULL_OFFSET))
|
||||
{
|
||||
messible_in_write(buf8[offset]);
|
||||
}
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user