ChibiOS/RT Architecture - Reference Manual - Guides |
00001 /* 00002 ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio. 00003 00004 This file is part of ChibiOS/RT. 00005 00006 ChibiOS/RT is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 ChibiOS/RT is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 00019 --- 00020 00021 A special exception to the GPL can be applied should you wish to distribute 00022 a combined work that includes ChibiOS/RT, without being obliged to provide 00023 the source code for any proprietary components. See the file exception.txt 00024 for full details of how and when the exception can be applied. 00025 */ 00026 00027 /** 00028 * @file stm32_dma.h 00029 * @brief STM32 DMA helper driver header. 00030 * 00031 * @addtogroup STM32_DMA 00032 * @{ 00033 */ 00034 00035 #ifndef _STM32_DMA_H_ 00036 #define _STM32_DMA_H_ 00037 00038 /*===========================================================================*/ 00039 /* Driver constants. */ 00040 /*===========================================================================*/ 00041 00042 /** @brief DMA1 identifier.*/ 00043 #define DMA1_ID 0 00044 00045 /** @brief DMA2 identifier.*/ 00046 #if defined(STM32F10X_HD) || defined (STM32F10X_CL) || defined(__DOXYGEN__) 00047 #define DMA2_ID 1 00048 #endif 00049 00050 /*===========================================================================*/ 00051 /* Driver pre-compile time settings. */ 00052 /*===========================================================================*/ 00053 00054 /*===========================================================================*/ 00055 /* Derived constants and error checks. */ 00056 /*===========================================================================*/ 00057 00058 /*===========================================================================*/ 00059 /* Driver data structures and types. */ 00060 /*===========================================================================*/ 00061 00062 /*===========================================================================*/ 00063 /* Driver macros. */ 00064 /*===========================================================================*/ 00065 00066 /*===========================================================================*/ 00067 /* External declarations. */ 00068 /*===========================================================================*/ 00069 00070 #ifdef __cplusplus 00071 extern "C" { 00072 #endif 00073 void dmaInit(void); 00074 void dmaEnable(uint32_t dma); 00075 void dmaDisable(uint32_t dma); 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 00080 #endif /* _STM32_DMA_H_ */ 00081 00082 /** @} */