diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-01-27 23:10:25 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-01-31 22:29:13 +0000 |
commit | e3edad44599ed0f66b46c110b6a0b8abc51e671c (patch) | |
tree | 0bc3c1bd4e1b3d46ecc7a1de8e80a1b0c852e96b /board/discovery/board.h | |
parent | df1d8933223817b4b5afe33101e939ff243aa9f6 (diff) | |
download | chrome-ec-e3edad44599ed0f66b46c110b6a0b8abc51e671c.tar.gz |
stm32l: add UART driver
simple UART driver to get the serial console on the USART3.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=run on Discovery board and check we get the first message on the
UART and the console is echoing the characters.
Change-Id: Id85999a5ddbd75804e9317a1b8c2fd4afb89eb38
Diffstat (limited to 'board/discovery/board.h')
-rw-r--r-- | board/discovery/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/discovery/board.h b/board/discovery/board.h index 48a1e280da..42365cacf2 100644 --- a/board/discovery/board.h +++ b/board/discovery/board.h @@ -11,6 +11,9 @@ /* 16 MHz SYSCLK clock frequency */ #define CPU_CLOCK 16000000 +/* Use USART3 as console serial port */ +#define CONFIG_CONSOLE_UART 3 + #define USB_CHARGE_PORT_COUNT 0 /* GPIO signal list */ |