summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/m16c/m16c_lowputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sh/src/m16c/m16c_lowputc.c')
-rw-r--r--nuttx/arch/sh/src/m16c/m16c_lowputc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/sh/src/m16c/m16c_lowputc.c b/nuttx/arch/sh/src/m16c/m16c_lowputc.c
index 43f9b1946..b5d32d915 100644
--- a/nuttx/arch/sh/src/m16c/m16c_lowputc.c
+++ b/nuttx/arch/sh/src/m16c/m16c_lowputc.c
@@ -38,8 +38,8 @@
**************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
#include <nuttx/arch.h>
#include "up_internal.h"
@@ -221,7 +221,7 @@ static inline int up_txready(void)
#if defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_SUPPRESS_UART_CONFIG)
static inline void up_lowserialsetup(void)
{
- ubyte regval;
+ uint8_t regval;
/* Set the baud rate generator */
@@ -282,7 +282,7 @@ static inline void up_lowserialsetup(void)
/* Read any data left in the RX fifo */
- regval = (ubyte)getreg16(M16C_UART_BASE + M16C_UART_RB);
+ regval = (uint8_t)getreg16(M16C_UART_BASE + M16C_UART_RB);
}
#endif /* HAVE_SERIALCONFIG && !CONFIG_SUPPRESS_UART_CONFIG */
@@ -308,7 +308,7 @@ void up_lowputc(char ch)
/* Write the data to the transmit buffer */
- putreg16((uint16)ch, M16C_UART_BASE + M16C_UART_TB);
+ putreg16((uint16_t))ch, M16C_UART_BASE + M16C_UART_TB);
#endif
}
#endif