summaryrefslogtreecommitdiffstats
path: root/bsps/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-10 15:02:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-17 12:58:33 +0200
commit3af1e5e7357930afe252c3a03c1140020b00c5af (patch)
tree85db7a901269086d8a800d6f0d15ff597189c2fb /bsps/shared
parentgrlib: Add apbuart_outbyte_wait() (diff)
downloadrtems-3af1e5e7357930afe252c3a03c1140020b00c5af.tar.bz2
grlib: Fix apbuart_outbyte_polled() prototype
Callers usually want to output a character.
Diffstat (limited to 'bsps/shared')
-rw-r--r--bsps/shared/grlib/uart/apbuart_polled.c2
1 files changed, 1 insertions, 1 deletions
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)