Anton Staaf 0bd3a932db stm32: change USART register macros to take a base address
Previously these macros took a small integer to identify the USART
to access.  This integer was token concatenated to form the macro
name that resolved to the base address.  This made it imposible to
use these macros in a driver that could manage more than one USART
because there was no runtime way to go from base address (or other
unique identifier) to register address.

This change makes it possible to pass either a static compile time
known base address or a runtime variable with the base address,
thus supporting either sort of driver.  The existing USART driver
has been updated to compute the base address of the console USART
and pass that at compile time, resulting in no increase in code
size.

Signed-off-by: Anton Staaf <robotboy@chromium.org>

BRANCH=none
TEST=make buildall -j
     Followed by manual testing of console over UART functionality
     on the STM32F072 based discovery board.

Change-Id: I06547a173b1e5cf625a57019ea4b8a84d1768444
Reviewed-on: https://chromium-review.googlesource.com/208488
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
2014-07-17 06:52:15 +00:00
2014-07-17 00:40:23 +00:00
2014-07-10 21:17:58 +00:00
2014-06-05 23:14:34 +00:00
2014-07-17 00:40:23 +00:00
2014-07-16 19:22:11 +00:00
2014-03-31 22:45:09 +00:00
2012-05-11 09:11:52 -07:00
2014-06-18 06:08:45 +00:00
2014-04-02 19:58:53 +00:00
2014-05-15 05:20:14 +00:00

For an overview of the Embedded Controller firmware, refer to

http://www.chromium.org/chromium-os/2014-firmware-summit
Description
No description provided
Readme 1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%