mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 04:48:59 +08:00
grlib: Fix apbuart_outbyte_polled() prototype
Callers usually want to output a character.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user