Fix some compile warnings and update document (#670)

And implement clock_gettime wrapper for libc-built.
This commit is contained in:
Wenyong Huang
2021-07-22 19:39:53 +08:00
committed by GitHub
parent 04e7afe55d
commit 28f104036c
5 changed files with 35 additions and 11 deletions

View File

@ -27,7 +27,8 @@ extern int aee_host_msg_callback(void *msg, uint32_t msg_len);
int uart_char_cnt = 0;
static void uart_irq_callback(struct device *dev)
static void uart_irq_callback(const struct device *dev,
void *user_data)
{
unsigned char ch;
@ -35,9 +36,10 @@ static void uart_irq_callback(struct device *dev)
uart_char_cnt++;
aee_host_msg_callback(&ch, 1);
}
(void)user_data;
}
struct device *uart_dev = NULL;
const struct device *uart_dev = NULL;
static bool host_init()
{