STM32F413H-Discovery BSP User Manual
|
This file provides a set of firmware functions to manage LEDs, push-buttons and COM ports available on STM32F413H-DISCOVERY board (MB1209) from STMicroelectronics. More...
#include "stm32f413h_discovery.h"
Go to the source code of this file.
Data Structures | |
struct | LCD_CONTROLLER_TypeDef |
Defines | |
#define | __STM32F413H_DISCOVERY_BSP_VERSION_MAIN (0x01) |
STM32F413H DISCOVERY BSP Driver version number V1.0.0. | |
#define | __STM32F413H_DISCOVERY_BSP_VERSION_SUB1 (0x00) |
#define | __STM32F413H_DISCOVERY_BSP_VERSION_SUB2 (0x00) |
#define | __STM32F413H_DISCOVERY_BSP_VERSION_RC (0x00) |
#define | __STM32F413H_DISCOVERY_BSP_VERSION |
#define | FMC_BANK3_BASE ((uint32_t)(0x60000000 | 0x08000000)) |
#define | FMC_BANK3 ((LCD_CONTROLLER_TypeDef *) FMC_BANK3_BASE) |
Functions | |
static void | FMPI2Cx_Init (FMPI2C_HandleTypeDef *fmpi2c_handler) |
Initializes FMPI2C HAL. | |
static void | FMPI2Cx_DeInit (FMPI2C_HandleTypeDef *fmpi2c_handler) |
Deinitializes FMPI2C interface. | |
static HAL_StatusTypeDef | FMPI2Cx_ReadMultiple (FMPI2C_HandleTypeDef *fmpi2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. | |
static HAL_StatusTypeDef | FMPI2Cx_WriteMultiple (FMPI2C_HandleTypeDef *fmpi2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Writes a value in a register of the device through BUS in using DMA mode. | |
static void | FMPI2Cx_Error (FMPI2C_HandleTypeDef *fmpi2c_handler, uint8_t Addr) |
Manages error callback by re-initializing I2C. | |
static void | FMC_BANK3_WriteData (uint16_t Data) |
Writes register value. | |
static void | FMC_BANK3_WriteReg (uint8_t Reg) |
Writes register address. | |
static uint16_t | FMC_BANK3_ReadData (void) |
Reads register value. | |
static void | FMC_BANK3_Init (void) |
Initializes LCD IOs. | |
static void | FMC_BANK3_MspInit (void) |
Initializes FMC_BANK3 MSP. | |
void | LCD_IO_Init (void) |
Initializes LCD low level. | |
void | LCD_IO_WriteData (uint16_t RegValue) |
Writes data on LCD data register. | |
void | LCD_IO_WriteReg (uint8_t Reg) |
Writes register on LCD register. | |
void | LCD_IO_WriteMultipleData (uint16_t *pData, uint32_t Size) |
Writes several data on LCD data register. | |
uint16_t | LCD_IO_ReadData (void) |
Reads data from LCD data register. | |
void | LCD_IO_Delay (uint32_t Delay) |
LCD delay. | |
void | AUDIO_IO_Init (void) |
Initializes Audio low level. | |
void | AUDIO_IO_DeInit (void) |
Deinitializes Audio low level. | |
void | AUDIO_IO_Write (uint8_t Addr, uint16_t Reg, uint16_t Value) |
Writes a single data. | |
uint16_t | AUDIO_IO_Read (uint8_t Addr, uint16_t Reg) |
Reads a single data. | |
void | AUDIO_IO_Delay (uint32_t Delay) |
AUDIO Codec delay. | |
void | TS_IO_Init (void) |
Initializes TS low level. | |
void | TS_IO_DeInit (void) |
Deinitializes TS low level. | |
void | TS_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. | |
uint8_t | TS_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. | |
uint16_t | TS_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Reads multiple data with I2C communication channel from TouchScreen. | |
void | TS_IO_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Writes multiple data with I2C communication channel from MCU to TouchScreen. | |
void | TS_IO_Delay (uint32_t Delay) |
Delay function used in TouchScreen low level driver. | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32F413H DISCOVERY BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LEDs. | |
void | BSP_LED_DeInit (Led_TypeDef Led) |
DeInit LEDs. | |
void | BSP_LED_On (Led_TypeDef Led) |
Turns selected LED On. | |
void | BSP_LED_Off (Led_TypeDef Led) |
Turns selected LED Off. | |
void | BSP_LED_Toggle (Led_TypeDef Led) |
Toggles the selected LED. | |
void | BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode) |
Configures button GPIO and EXTI Line. | |
void | BSP_PB_DeInit (Button_TypeDef Button) |
Push Button DeInit. | |
uint32_t | BSP_PB_GetState (Button_TypeDef Button) |
Returns the selected button state. | |
void | BSP_COM_Init (COM_TypeDef COM, UART_HandleTypeDef *huart) |
Configures COM port. | |
void | BSP_COM_DeInit (COM_TypeDef COM, UART_HandleTypeDef *huart) |
DeInit COM port. | |
static void | FMPI2Cx_MspInit (FMPI2C_HandleTypeDef *fmpi2c_handler) |
Initializes FMPI2C MSP. | |
Variables | |
const uint32_t | GPIO_PIN [LEDn] |
GPIO_TypeDef * | GPIO_PORT [LEDn] |
GPIO_TypeDef * | BUTTON_PORT [BUTTONn] = {WAKEUP_BUTTON_GPIO_PORT} |
const uint16_t | BUTTON_PIN [BUTTONn] = {WAKEUP_BUTTON_PIN} |
const uint16_t | BUTTON_IRQn [BUTTONn] = {WAKEUP_BUTTON_EXTI_IRQn} |
USART_TypeDef * | COM_USART [COMn] = {DISCOVERY_COM1} |
GPIO_TypeDef * | COM_TX_PORT [COMn] = {DISCOVERY_COM1_TX_GPIO_PORT} |
GPIO_TypeDef * | COM_RX_PORT [COMn] = {DISCOVERY_COM1_RX_GPIO_PORT} |
const uint16_t | COM_TX_PIN [COMn] = {DISCOVERY_COM1_TX_PIN} |
const uint16_t | COM_RX_PIN [COMn] = {DISCOVERY_COM1_RX_PIN} |
const uint16_t | COM_TX_AF [COMn] = {DISCOVERY_COM1_TX_AF} |
const uint16_t | COM_RX_AF [COMn] = {DISCOVERY_COM1_RX_AF} |
static FMPI2C_HandleTypeDef | hI2cAudioHandler |
Detailed Description
This file provides a set of firmware functions to manage LEDs, push-buttons and COM ports available on STM32F413H-DISCOVERY board (MB1209) from STMicroelectronics.
- Attention:
© COPYRIGHT(c) 2017 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f413h_discovery.c.
Generated on Thu Jan 26 2017 16:30:37 for STM32F413H-Discovery BSP User Manual by 1.7.6.1