diff options
author | Vic Yang <victoryang@chromium.org> | 2013-09-10 17:55:02 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-11 19:45:38 +0000 |
commit | eff7a1910a60b1d30b10257fd4a12b5ed1402594 (patch) | |
tree | d604e3ec704575a5bdbedc7f172ed062586cdf12 /include/gpio.h | |
parent | 876d4c0031ce0d277f23eb08760c83b854038064 (diff) | |
download | chrome-ec-eff7a1910a60b1d30b10257fd4a12b5ed1402594.tar.gz |
Support multi-bit mask in STM32L's GPIO functions
The definition of GPIO interface allows passing in multi-bit mask, and
this is what's done by gpio_config_module(). Fix STM32L's function so
that it doesn't accidentally set incorrect GPIO register values.
BUG=chrome-os-partner:22605
TEST=On Kirby, do 'led r 0' and check the value of 0x40020800 is
0x01540000.
BRANCH=None
Change-Id: I9a1c8074aab7345485a590ecf138bf99d0742997
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/168739
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/gpio.h')
-rw-r--r-- | include/gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpio.h b/include/gpio.h index ce2de2b126..ac25ee8d39 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -193,6 +193,6 @@ void gpio_set_flags_by_mask(uint32_t port, uint32_t mask, uint32_t flags); * @param func Alternate function; if <0, configures the specified * GPIOs for normal GPIO operation. */ -void gpio_set_alternate_function(int port, int mask, int func); +void gpio_set_alternate_function(uint32_t port, uint32_t mask, int func); #endif /* __CROS_EC_GPIO_H */ |