[PATCH 6/7] grlib: Fix apbuart_outbyte_polled()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 10 13:24:05 UTC 2021
Callers usually want to output a character.
---
bsps/include/grlib/apbuart.h | 2 +-
bsps/shared/grlib/uart/apbuart_polled.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/include/grlib/apbuart.h b/bsps/include/grlib/apbuart.h
index 68bcf1bffa..f54689abc2 100644
--- a/bsps/include/grlib/apbuart.h
+++ b/bsps/include/grlib/apbuart.h
@@ -64,7 +64,7 @@ extern "C" {
void apbuart_outbyte_wait(const struct apbuart_regs *regs);
-void apbuart_outbyte_polled(struct apbuart_regs *regs, unsigned char ch);
+void apbuart_outbyte_polled(struct apbuart_regs *regs, char ch);
int apbuart_inbyte_nonblocking(struct apbuart_regs *regs);
diff --git a/bsps/shared/grlib/uart/apbuart_polled.c b/bsps/shared/grlib/uart/apbuart_polled.c
index 8a596808b2..587dacc731 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 = (unsigned char) ch;
}
int apbuart_inbyte_nonblocking(struct apbuart_regs *regs)
--
2.26.2
More information about the devel
mailing list