Go to the documentation of this file.
74 #define __STM32F769I_DISCOVERY_BSP_VERSION_MAIN (0x02)
75 #define __STM32F769I_DISCOVERY_BSP_VERSION_SUB1 (0x00)
76 #define __STM32F769I_DISCOVERY_BSP_VERSION_SUB2 (0x01)
77 #define __STM32F769I_DISCOVERY_BSP_VERSION_RC (0x00)
78 #define __STM32F769I_DISCOVERY_BSP_VERSION ((__STM32F769I_DISCOVERY_BSP_VERSION_MAIN << 24)\
79 |(__STM32F769I_DISCOVERY_BSP_VERSION_SUB1 << 16)\
80 |(__STM32F769I_DISCOVERY_BSP_VERSION_SUB2 << 8 )\
81 |(__STM32F769I_DISCOVERY_BSP_VERSION_RC))
137 void HDMI_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value);
148 void TS_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value);
149 uint8_t
TS_IO_Read(uint8_t Addr, uint8_t Reg);
150 uint16_t
TS_IO_ReadMultiple(uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length);
190 gpio_init_structure.
Speed = GPIO_SPEED_HIGH;
283 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
292 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
369 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
407 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
582 uint16_t tmp = Value;
584 Value = ((uint16_t)(tmp >> 8) & 0x00FF);
586 Value |= ((uint16_t)(tmp << 8)& 0xFF00);
599 uint16_t read_value = 0, tmp = 0;
603 tmp = ((uint16_t)(read_value >> 8) & 0x00FF);
605 tmp |= ((uint16_t)(read_value << 8)& 0xFF00);
700 uint8_t read_value = 0;
786 uint8_t value = 0x00;
HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
HAL_StatusTypeDef
HAL Status structures definition
#define DISCOVERY_EXT_I2Cx_SCL_SDA_AF
uint32_t BSP_GetVersion(void)
This method returns the STM32F769I Discovery BSP Driver revision.
HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c)
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
static HAL_StatusTypeDef I2Cx_WriteMultiple(I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
Writes a value in a register of the device through BUS in using DMA mode.
#define DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_PORT
static I2C_HandleTypeDef hI2cExtHandler
uint32_t BSP_PB_GetState(Button_TypeDef Button)
Returns the selected button state.
#define DISCOVERY_EXT_I2Cx
User can use this section to tailor I2C1/I2C1 instance used and associated resources....
void BSP_LED_Toggle(Led_TypeDef Led)
Toggles the selected LED.
#define DISCOVERY_AUDIO_I2Cx_SDA_GPIO_CLK_ENABLE()
GPIO Init structure definition
void EEPROM_IO_Init(void)
Initializes peripherals used by the I2C EEPROM driver.
void HDMI_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
HDMI writes single data.
#define LEDx_GPIO_CLK_ENABLE(__INDEX__)
void BSP_LED_Off(Led_TypeDef Led)
Turns selected LED Off.
HAL_StatusTypeDef EEPROM_IO_IsDeviceReady(uint16_t DevAddress, uint32_t Trials)
Checks if target device is ready for communication.
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.
This file contains definitions for STM32F769I-Discovery LEDs, push-buttons hardware resources.
#define I2C_ADDRESSINGMODE_7BIT
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)
GPIO_TypeDef * GPIO_PORT[LEDn]
void BSP_LED_DeInit(Led_TypeDef Led)
DeInit LEDs.
HAL_StatusTypeDef EEPROM_IO_WriteData(uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize)
Write data to I2C EEPROM driver in using DMA channel.
static void I2Cx_Error(I2C_HandleTypeDef *i2c_handler, uint8_t Addr)
Manages error callback by re-initializing I2C.
#define DISCOVERY_I2Cx_TIMING
HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
#define DISCOVERY_AUDIO_I2Cx_SCL_AF
void HAL_Delay(uint32_t Delay)
This function provides minimum delay (in milliseconds) based on variable incremented.
#define DISCOVERY_EXT_I2Cx_SDA_PIN
#define DISCOVERY_EXT_I2Cx_FORCE_RESET()
const uint16_t BUTTON_IRQn[BUTTONn]
GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
static I2C_HandleTypeDef hI2cAudioHandler
static void I2Cx_Init(I2C_HandleTypeDef *i2c_handler)
Initializes I2C HAL.
static void I2Cx_MspInit(I2C_HandleTypeDef *i2c_handler)
Initializes I2C MSP.
void BSP_PB_Init(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
Configures button GPIO and EXTI Line.
#define I2C_DUALADDRESS_DISABLE
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
void HDMI_IO_Init(void)
Initializes HDMI IO low level.
#define DISCOVERY_AUDIO_I2Cx
User can use this section to tailor I2C4/I2C4 instance used and associated resources (audio codec)....
#define I2C_GENERALCALL_DISABLE
#define DISCOVERY_EXT_I2Cx_EV_IRQn
Definition of I2C interrupt requests.
#define DISCOVERY_AUDIO_I2Cx_FORCE_RESET()
#define I2C_MEMADD_SIZE_16BIT
#define DISCOVERY_EXT_I2Cx_CLK_ENABLE()
#define DISCOVERY_EXT_I2Cx_SCL_PIN
Definition for I2C1 Pins.
#define DISCOVERY_AUDIO_I2Cx_EV_IRQn
Definition of I2C4 interrupt requests.
const uint16_t BUTTON_PIN[BUTTONn]
void BSP_LED_On(Led_TypeDef Led)
Turns selected LED On.
#define DISCOVERY_AUDIO_I2Cx_ER_IRQn
void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
IRQn_Type
STM32F4XX Interrupt Number Definition, according to the selected device in Library_configuration_sect...
#define DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_CLK_ENABLE()
#define DISCOVERY_EXT_I2Cx_ER_IRQn
#define I2C_MEMADD_SIZE_8BIT
HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout)
#define DISCOVERY_AUDIO_I2Cx_SCL_GPIO_PORT
void BSP_PB_DeInit(Button_TypeDef Button)
Push Button DeInit.
uint8_t HDMI_IO_Read(uint8_t Addr, uint8_t Reg)
Reads single data with I2C communication channel from HDMI bridge.
void AUDIO_IO_Init(void)
Initializes Audio low level.
uint8_t TS_IO_Read(uint8_t Addr, uint8_t Reg)
Reads a single data.
GPIO_TypeDef * BUTTON_PORT[BUTTONn]
#define DISCOVERY_AUDIO_I2Cx_SCL_GPIO_CLK_ENABLE()
#define GPIO_MODE_IT_RISING
#define DISCOVERY_AUDIO_I2Cx_SDA_PIN
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.
#define DISCOVERY_EXT_I2Cx_RELEASE_RESET()
void HDMI_IO_Delay(uint32_t Delay)
HDMI delay.
void OTM8009A_IO_Delay(uint32_t Delay)
OTM8009A delay.
#define DISCOVERY_AUDIO_I2Cx_CLK_ENABLE()
void TS_IO_Delay(uint32_t Delay)
Delay function used in TouchScreen low level driver.
#define DISCOVERY_AUDIO_I2Cx_SDA_AF
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.
#define DISCOVERY_AUDIO_I2Cx_RELEASE_RESET()
static HAL_StatusTypeDef I2Cx_ReadMultiple(I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
Reads multiple data.
void AUDIO_IO_Delay(uint32_t Delay)
AUDIO Codec delay.
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
void AUDIO_IO_Write(uint8_t Addr, uint16_t Reg, uint16_t Value)
Writes a single data.
#define DISCOVERY_AUDIO_I2Cx_SCL_PIN
Definition for I2C4 Pins.
uint16_t AUDIO_IO_Read(uint8_t Addr, uint16_t Reg)
Reads a single data.
#define GPIO_MODE_OUTPUT_PP
HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
#define I2C_NOSTRETCH_DISABLE
void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
HAL_StatusTypeDef EEPROM_IO_ReadData(uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize)
Read data from I2C EEPROM driver in using DMA channel.
void TS_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
Writes a single data.
#define __STM32F769I_DISCOVERY_BSP_VERSION
#define DISCOVERY_AUDIO_I2Cx_SDA_GPIO_PORT
static HAL_StatusTypeDef I2Cx_IsDeviceReady(I2C_HandleTypeDef *i2c_handler, uint16_t DevAddress, uint32_t Trials)
Checks if target device is ready for communication.
HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c)
void TS_IO_Init(void)
Initializes Touchscreen low level.
void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
void AUDIO_IO_DeInit(void)
DeInitializes Audio low level.