coreboot-libre-fam15h-rdimm/3rdparty/chromeec/chip/stm32/stm32-dma.h

17 lines
609 B
C
Raw Normal View History

2024-03-04 11:14:53 +01:00
/* 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);