diff options
Diffstat (limited to 'chip/stm32/stm32-dma.h')
-rw-r--r-- | chip/stm32/stm32-dma.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chip/stm32/stm32-dma.h b/chip/stm32/stm32-dma.h new file mode 100644 index 0000000000..06233b9c93 --- /dev/null +++ b/chip/stm32/stm32-dma.h @@ -0,0 +1,16 @@ +/* Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/** + * Select DMA stream-channel mapping + * + * This selects which stream (peripheral) to be used on a specific channel. + * Some STM32 chips simply logically OR requests, thus do not require this + * selection. + * + * @param channel: (Global) channel # base 0 (Note some STM32s use base 1) + * @param peripheral: Refer to the TRM for 'peripheral request signals' + */ +void dma_select_channel(enum dma_channel channel, unsigned char stream); |