Contains the BSP driver for the DISCO_F413ZH board.

Dependents:   DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more

Committer:
arostm
Date:
Wed May 17 14:00:44 2017 +0200
Revision:
1:a3f6b8b5a6bf
Parent:
0:4af3ca173992
Child:
3:42b354f5069c
Add patch for mbed in stm32f413h_discovery.h and stm32f413h_discovery_lcd.c

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