summaryrefslogtreecommitdiff
path: root/cpu/arm920t/at91rm9200/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm920t/at91rm9200/serial.c')
-rw-r--r--cpu/arm920t/at91rm9200/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/arm920t/at91rm9200/serial.c b/cpu/arm920t/at91rm9200/serial.c
index b529cfa..a281932 100644
--- a/cpu/arm920t/at91rm9200/serial.c
+++ b/cpu/arm920t/at91rm9200/serial.c
@@ -56,7 +56,7 @@ void serial_setbrg (void)
if ((baudrate = gd->baudrate) <= 0)
baudrate = CONFIG_BAUDRATE;
/* MASTER_CLOCK/(16 * baudrate) */
- us->US_BRGR = (AT91C_MASTER_CLOCK >> 4)/baudrate;
+ us->US_BRGR = (AT91C_MASTER_CLOCK >> 4) / (unsigned)baudrate;
}
int serial_init (void)