diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-10 15:02:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-17 12:58:33 +0200 |
commit | 3af1e5e7357930afe252c3a03c1140020b00c5af (patch) | |
tree | 85db7a901269086d8a800d6f0d15ff597189c2fb /bsps/shared/grlib/uart/apbuart_polled.c | |
parent | grlib: Add apbuart_outbyte_wait() (diff) | |
download | rtems-3af1e5e7357930afe252c3a03c1140020b00c5af.tar.bz2 |
grlib: Fix apbuart_outbyte_polled() prototype
Callers usually want to output a character.
Diffstat (limited to 'bsps/shared/grlib/uart/apbuart_polled.c')
-rw-r--r-- | bsps/shared/grlib/uart/apbuart_polled.c | 2 |
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) |