diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-07-21 09:46:06 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-21 22:36:28 +0000 |
commit | 6051f2852767a617f2a66399a9c07e94043ca95a (patch) | |
tree | c1d9ae3895401d3efc3eeb65ca05e647e963bade /board/discovery-stm32f072/board.h | |
parent | 048436c6d33bc78d5fd3934a527e1e9e8ef1fcc6 (diff) | |
download | chrome-ec-6051f2852767a617f2a66399a9c07e94043ca95a.tar.gz |
Discovery: Add Forward and Loopback USART configurations
Add example uses of the multi USART driver with DMA transmission and interrupt
based reception. USART1 is setup as a loopback device, it just echo's any
characters received. USART4 is forwarded over USB.
Also fix the alternate function mappings for USART3 and USART4, and add
comments for each section of board.c.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Crosswire USART1 to USART4 and cut and paste chunks of text over USB
Change-Id: I79170c78e61328caf8067ae8db8810db38880839
Reviewed-on: https://chromium-review.googlesource.com/287195
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'board/discovery-stm32f072/board.h')
-rw-r--r-- | board/discovery-stm32f072/board.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/board/discovery-stm32f072/board.h b/board/discovery-stm32f072/board.h index e1eb11130e..ef839bfc49 100644 --- a/board/discovery-stm32f072/board.h +++ b/board/discovery-stm32f072/board.h @@ -14,7 +14,6 @@ /* Enable USART1,3,4 and USB streams */ #define CONFIG_STREAM_USART #define CONFIG_STREAM_USART1 -#define CONFIG_STREAM_USART3 #define CONFIG_STREAM_USART4 #define CONFIG_STREAM_USB |