diff options
Diffstat (limited to 'c/src/lib/libbsp/shared/include/uart-output-char.h')
-rw-r--r-- | c/src/lib/libbsp/shared/include/uart-output-char.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/include/uart-output-char.h b/c/src/lib/libbsp/shared/include/uart-output-char.h index 4242901db4..a6648d1ad4 100644 --- a/c/src/lib/libbsp/shared/include/uart-output-char.h +++ b/c/src/lib/libbsp/shared/include/uart-output-char.h @@ -51,8 +51,8 @@ CONSOLE_LCR = 0x00; \ CONSOLE_IER = 0x00; \ CONSOLE_LCR = 0x80; \ - CONSOLE_DLL = (dll); \ - CONSOLE_DLM = 0x00; \ + CONSOLE_DLL = (dll & 0xFF); \ + CONSOLE_DLM = (dll >> 8); \ CONSOLE_LCR = 0x03; \ CONSOLE_FCR = 0x07; \ } while (0) |