diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-03-03 11:10:45 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-11 05:52:44 +0000 |
commit | 39327cc4cd80e8f5ba30435d497c666e10cd0054 (patch) | |
tree | 33213c418e5e72177f990ec88f1a6bc882416f10 /chip/stm32/pwm.c | |
parent | 0f73a129b42acfcad843203b602fbbcc8894c614 (diff) | |
download | chrome-ec-39327cc4cd80e8f5ba30435d497c666e10cd0054.tar.gz |
stm32: add support for STM32F0xx family
Add support for the STM32F0xx family of devices using a Cortex-M0 core
and slightly newer peripherals than F1xx family.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=run EC console on STM32F072B Discovery board.
and pass all available unit-tests on target.
Change-Id: Idaa3fcbf1c0da8a8f448c0e88e58bfd976b0a735
Reviewed-on: https://chromium-review.googlesource.com/188983
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/pwm.c')
-rw-r--r-- | chip/stm32/pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/pwm.c b/chip/stm32/pwm.c index b09b9e7da1..19740a42bd 100644 --- a/chip/stm32/pwm.c +++ b/chip/stm32/pwm.c @@ -63,7 +63,7 @@ static void pwm_configure(enum pwm_channel ch) val = *gpio_cr & ~(mask * 0xf); val |= mask * 0x9; *gpio_cr = val; -#else /* stm32l */ +#else /* stm32l or stm32f0 */ gpio_set_alternate_function(gpio->port, gpio->mask, GPIO_ALT_TIM(pwm->tim.id)); #endif |