mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Thu Jul 02 16:30:08 2015 +0100
Revision:
581:39197bcd20f2
Parent:
532:fe11edbda85c
Child:
613:bc40b8d2aec4
Synchronized with git revision ae2d3cdffe70184eb8736d94f76c45c93f4b7724

Full URL: https://github.com/mbedmicro/mbed/commit/ae2d3cdffe70184eb8736d94f76c45c93f4b7724/

Make it possible to build the core mbed library with yotta

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 532:fe11edbda85c 1 /**
mbed_official 532:fe11edbda85c 2 ******************************************************************************
mbed_official 532:fe11edbda85c 3 * @file stm32f4xx_hal_dcmi_ex.h
mbed_official 532:fe11edbda85c 4 * @author MCD Application Team
mbed_official 532:fe11edbda85c 5 * @version V1.3.0
mbed_official 532:fe11edbda85c 6 * @date 09-March-2015
mbed_official 532:fe11edbda85c 7 * @brief Header file of DCMI Extension HAL module.
mbed_official 532:fe11edbda85c 8 ******************************************************************************
mbed_official 532:fe11edbda85c 9 * @attention
mbed_official 532:fe11edbda85c 10 *
mbed_official 532:fe11edbda85c 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 532:fe11edbda85c 12 *
mbed_official 532:fe11edbda85c 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 532:fe11edbda85c 14 * are permitted provided that the following conditions are met:
mbed_official 532:fe11edbda85c 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 532:fe11edbda85c 16 * this list of conditions and the following disclaimer.
mbed_official 532:fe11edbda85c 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 532:fe11edbda85c 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 532:fe11edbda85c 19 * and/or other materials provided with the distribution.
mbed_official 532:fe11edbda85c 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 532:fe11edbda85c 21 * may be used to endorse or promote products derived from this software
mbed_official 532:fe11edbda85c 22 * without specific prior written permission.
mbed_official 532:fe11edbda85c 23 *
mbed_official 532:fe11edbda85c 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 532:fe11edbda85c 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 532:fe11edbda85c 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 532:fe11edbda85c 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 532:fe11edbda85c 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 532:fe11edbda85c 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 532:fe11edbda85c 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 532:fe11edbda85c 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 532:fe11edbda85c 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 532:fe11edbda85c 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 532:fe11edbda85c 34 *
mbed_official 532:fe11edbda85c 35 ******************************************************************************
mbed_official 532:fe11edbda85c 36 */
mbed_official 532:fe11edbda85c 37
mbed_official 532:fe11edbda85c 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 532:fe11edbda85c 39 #ifndef __STM32F4xx_HAL_DCMI_EX_H
mbed_official 532:fe11edbda85c 40 #define __STM32F4xx_HAL_DCMI_EX_H
mbed_official 532:fe11edbda85c 41
mbed_official 532:fe11edbda85c 42 #ifdef __cplusplus
mbed_official 532:fe11edbda85c 43 extern "C" {
mbed_official 532:fe11edbda85c 44 #endif
mbed_official 532:fe11edbda85c 45
mbed_official 532:fe11edbda85c 46 #if defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) ||\
mbed_official 532:fe11edbda85c 47 defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx)
mbed_official 532:fe11edbda85c 48
mbed_official 532:fe11edbda85c 49 /* Includes ------------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 50 #include "stm32f4xx_hal_def.h"
mbed_official 532:fe11edbda85c 51
mbed_official 532:fe11edbda85c 52
mbed_official 532:fe11edbda85c 53 /** @addtogroup STM32F4xx_HAL_Driver
mbed_official 532:fe11edbda85c 54 * @{
mbed_official 532:fe11edbda85c 55 */
mbed_official 532:fe11edbda85c 56
mbed_official 532:fe11edbda85c 57 /** @addtogroup DCMIEx DCMI Extended
mbed_official 532:fe11edbda85c 58 * @brief DCMI HAL module driver
mbed_official 532:fe11edbda85c 59 * @{
mbed_official 532:fe11edbda85c 60 */
mbed_official 532:fe11edbda85c 61
mbed_official 532:fe11edbda85c 62 /* Exported types ------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 63 /** @defgroup DCMIEx_Exported_Types DCMI Extende Exported Types
mbed_official 532:fe11edbda85c 64 * @{
mbed_official 532:fe11edbda85c 65 */
mbed_official 532:fe11edbda85c 66 /**
mbed_official 532:fe11edbda85c 67 * @brief DCMIEx Embedded Synchronisation CODE Init structure definition
mbed_official 532:fe11edbda85c 68 */
mbed_official 532:fe11edbda85c 69 typedef struct
mbed_official 532:fe11edbda85c 70 {
mbed_official 532:fe11edbda85c 71 uint8_t FrameStartCode; /*!< Specifies the code of the frame start delimiter. */
mbed_official 532:fe11edbda85c 72 uint8_t LineStartCode; /*!< Specifies the code of the line start delimiter. */
mbed_official 532:fe11edbda85c 73 uint8_t LineEndCode; /*!< Specifies the code of the line end delimiter. */
mbed_official 532:fe11edbda85c 74 uint8_t FrameEndCode; /*!< Specifies the code of the frame end delimiter. */
mbed_official 532:fe11edbda85c 75 }DCMI_CodesInitTypeDef;
mbed_official 532:fe11edbda85c 76
mbed_official 532:fe11edbda85c 77 /**
mbed_official 532:fe11edbda85c 78 * @brief DCMI Init structure definition
mbed_official 532:fe11edbda85c 79 */
mbed_official 532:fe11edbda85c 80 typedef struct
mbed_official 532:fe11edbda85c 81 {
mbed_official 532:fe11edbda85c 82 uint32_t SynchroMode; /*!< Specifies the Synchronization Mode: Hardware or Embedded.
mbed_official 532:fe11edbda85c 83 This parameter can be a value of @ref DCMI_Synchronization_Mode */
mbed_official 532:fe11edbda85c 84
mbed_official 532:fe11edbda85c 85 uint32_t PCKPolarity; /*!< Specifies the Pixel clock polarity: Falling or Rising.
mbed_official 532:fe11edbda85c 86 This parameter can be a value of @ref DCMI_PIXCK_Polarity */
mbed_official 532:fe11edbda85c 87
mbed_official 532:fe11edbda85c 88 uint32_t VSPolarity; /*!< Specifies the Vertical synchronization polarity: High or Low.
mbed_official 532:fe11edbda85c 89 This parameter can be a value of @ref DCMI_VSYNC_Polarity */
mbed_official 532:fe11edbda85c 90
mbed_official 532:fe11edbda85c 91 uint32_t HSPolarity; /*!< Specifies the Horizontal synchronization polarity: High or Low.
mbed_official 532:fe11edbda85c 92 This parameter can be a value of @ref DCMI_HSYNC_Polarity */
mbed_official 532:fe11edbda85c 93
mbed_official 532:fe11edbda85c 94 uint32_t CaptureRate; /*!< Specifies the frequency of frame capture: All, 1/2 or 1/4.
mbed_official 532:fe11edbda85c 95 This parameter can be a value of @ref DCMI_Capture_Rate */
mbed_official 532:fe11edbda85c 96
mbed_official 532:fe11edbda85c 97 uint32_t ExtendedDataMode; /*!< Specifies the data width: 8-bit, 10-bit, 12-bit or 14-bit.
mbed_official 532:fe11edbda85c 98 This parameter can be a value of @ref DCMI_Extended_Data_Mode */
mbed_official 532:fe11edbda85c 99
mbed_official 532:fe11edbda85c 100 DCMI_CodesInitTypeDef SyncroCode; /*!< Specifies the code of the frame start delimiter. */
mbed_official 532:fe11edbda85c 101
mbed_official 532:fe11edbda85c 102 uint32_t JPEGMode; /*!< Enable or Disable the JPEG mode.
mbed_official 532:fe11edbda85c 103 This parameter can be a value of @ref DCMI_MODE_JPEG */
mbed_official 532:fe11edbda85c 104 #if defined(STM32F446xx)
mbed_official 532:fe11edbda85c 105 uint32_t ByteSelectMode; /*!< Specifies the data to be captured by the interface
mbed_official 532:fe11edbda85c 106 This parameter can be a value of @ref DCMIEx_Byte_Select_Mode */
mbed_official 532:fe11edbda85c 107
mbed_official 532:fe11edbda85c 108 uint32_t ByteSelectStart; /*!< Specifies if the data to be captured by the interface is even or odd
mbed_official 532:fe11edbda85c 109 This parameter can be a value of @ref DCMIEx_Byte_Select_Start */
mbed_official 532:fe11edbda85c 110
mbed_official 532:fe11edbda85c 111 uint32_t LineSelectMode; /*!< Specifies the line of data to be captured by the interface
mbed_official 532:fe11edbda85c 112 This parameter can be a value of @ref DCMIEx_Line_Select_Mode */
mbed_official 532:fe11edbda85c 113
mbed_official 532:fe11edbda85c 114 uint32_t LineSelectStart; /*!< Specifies if the line of data to be captured by the interface is even or odd
mbed_official 532:fe11edbda85c 115 This parameter can be a value of @ref DCMIEx_Line_Select_Start */
mbed_official 532:fe11edbda85c 116
mbed_official 532:fe11edbda85c 117 #endif /* STM32F446xx */
mbed_official 532:fe11edbda85c 118 }DCMI_InitTypeDef;
mbed_official 532:fe11edbda85c 119
mbed_official 532:fe11edbda85c 120 /**
mbed_official 532:fe11edbda85c 121 * @}
mbed_official 532:fe11edbda85c 122 */
mbed_official 532:fe11edbda85c 123
mbed_official 532:fe11edbda85c 124 /* Exported constants --------------------------------------------------------*/
mbed_official 532:fe11edbda85c 125 #if defined(STM32F446xx)
mbed_official 532:fe11edbda85c 126 /** @defgroup DCMIEx_Exported_Constants DCMI Exported Constants
mbed_official 532:fe11edbda85c 127 * @{
mbed_official 532:fe11edbda85c 128 */
mbed_official 532:fe11edbda85c 129
mbed_official 532:fe11edbda85c 130 /** @defgroup DCMIEx_Byte_Select_Mode DCMI Byte Select Mode
mbed_official 532:fe11edbda85c 131 * @{
mbed_official 532:fe11edbda85c 132 */
mbed_official 532:fe11edbda85c 133 #define DCMI_BSM_ALL ((uint32_t)0x00000000) /*!< Interface captures all received data */
mbed_official 532:fe11edbda85c 134 #define DCMI_BSM_OTHER ((uint32_t)DCMI_CR_BSM_0) /*!< Interface captures every other byte from the received data */
mbed_official 532:fe11edbda85c 135 #define DCMI_BSM_ALTERNATE_4 ((uint32_t)DCMI_CR_BSM_1) /*!< Interface captures one byte out of four */
mbed_official 532:fe11edbda85c 136 #define DCMI_BSM_ALTERNATE_2 ((uint32_t)(DCMI_CR_BSM_0 | DCMI_CR_BSM_1)) /*!< Interface captures two bytes out of four */
mbed_official 532:fe11edbda85c 137
mbed_official 532:fe11edbda85c 138 /**
mbed_official 532:fe11edbda85c 139 * @}
mbed_official 532:fe11edbda85c 140 */
mbed_official 532:fe11edbda85c 141
mbed_official 532:fe11edbda85c 142 /** @defgroup DCMIEx_Byte_Select_Start DCMI Byte Select Start
mbed_official 532:fe11edbda85c 143 * @{
mbed_official 532:fe11edbda85c 144 */
mbed_official 532:fe11edbda85c 145 #define DCMI_OEBS_ODD ((uint32_t)0x00000000) /*!< Interface captures first data from the frame/line start, second one being dropped */
mbed_official 532:fe11edbda85c 146 #define DCMI_OEBS_EVEN ((uint32_t)DCMI_CR_OEBS) /*!< Interface captures second data from the frame/line start, first one being dropped */
mbed_official 532:fe11edbda85c 147
mbed_official 532:fe11edbda85c 148 /**
mbed_official 532:fe11edbda85c 149 * @}
mbed_official 532:fe11edbda85c 150 */
mbed_official 532:fe11edbda85c 151
mbed_official 532:fe11edbda85c 152 /** @defgroup DCMIEx_Line_Select_Mode DCMI Line Select Mode
mbed_official 532:fe11edbda85c 153 * @{
mbed_official 532:fe11edbda85c 154 */
mbed_official 532:fe11edbda85c 155 #define DCMI_LSM_ALL ((uint32_t)0x00000000) /*!< Interface captures all received lines */
mbed_official 532:fe11edbda85c 156 #define DCMI_LSM_ALTERNATE_2 ((uint32_t)DCMI_CR_LSM) /*!< Interface captures one line out of two */
mbed_official 532:fe11edbda85c 157
mbed_official 532:fe11edbda85c 158 /**
mbed_official 532:fe11edbda85c 159 * @}
mbed_official 532:fe11edbda85c 160 */
mbed_official 532:fe11edbda85c 161
mbed_official 532:fe11edbda85c 162 /** @defgroup DCMIEx_Line_Select_Start DCMI Line Select Start
mbed_official 532:fe11edbda85c 163 * @{
mbed_official 532:fe11edbda85c 164 */
mbed_official 532:fe11edbda85c 165 #define DCMI_OELS_ODD ((uint32_t)0x00000000) /*!< Interface captures first line from the frame start, second one being dropped */
mbed_official 532:fe11edbda85c 166 #define DCMI_OELS_EVEN ((uint32_t)DCMI_CR_OELS) /*!< Interface captures second line from the frame start, first one being dropped */
mbed_official 532:fe11edbda85c 167
mbed_official 532:fe11edbda85c 168 /**
mbed_official 532:fe11edbda85c 169 * @}
mbed_official 532:fe11edbda85c 170 */
mbed_official 532:fe11edbda85c 171
mbed_official 532:fe11edbda85c 172 /**
mbed_official 532:fe11edbda85c 173 * @}
mbed_official 532:fe11edbda85c 174 */
mbed_official 532:fe11edbda85c 175
mbed_official 532:fe11edbda85c 176 /* Exported macro ------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 177 /* Exported functions --------------------------------------------------------*/
mbed_official 532:fe11edbda85c 178 /* Private types -------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 179 /* Private variables ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 180 /* Private constants ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 181 /* Private macro -------------------------------------------------------------*/
mbed_official 532:fe11edbda85c 182
mbed_official 532:fe11edbda85c 183 /** @defgroup DCMIEx_Private_Macros DCMI Extended Private Macros
mbed_official 532:fe11edbda85c 184 * @{
mbed_official 532:fe11edbda85c 185 */
mbed_official 532:fe11edbda85c 186 #define IS_DCMI_BYTE_SELECT_MODE(MODE)(((MODE) == DCMI_BSM_ALL) || \
mbed_official 532:fe11edbda85c 187 ((MODE) == DCMI_BSM_OTHER) || \
mbed_official 532:fe11edbda85c 188 ((MODE) == DCMI_BSM_ALTERNATE_4) || \
mbed_official 532:fe11edbda85c 189 ((MODE) == DCMI_BSM_ALTERNATE_2))
mbed_official 532:fe11edbda85c 190
mbed_official 532:fe11edbda85c 191 #define IS_DCMI_BYTE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OEBS_ODD) || \
mbed_official 532:fe11edbda85c 192 ((POLARITY) == DCMI_OEBS_EVEN))
mbed_official 532:fe11edbda85c 193
mbed_official 532:fe11edbda85c 194 #define IS_DCMI_LINE_SELECT_MODE(MODE)(((MODE) == DCMI_LSM_ALL) || \
mbed_official 532:fe11edbda85c 195 ((MODE) == DCMI_LSM_ALTERNATE_2))
mbed_official 532:fe11edbda85c 196
mbed_official 532:fe11edbda85c 197 #define IS_DCMI_LINE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OELS_ODD) || \
mbed_official 532:fe11edbda85c 198 ((POLARITY) == DCMI_OELS_EVEN))
mbed_official 532:fe11edbda85c 199 #endif /* STM32F446xx */
mbed_official 532:fe11edbda85c 200 /**
mbed_official 532:fe11edbda85c 201 * @}
mbed_official 532:fe11edbda85c 202 */
mbed_official 532:fe11edbda85c 203
mbed_official 532:fe11edbda85c 204 /* Private functions ---------------------------------------------------------*/
mbed_official 532:fe11edbda85c 205 #endif /* STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||\
mbed_official 532:fe11edbda85c 206 STM32F429xx || STM32F439xx || STM32F446xx */
mbed_official 532:fe11edbda85c 207 /**
mbed_official 532:fe11edbda85c 208 * @}
mbed_official 532:fe11edbda85c 209 */
mbed_official 532:fe11edbda85c 210
mbed_official 532:fe11edbda85c 211 /**
mbed_official 532:fe11edbda85c 212 * @}
mbed_official 532:fe11edbda85c 213 */
mbed_official 532:fe11edbda85c 214
mbed_official 532:fe11edbda85c 215 #ifdef __cplusplus
mbed_official 532:fe11edbda85c 216 }
mbed_official 532:fe11edbda85c 217 #endif
mbed_official 532:fe11edbda85c 218
mbed_official 532:fe11edbda85c 219 #endif /* __STM32F4xx_HAL_DCMI_H */
mbed_official 532:fe11edbda85c 220
mbed_official 532:fe11edbda85c 221 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/