STM32F0xx_Nucleo_32 BSP User Manual: stm32f0xx_nucleo_32.c File Reference

STM32F0xx Nucleo 32 BSP Drivers

stm32f0xx_nucleo_32.c File Reference

This file provides set of firmware functions to manage: More...

Go to the source code of this file.

Defines

#define __STM32F0XX_NUCLEO_32_BSP_VERSION_MAIN   (0x01)
 STM32F0XX NUCLEO BSP Driver version number V1.0.4.
#define __STM32F0XX_NUCLEO_32_BSP_VERSION_SUB1   (0x00)
#define __STM32F0XX_NUCLEO_32_BSP_VERSION_SUB2   (0x04)
#define __STM32F0XX_NUCLEO_32_BSP_VERSION_RC   (0x00)
#define __STM32F0XX_NUCLEO_32_BSP_VERSION

Functions

void I2C1_Init (void)
 I2C Bus initialization.
void I2C1_Error (void)
 Manages error callback by re-initializing I2C.
void I2C1_MspInit (I2C_HandleTypeDef *hi2c)
 I2C MSP Initialization.
void I2C1_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data.
uint8_t I2C1_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data.
HAL_StatusTypeDef I2C1_WriteBuffer (uint16_t Addr, uint8_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length)
 Write a value in a register of the device through BUS.
HAL_StatusTypeDef I2C1_ReadBuffer (uint16_t Addr, uint8_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length)
 Reads multiple data on the BUS.
HAL_StatusTypeDef I2C1_IsDeviceReady (uint16_t DevAddress, uint32_t Trials)
 Checks if target device is ready for communication.
uint32_t BSP_GetVersion (void)
 This method returns the STM32F0XX NUCLEO BSP Driver revision.
void BSP_LED_Init (Led_TypeDef Led)
 Configures LED GPIO.
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.
HAL_StatusTypeDef BSP_DIGIT4_SEG7_Init (void)
 BSP of the 4 digits 7 Segment Display shield for Arduino Nano - Gravitech.
HAL_StatusTypeDef BSP_DIGIT4_SEG7_Display (uint32_t Value)
 BSP of the 4 digits 7 Segment Display shield for Arduino Nano - Gravitech.

Variables

GPIO_TypeDef * LED_PORT [LEDn] = {LED3_GPIO_PORT}
const uint16_t LED_PIN [LEDn] = {LED3_PIN}
uint32_t I2c1Timeout = BSP_I2C1_TIMEOUT_MAX
 BUS variables.
I2C_HandleTypeDef nucleo32_I2c1

Detailed Description

This file provides set of firmware functions to manage:

Author:
MCD Application Team
  • LED available on STM32F0XX-Nucleo Kit from STMicroelectronics.
  • Gravitech 7segment shield available separatly.
Attention:

© COPYRIGHT(c) 2016 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 stm32f0xx_nucleo_32.c.

Generated on Wed Jul 5 2017 09:51:17 for STM32F0xx_Nucleo_32 BSP User Manual by   doxygen 1.7.6.1