STM32F0xx_Nucleo BSP User Manual
|
This file provides set of firmware functions to manage: More...
#include "stm32f0xx_nucleo.h"
Go to the source code of this file.
Defines | |
#define | __STM32F0XX_NUCLEO_BSP_VERSION_MAIN (0x01) |
STM32F0XX NUCLEO BSP Driver version number V1.1.4. | |
#define | __STM32F0XX_NUCLEO_BSP_VERSION_SUB1 (0x01) |
#define | __STM32F0XX_NUCLEO_BSP_VERSION_SUB2 (0x04) |
#define | __STM32F0XX_NUCLEO_BSP_VERSION_RC (0x00) |
#define | __STM32F0XX_NUCLEO_BSP_VERSION |
#define | SD_DUMMY_BYTE 0xFF |
LINK SD Card. | |
#define | SD_NO_RESPONSE_EXPECTED 0x80 |
Functions | |
static void | SPIx_Init (void) |
Initialize SPI HAL. | |
static void | SPIx_Write (uint8_t Value) |
SPI Write a byte to device. | |
static void | SPIx_WriteData (uint8_t *DataIn, uint16_t DataLength) |
SPI Write an amount of data to device. | |
static void | SPIx_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
SPI Write a byte to device. | |
static void | SPIx_FlushFifo (void) |
SPIx_FlushFifo. | |
static void | SPIx_Error (void) |
SPI error treatment function. | |
static void | SPIx_MspInit (void) |
Initialize SPI MSP. | |
void | SD_IO_Init (void) |
Initialize the SD Card and put it into StandBy State (Ready for data transfer). | |
void | SD_IO_CSState (uint8_t val) |
Set the SD_CS pin. | |
void | SD_IO_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
Write byte(s) on the SD. | |
void | SD_IO_ReadData (uint8_t *DataOut, uint16_t DataLength) |
Write an amount of data on the SD. | |
void | SD_IO_WriteData (const uint8_t *Data, uint16_t DataLength) |
Write an amount of data on the SD. | |
uint8_t | SD_IO_WriteByte (uint8_t Data) |
Write a byte on the SD. | |
uint8_t | SD_IO_ReadByte (void) |
void | LCD_IO_Init (void) |
Initialize the LCD. | |
void | LCD_IO_WriteData (uint8_t Data) |
void | LCD_IO_WriteMultipleData (uint8_t *pData, uint32_t Size) |
Write register value. | |
void | LCD_IO_WriteReg (uint8_t LCDReg) |
Write command to select the LCD register. | |
void | LCD_Delay (uint32_t Delay) |
Wait for loop in ms. | |
static HAL_StatusTypeDef | ADCx_Init (void) |
Initializes ADC HAL. | |
static void | ADCx_DeInit (void) |
Initializes ADC HAL. | |
static void | ADCx_MspInit (ADC_HandleTypeDef *hadc) |
Initialize ADC MSP. | |
static void | ADCx_MspDeInit (ADC_HandleTypeDef *hadc) |
DeInitializes ADC MSP. | |
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_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. | |
uint8_t | BSP_JOY_Init (void) |
Configures joystick available on adafruit 1.8" TFT shield managed through ADC to detect motion. | |
void | BSP_JOY_DeInit (void) |
DeInit joystick GPIOs. | |
JOYState_TypeDef | BSP_JOY_GetState (void) |
Returns the Joystick key pressed. | |
Variables | |
GPIO_TypeDef * | LED_PORT [LEDn] = {LED2_GPIO_PORT} |
const uint16_t | LED_PIN [LEDn] = {LED2_PIN} |
GPIO_TypeDef * | BUTTON_PORT [BUTTONn] = {USER_BUTTON_GPIO_PORT} |
const uint16_t | BUTTON_PIN [BUTTONn] = {USER_BUTTON_PIN} |
const uint8_t | BUTTON_IRQn [BUTTONn] = {USER_BUTTON_EXTI_IRQn } |
uint32_t | SpixTimeout = NUCLEO_SPIx_TIMEOUT_MAX |
BUS variables. | |
static SPI_HandleTypeDef | hnucleo_Spi |
static ADC_HandleTypeDef | hnucleo_Adc |
static ADC_ChannelConfTypeDef | sConfig |
Detailed Description
This file provides set of firmware functions to manage:
- 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.c.
Generated on Tue Oct 25 2016 18:35:27 for STM32F0xx_Nucleo BSP User Manual by 1.7.6.1