+++ /dev/null
-/**\r
- ******************************************************************************\r
- * @file stm32f7xx.h\r
- * @author MCD Application Team\r
- * @version V0.3.0\r
- * @date 06-March-2015\r
- * @brief CMSIS STM32F7xx Device Peripheral Access Layer Header File. \r
- * \r
- * The file is the unique include file that the application programmer\r
- * is using in the C source code, usually in main.c. This file contains:\r
- * - Configuration section that allows to select:\r
- * - The STM32F7xx device used in the target application\r
- * - To use or not the peripheral\92s drivers in application code(i.e. \r
- * code will be based on direct access to peripheral\92s registers \r
- * rather than drivers API), this option is controlled by \r
- * "#define USE_HAL_DRIVER"\r
- * \r
- ******************************************************************************\r
- * @attention\r
- *\r
- * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2>\r
- *\r
- * Redistribution and use in source and binary forms, with or without modification,\r
- * are permitted provided that the following conditions are met:\r
- * 1. Redistributions of source code must retain the above copyright notice,\r
- * this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright notice,\r
- * this list of conditions and the following disclaimer in the documentation\r
- * and/or other materials provided with the distribution.\r
- * 3. Neither the name of STMicroelectronics nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\r
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- ******************************************************************************\r
- */\r
-\r
-/** @addtogroup CMSIS\r
- * @{\r
- */\r
-\r
-/** @addtogroup stm32f7xx\r
- * @{\r
- */\r
- \r
-#ifndef __STM32F7xx_H\r
-#define __STM32F7xx_H\r
-\r
-#ifdef __cplusplus\r
- extern "C" {\r
-#endif /* __cplusplus */\r
- \r
-/** @addtogroup Library_configuration_section\r
- * @{\r
- */\r
-\r
-/**\r
- * @brief STM32 Family\r
- */\r
-#if !defined (STM32F7)\r
-#define STM32F7\r
-#endif /* STM32F7 */\r
-\r
-/* Uncomment the line below according to the target STM32 device used in your\r
- application \r
- */\r
-#if !defined (STM32F756xx) && !defined (STM32F746xx)\r
- /* #define STM32F756xx */ /*!< STM32F756VI, STM32F756VG, STM32F756ZG, STM32F756ZI, STM32F756IG, STM32F756II,\r
- STM32F756BG, STM32F756BI, STM32F756NI, STM32F756NG Devices */\r
- /* #define STM32F746xx */ /*!< STM32F746VI, STM32F746VG, STM32F746ZG, STM32F746ZI, STM32F746IG, STM32F746II,\r
- STM32F746BG, STM32F746BI, STM32F746NI, STM32F746NG Devices */\r
-#endif\r
-\r
-/* Tip: To avoid modifying this file each time you need to switch between these\r
- devices, you can define the device in your toolchain compiler preprocessor.\r
- */\r
-\r
-#if !defined (USE_HAL_DRIVER)\r
-/**\r
- * @brief Comment the line below if you will not use the peripherals drivers.\r
- In this case, these drivers will not be included and the application code will \r
- be based on direct access to peripherals registers \r
- */\r
- /*#define USE_HAL_DRIVER */\r
-#endif /* USE_HAL_DRIVER */\r
-\r
-/**\r
- * @brief CMSIS Device version number V0.2.0\r
- */\r
-#define __STM32F7xx_CMSIS_DEVICE_VERSION_MAIN (0x00) /*!< [31:24] main version */\r
-#define __STM32F7xx_CMSIS_DEVICE_VERSION_SUB1 (0x02) /*!< [23:16] sub1 version */\r
-#define __STM32F7xx_CMSIS_DEVICE_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */\r
-#define __STM32F7xx_CMSIS_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */ \r
-#define __STM32F7xx_CMSIS_DEVICE_VERSION ((__STM32F7xx_CMSIS_DEVICE_VERSION_MAIN << 24)\\r
- |(__STM32F7xx_CMSIS_DEVICE_VERSION_SUB1 << 16)\\r
- |(__STM32F7xx_CMSIS_DEVICE_VERSION_SUB2 << 8 )\\r
- |(__STM32F7xx_CMSIS_DEVICE_VERSION))\r
-/**\r
- * @}\r
- */\r
-\r
-/** @addtogroup Device_Included\r
- * @{\r
- */\r
-#if defined(STM32F756xx)\r
- #include "stm32f756xx.h"\r
-#elif defined(STM32F746xx)\r
- #include "stm32f746xx.h"\r
-#else\r
- #error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"\r
-#endif\r
-\r
-/**\r
- * @}\r
- */\r
-\r
-/** @addtogroup Exported_types\r
- * @{\r
- */ \r
-typedef enum \r
-{\r
- RESET = 0, \r
- SET = !RESET\r
-} FlagStatus, ITStatus;\r
-\r
-typedef enum \r
-{\r
- DISABLE = 0, \r
- ENABLE = !DISABLE\r
-} FunctionalState;\r
-#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))\r
-\r
-typedef enum \r
-{\r
- ERROR = 0, \r
- SUCCESS = !ERROR\r
-} ErrorStatus;\r
-\r
-/**\r
- * @}\r
- */\r
- \r
-/** @addtogroup Exported_macro\r
- * @{\r
- */\r
-#define SET_BIT(REG, BIT) ((REG) |= (BIT))\r
-\r
-#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))\r
-\r
-#define READ_BIT(REG, BIT) ((REG) & (BIT))\r
-\r
-#define CLEAR_REG(REG) ((REG) = (0x0))\r
-\r
-#define WRITE_REG(REG, VAL) ((REG) = (VAL))\r
-\r
-#define READ_REG(REG) ((REG))\r
-\r
-#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))\r
-\r
-#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) \r
-\r
-/**\r
- * @}\r
- */\r
-\r
-#ifdef USE_HAL_DRIVER\r
- #include "stm32f7xx_hal_conf.h"\r
-#endif /* USE_HAL_DRIVER */\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif /* __cplusplus */\r
-\r
-#endif /* __STM32F7xx_H */\r
-\r
-/**\r
- * @}\r
- */\r
-\r
- /**\r
- * @}\r
- */\r
-\r
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r