Patched for Audio example - Add status check when DFSDM's filter and channel de-init.

Dependents:   DISCO_F413ZH-AUDIO-demo

The base repository is https://os.mbed.com/teams/ST/code/BSP_DISCO_F413ZH/. I've just added workaround patch for Audio-in demo on DISCO_F413ZH board(Microphone U16, U17)

Committer:
Daniel_Lee
Date:
Fri Jan 31 07:17:05 2020 +0000
Revision:
4:c051317d4051
Parent:
3:42b354f5069c
Patched for Audio example;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arostm 0:4af3ca173992 1 /**
arostm 0:4af3ca173992 2 ******************************************************************************
arostm 0:4af3ca173992 3 * @file stm32f413h_discovery.h
arostm 0:4af3ca173992 4 * @author MCD Application Team
arostm 0:4af3ca173992 5 * @brief This file contains definitions for STM32F413H_DISCOVERY's LEDs,
arostm 0:4af3ca173992 6 * push-buttons and COM ports hardware resources.
arostm 0:4af3ca173992 7 ******************************************************************************
arostm 0:4af3ca173992 8 * @attention
arostm 0:4af3ca173992 9 *
arostm 0:4af3ca173992 10 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
arostm 0:4af3ca173992 11 *
arostm 0:4af3ca173992 12 * Redistribution and use in source and binary forms, with or without modification,
arostm 0:4af3ca173992 13 * are permitted provided that the following conditions are met:
arostm 0:4af3ca173992 14 * 1. Redistributions of source code must retain the above copyright notice,
arostm 0:4af3ca173992 15 * this list of conditions and the following disclaimer.
arostm 0:4af3ca173992 16 * 2. Redistributions in binary form must reproduce the above copyright notice,
arostm 0:4af3ca173992 17 * this list of conditions and the following disclaimer in the documentation
arostm 0:4af3ca173992 18 * and/or other materials provided with the distribution.
arostm 0:4af3ca173992 19 * 3. Neither the name of STMicroelectronics nor the names of its contributors
arostm 0:4af3ca173992 20 * may be used to endorse or promote products derived from this software
arostm 0:4af3ca173992 21 * without specific prior written permission.
arostm 0:4af3ca173992 22 *
arostm 0:4af3ca173992 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
arostm 0:4af3ca173992 24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
arostm 0:4af3ca173992 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
arostm 0:4af3ca173992 26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
arostm 0:4af3ca173992 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
arostm 0:4af3ca173992 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
arostm 0:4af3ca173992 29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
arostm 0:4af3ca173992 30 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
arostm 0:4af3ca173992 31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
arostm 0:4af3ca173992 32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
arostm 0:4af3ca173992 33 *
arostm 0:4af3ca173992 34 ******************************************************************************
arostm 0:4af3ca173992 35 */
arostm 0:4af3ca173992 36
arostm 0:4af3ca173992 37 /* Define to prevent recursive inclusion -------------------------------------*/
arostm 0:4af3ca173992 38 #ifndef __STM32F413H_DISCOVERY_H
arostm 0:4af3ca173992 39 #define __STM32F413H_DISCOVERY_H
arostm 0:4af3ca173992 40
arostm 0:4af3ca173992 41 #ifdef __cplusplus
arostm 0:4af3ca173992 42 extern "C" {
arostm 0:4af3ca173992 43 #endif
arostm 0:4af3ca173992 44
arostm 0:4af3ca173992 45 /* Includes ------------------------------------------------------------------*/
arostm 0:4af3ca173992 46 #include "stm32f4xx_hal.h"
arostm 0:4af3ca173992 47
arostm 0:4af3ca173992 48 /** @addtogroup BSP
arostm 0:4af3ca173992 49 * @{
arostm 0:4af3ca173992 50 */
arostm 0:4af3ca173992 51
arostm 0:4af3ca173992 52 /** @addtogroup STM32F413H_DISCOVERY
arostm 0:4af3ca173992 53 * @{
arostm 0:4af3ca173992 54 */
arostm 0:4af3ca173992 55
arostm 0:4af3ca173992 56 /** @addtogroup STM32F413H_DISCOVERY_LOW_LEVEL
arostm 0:4af3ca173992 57 * @{
arostm 0:4af3ca173992 58 */
arostm 0:4af3ca173992 59
arostm 0:4af3ca173992 60 /** @defgroup STM32F413H_DISCOVERY_LOW_LEVEL_Exported_Types STM32F413H DISCOVERY Low Level Exported Types
arostm 0:4af3ca173992 61 * @{
arostm 0:4af3ca173992 62 */
arostm 0:4af3ca173992 63 typedef enum
arostm 0:4af3ca173992 64 {
arostm 1:a3f6b8b5a6bf 65 DISCO_LED3 = 0, //Patch for mbed
arostm 1:a3f6b8b5a6bf 66 LED_GREEN = DISCO_LED3, //Patch for mbed
arostm 1:a3f6b8b5a6bf 67 DISCO_LED4 = 1, //Patch for mbed
arostm 1:a3f6b8b5a6bf 68 DISCO_LED_RED = DISCO_LED4, //Patch for mbed
arostm 0:4af3ca173992 69 }Led_TypeDef;
arostm 0:4af3ca173992 70
arostm 0:4af3ca173992 71
arostm 0:4af3ca173992 72 typedef enum
arostm 0:4af3ca173992 73 {
arostm 0:4af3ca173992 74 BUTTON_WAKEUP = 0
arostm 0:4af3ca173992 75 }Button_TypeDef;
arostm 0:4af3ca173992 76
arostm 0:4af3ca173992 77 typedef enum
arostm 0:4af3ca173992 78 {
arostm 0:4af3ca173992 79 BUTTON_MODE_GPIO = 0,
arostm 0:4af3ca173992 80 BUTTON_MODE_EXTI = 1
arostm 0:4af3ca173992 81 }ButtonMode_TypeDef;
arostm 0:4af3ca173992 82
arostm 0:4af3ca173992 83 typedef enum
arostm 0:4af3ca173992 84 {
arostm 0:4af3ca173992 85 COM1 = 0,
arostm 0:4af3ca173992 86 }COM_TypeDef;
arostm 0:4af3ca173992 87 /**
arostm 0:4af3ca173992 88 * @}
arostm 0:4af3ca173992 89 */
arostm 0:4af3ca173992 90
arostm 0:4af3ca173992 91 /** @defgroup STM32F413H_DISCOVERY_LOW_LEVEL_Exported_Constants STM32F413H DISCOVERY Low Level Exported Constants
arostm 0:4af3ca173992 92 * @{
arostm 0:4af3ca173992 93 */
arostm 0:4af3ca173992 94
arostm 0:4af3ca173992 95 /**
arostm 0:4af3ca173992 96 * @brief Define for STM32F413H_DISCOVERY board
arostm 0:4af3ca173992 97 */
arostm 0:4af3ca173992 98 #if !defined (USE_STM32F413H_DISCOVERY)
arostm 0:4af3ca173992 99 #define USE_STM32F413H_DISCOVERY
arostm 0:4af3ca173992 100 #endif
arostm 0:4af3ca173992 101
arostm 0:4af3ca173992 102 /** @addtogroup STM32F413H_DISCOVERY_LOW_LEVEL_LED STM32F413H DISCOVERY Low Level Led
arostm 0:4af3ca173992 103 * @{
arostm 0:4af3ca173992 104 */
arostm 0:4af3ca173992 105 #define LEDn ((uint8_t)2)
arostm 0:4af3ca173992 106
arostm 0:4af3ca173992 107 #define LED4_GPIO_PORT GPIOE
arostm 0:4af3ca173992 108 #define LED4_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE()
arostm 0:4af3ca173992 109 #define LED4_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE()
arostm 0:4af3ca173992 110
arostm 0:4af3ca173992 111 #define LED3_GPIO_PORT GPIOC
arostm 0:4af3ca173992 112 #define LED3_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE()
arostm 0:4af3ca173992 113 #define LED3_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE()
arostm 0:4af3ca173992 114
arostm 0:4af3ca173992 115 #define LED4_PIN GPIO_PIN_3
arostm 0:4af3ca173992 116 #define LED3_PIN GPIO_PIN_5
arostm 0:4af3ca173992 117
arostm 0:4af3ca173992 118 #define LEDx_GPIO_CLK_ENABLE(__INDEX__) do{if((__INDEX__) == 0) LED3_GPIO_CLK_ENABLE(); else \
arostm 0:4af3ca173992 119 if((__INDEX__) == 1) LED4_GPIO_CLK_ENABLE(); \
arostm 0:4af3ca173992 120 }while(0)
arostm 0:4af3ca173992 121
arostm 0:4af3ca173992 122 #define LEDx_GPIO_CLK_DISABLE(__INDEX__) do{if((__INDEX__) == 0) LED3_GPIO_CLK_DISABLE(); else \
arostm 0:4af3ca173992 123 if((__INDEX__) == 1) LED4_GPIO_CLK_DISABLE(); \
arostm 0:4af3ca173992 124 }while(0)
arostm 0:4af3ca173992 125 /**
arostm 0:4af3ca173992 126 * @}
arostm 0:4af3ca173992 127 */
arostm 0:4af3ca173992 128
arostm 0:4af3ca173992 129 /** @addtogroup STM32F413H_DISCOVERY_LOW_LEVEL_BUTTON STM32F413H DISCOVERY Low Level Button
arostm 0:4af3ca173992 130 * @{
arostm 0:4af3ca173992 131 */
arostm 0:4af3ca173992 132 /* Only one User/Wakeup button */
arostm 0:4af3ca173992 133 #define BUTTONn ((uint8_t)1)
arostm 0:4af3ca173992 134
arostm 0:4af3ca173992 135 /**
arostm 0:4af3ca173992 136 * @brief Wakeup push-button
arostm 0:4af3ca173992 137 */
arostm 0:4af3ca173992 138 #define WAKEUP_BUTTON_PIN GPIO_PIN_0
arostm 0:4af3ca173992 139 #define WAKEUP_BUTTON_GPIO_PORT GPIOA
arostm 0:4af3ca173992 140 #define WAKEUP_BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE()
arostm 0:4af3ca173992 141 #define WAKEUP_BUTTON_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE()
arostm 0:4af3ca173992 142 #define WAKEUP_BUTTON_EXTI_IRQn EXTI0_IRQn
arostm 0:4af3ca173992 143
arostm 0:4af3ca173992 144 /**
arostm 0:4af3ca173992 145 * @}
arostm 0:4af3ca173992 146 */
arostm 0:4af3ca173992 147
arostm 0:4af3ca173992 148 /** @addtogroup STM32F413H_DISCOVERY_LOW_LEVEL_SIGNAL
arostm 0:4af3ca173992 149 * @{
arostm 0:4af3ca173992 150 */
arostm 0:4af3ca173992 151 /**
arostm 0:4af3ca173992 152 * @brief SD-detect signal
arostm 0:4af3ca173992 153 */
arostm 0:4af3ca173992 154 #define SD_DETECT_PIN GPIO_PIN_11
arostm 0:4af3ca173992 155 #define SD_DETECT_GPIO_PORT GPIOF
arostm 0:4af3ca173992 156 #define SD_DETECT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOF_CLK_ENABLE()
arostm 0:4af3ca173992 157 #define SD_DETECT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOF_CLK_DISABLE()
arostm 0:4af3ca173992 158 #define SD_DETECT_EXTI_IRQn EXTI15_10_IRQn
arostm 0:4af3ca173992 159
arostm 0:4af3ca173992 160
arostm 0:4af3ca173992 161 /**
arostm 0:4af3ca173992 162 * @brief TS INT pin
arostm 0:4af3ca173992 163 */
arostm 0:4af3ca173992 164 #define TS_INT_PIN GPIO_PIN_1
arostm 0:4af3ca173992 165 #define TS_INT_GPIO_PORT GPIOC
arostm 0:4af3ca173992 166 #define TS_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE()
arostm 0:4af3ca173992 167 #define TS_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE()
arostm 0:4af3ca173992 168 #define TS_INT_EXTI_IRQn EXTI1_IRQn
arostm 0:4af3ca173992 169
arostm 0:4af3ca173992 170 /**
arostm 0:4af3ca173992 171 * @brief TS RST pin
arostm 0:4af3ca173992 172 */
arostm 0:4af3ca173992 173 #define TS_RESET_PIN GPIO_PIN_13
arostm 0:4af3ca173992 174 #define TS_RESET_GPIO_PORT GPIOB
arostm 0:4af3ca173992 175 #define TS_RESET_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
arostm 0:4af3ca173992 176 #define TS_RESET_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE()
arostm 0:4af3ca173992 177 #define TS_RESET_EXTI_IRQn EXTI15_10_IRQn
arostm 0:4af3ca173992 178
arostm 0:4af3ca173992 179 /**
arostm 0:4af3ca173992 180 * @}
arostm 0:4af3ca173992 181 */
arostm 0:4af3ca173992 182
arostm 0:4af3ca173992 183 /** @addtogroup STM32F413H_DISCOVERY_LOW_LEVEL_COM STM32F413H DISCOVERY Low Level COM
arostm 0:4af3ca173992 184 * @{
arostm 0:4af3ca173992 185 */
arostm 0:4af3ca173992 186 #define COMn ((uint8_t)1)
arostm 0:4af3ca173992 187
arostm 0:4af3ca173992 188 /**
arostm 0:4af3ca173992 189 * @brief Definition for COM port1, connected to USART6
arostm 0:4af3ca173992 190 */
arostm 0:4af3ca173992 191 #define DISCOVERY_COM1 USART6
arostm 0:4af3ca173992 192 #define DISCOVERY_COM1_CLK_ENABLE() __HAL_RCC_USART6_CLK_ENABLE()
arostm 0:4af3ca173992 193 #define DISCOVERY_COM1_CLK_DISABLE() __HAL_RCC_USART6_CLK_DISABLE()
arostm 0:4af3ca173992 194
arostm 0:4af3ca173992 195 #define DISCOVERY_COM1_TX_PIN GPIO_PIN_14
arostm 0:4af3ca173992 196 #define DISCOVERY_COM1_TX_GPIO_PORT GPIOG
arostm 0:4af3ca173992 197 #define DISCOVERY_COM1_TX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE()
arostm 0:4af3ca173992 198 #define DISCOVERY_COM1_TX_GPIO_CLK_DISABLE() __HAL_RCC_GPIOG_CLK_DISABLE()
arostm 0:4af3ca173992 199 #define DISCOVERY_COM1_TX_AF GPIO_AF8_USART6
arostm 0:4af3ca173992 200
arostm 0:4af3ca173992 201 #define DISCOVERY_COM1_RX_PIN GPIO_PIN_9
arostm 0:4af3ca173992 202 #define DISCOVERY_COM1_RX_GPIO_PORT GPIOG
arostm 0:4af3ca173992 203 #define DISCOVERY_COM1_RX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE()
arostm 0:4af3ca173992 204 #define DISCOVERY_COM1_RX_GPIO_CLK_DISABLE() __HAL_RCC_GPIOG_CLK_DISABLE()
arostm 0:4af3ca173992 205 #define DISCOVERY_COM1_RX_AF GPIO_AF8_USART6
arostm 0:4af3ca173992 206
arostm 0:4af3ca173992 207 #define DISCOVERY_COM1_IRQn USART6_IRQn
arostm 0:4af3ca173992 208
arostm 0:4af3ca173992 209 #define DISCOVERY_COMx_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) {DISCOVERY_COM1_CLK_ENABLE();} } while(0)
arostm 0:4af3ca173992 210 #define DISCOVERY_COMx_CLK_DISABLE(__INDEX__) (((__INDEX__) == 0) ? DISCOVERY_COM1_CLK_DISABLE() : 0)
arostm 0:4af3ca173992 211
arostm 0:4af3ca173992 212 #define DISCOVERY_COMx_TX_GPIO_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) {DISCOVERY_COM1_TX_GPIO_CLK_ENABLE();} } while(0)
arostm 0:4af3ca173992 213 #define DISCOVERY_COMx_TX_GPIO_CLK_DISABLE(__INDEX__) (((__INDEX__) == 0) ? DISCOVERY_COM1_TX_GPIO_CLK_DISABLE() : 0)
arostm 0:4af3ca173992 214
arostm 0:4af3ca173992 215 #define DISCOVERY_COMx_RX_GPIO_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) {DISCOVERY_COM1_RX_GPIO_CLK_ENABLE();} } while(0)
arostm 0:4af3ca173992 216 #define DISCOVERY_COMx_RX_GPIO_CLK_DISABLE(__INDEX__) (((__INDEX__) == 0) ? DISCOVERY_COM1_RX_GPIO_CLK_DISABLE() : 0)
arostm 0:4af3ca173992 217
arostm 0:4af3ca173992 218 /* Exported constant IO ------------------------------------------------------*/
arostm 0:4af3ca173992 219
arostm 0:4af3ca173992 220 #define AUDIO_I2C_ADDRESS ((uint16_t)0x34)
arostm 0:4af3ca173992 221 #define EEPROM_I2C_ADDRESS_A01 ((uint16_t)0xA0)
arostm 0:4af3ca173992 222 #define EEPROM_I2C_ADDRESS_A02 ((uint16_t)0xA6)
arostm 0:4af3ca173992 223 #define TS_I2C_ADDRESS ((uint16_t)0x70)
arostm 0:4af3ca173992 224
arostm 0:4af3ca173992 225 /* User can use this section to tailor I2Cx/I2Cx instance used and associated
arostm 0:4af3ca173992 226 resources */
arostm 0:4af3ca173992 227 /* Definition for AUDIO I2Cx resources */
arostm 0:4af3ca173992 228 #define DISCOVERY_AUDIO_I2Cx FMPI2C1
arostm 0:4af3ca173992 229 #define DISCOVERY_AUDIO_I2Cx_CLK_ENABLE() __HAL_RCC_FMPI2C1_CLK_ENABLE()
arostm 0:4af3ca173992 230 #define DISCOVERY_AUDIO_DMAx_CLK_ENABLE() __HAL_RCC_DMA1_CLK_ENABLE()
arostm 0:4af3ca173992 231 #define DISCOVERY_AUDIO_I2Cx_SCL_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE()
arostm 0:4af3ca173992 232
arostm 0:4af3ca173992 233 #define DISCOVERY_AUDIO_I2Cx_FORCE_RESET() __HAL_RCC_FMPI2C1_FORCE_RESET()
arostm 0:4af3ca173992 234 #define DISCOVERY_AUDIO_I2Cx_RELEASE_RESET() __HAL_RCC_FMPI2C1_RELEASE_RESET()
arostm 0:4af3ca173992 235
arostm 0:4af3ca173992 236 /* Definition for I2Cx Pins */
arostm 0:4af3ca173992 237 #define DISCOVERY_AUDIO_I2Cx_SCL_PIN GPIO_PIN_6
arostm 0:4af3ca173992 238 #define DISCOVERY_AUDIO_I2Cx_SCL_SDA_GPIO_PORT GPIOC
arostm 0:4af3ca173992 239 #define DISCOVERY_AUDIO_I2Cx_SCL_SDA_AF GPIO_AF4_FMPI2C1
arostm 0:4af3ca173992 240 #define DISCOVERY_AUDIO_I2Cx_SDA_PIN GPIO_PIN_7
arostm 0:4af3ca173992 241
arostm 0:4af3ca173992 242 /* I2C interrupt requests */
arostm 0:4af3ca173992 243 #define DISCOVERY_AUDIO_I2Cx_EV_IRQn FMPI2C1_EV_IRQn
arostm 0:4af3ca173992 244 #define DISCOVERY_AUDIO_I2Cx_ER_IRQn FMPI2C1_ER_IRQn
arostm 0:4af3ca173992 245
arostm 0:4af3ca173992 246 /* I2C clock speed configuration (in Hz)
arostm 0:4af3ca173992 247 WARNING:
arostm 0:4af3ca173992 248 Make sure that this define is not already declared in other files.
arostm 0:4af3ca173992 249 It can be used in parallel by other modules. */
arostm 0:4af3ca173992 250 #ifndef DISCOVERY_I2C_SPEED
arostm 0:4af3ca173992 251 #define DISCOVERY_I2C_SPEED 100000
arostm 0:4af3ca173992 252 #endif /* DISCOVERY_I2C_SPEED */
arostm 0:4af3ca173992 253
arostm 0:4af3ca173992 254 #ifndef DISCOVERY_I2Cx_TIMING
arostm 0:4af3ca173992 255 #define DISCOVERY_I2Cx_TIMING ((uint32_t)0x00901954)
arostm 0:4af3ca173992 256 #endif /* DISCOVERY_I2Cx_TIMING */
arostm 0:4af3ca173992 257 /**
arostm 0:4af3ca173992 258 * @}
arostm 0:4af3ca173992 259 */
arostm 0:4af3ca173992 260
arostm 0:4af3ca173992 261 /**
arostm 0:4af3ca173992 262 * @}
arostm 0:4af3ca173992 263 */
arostm 0:4af3ca173992 264
arostm 0:4af3ca173992 265 /** @defgroup STM32F413H_DISCOVERY_LOW_LEVEL_Exported_Functions STM32F413H DISCOVERY Low Level Exported Functions
arostm 0:4af3ca173992 266 * @{
arostm 0:4af3ca173992 267 */
arostm 0:4af3ca173992 268 uint32_t BSP_GetVersion(void);
arostm 0:4af3ca173992 269 void BSP_LED_Init(Led_TypeDef Led);
arostm 0:4af3ca173992 270 void BSP_LED_DeInit(Led_TypeDef Led);
arostm 0:4af3ca173992 271 void BSP_LED_On(Led_TypeDef Led);
arostm 0:4af3ca173992 272 void BSP_LED_Off(Led_TypeDef Led);
arostm 0:4af3ca173992 273 void BSP_LED_Toggle(Led_TypeDef Led);
arostm 0:4af3ca173992 274 void BSP_PB_Init(Button_TypeDef Button, ButtonMode_TypeDef ButtonMode);
arostm 0:4af3ca173992 275 void BSP_PB_DeInit(Button_TypeDef Button);
arostm 0:4af3ca173992 276 uint32_t BSP_PB_GetState(Button_TypeDef Button);
arostm 0:4af3ca173992 277 void BSP_COM_Init(COM_TypeDef COM, UART_HandleTypeDef *husart);
arostm 0:4af3ca173992 278 void BSP_COM_DeInit(COM_TypeDef COM, UART_HandleTypeDef *huart);
arostm 0:4af3ca173992 279
arostm 0:4af3ca173992 280 /**
arostm 0:4af3ca173992 281 * @}
arostm 0:4af3ca173992 282 */
arostm 0:4af3ca173992 283
arostm 0:4af3ca173992 284 /**
arostm 0:4af3ca173992 285 * @}
arostm 0:4af3ca173992 286 */
arostm 0:4af3ca173992 287
arostm 0:4af3ca173992 288 /**
arostm 0:4af3ca173992 289 * @}
arostm 0:4af3ca173992 290 */
arostm 0:4af3ca173992 291
arostm 0:4af3ca173992 292 /**
arostm 0:4af3ca173992 293 * @}
arostm 0:4af3ca173992 294 */
arostm 0:4af3ca173992 295
arostm 0:4af3ca173992 296 #ifdef __cplusplus
arostm 0:4af3ca173992 297 }
arostm 0:4af3ca173992 298 #endif
arostm 0:4af3ca173992 299
arostm 0:4af3ca173992 300 #endif /* __STM32F413H_DISCOVERY_H */
arostm 0:4af3ca173992 301
arostm 0:4af3ca173992 302 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/