From 3af1e5e7357930afe252c3a03c1140020b00c5af Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Jun 2021 15:02:36 +0200 Subject: grlib: Fix apbuart_outbyte_polled() prototype Callers usually want to output a character. --- bsps/shared/grlib/uart/apbuart_polled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsps/shared') diff --git a/bsps/shared/grlib/uart/apbuart_polled.c b/bsps/shared/grlib/uart/apbuart_polled.c index 8a596808b2..bf23e3a892 100644 --- a/bsps/shared/grlib/uart/apbuart_polled.c +++ b/bsps/shared/grlib/uart/apbuart_polled.c @@ -29,7 +29,7 @@ void apbuart_outbyte_wait(const struct apbuart_regs *regs) void apbuart_outbyte_polled(struct apbuart_regs *regs, char ch) { apbuart_outbyte_wait(regs); - regs->data = (unsigned int) ch; + regs->data = (uint8_t) ch; } int apbuart_inbyte_nonblocking(struct apbuart_regs *regs) -- cgit v1.2.3