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/dma.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/dma.c')
-rw-r--r-- | chip/stm32/dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c index f6dfd89aa8..71fa4e22f1 100644 --- a/chip/stm32/dma.c +++ b/chip/stm32/dma.c @@ -238,6 +238,7 @@ void dma_clear_isr(enum dma_channel channel) dma->ifcr |= STM32_DMA_ISR_ALL(channel); } +#ifndef CHIP_FAMILY_STM32F0 void dma_event_interrupt_channel_4(void) { dma_clear_isr(STM32_DMAC_CH4); @@ -269,3 +270,4 @@ void dma_event_interrupt_channel_7(void) task_wake(id[STM32_DMAC_CH7]); } DECLARE_IRQ(STM32_IRQ_DMA_CHANNEL_7, dma_event_interrupt_channel_7, 3); +#endif /* !CHIP_FAMILY_STM32F0 */ |