STM32L4xx_Nucleo_144 BSP User Manual
|
This file contains definitions for: More...
#include "stm32l4xx_hal.h"
Go to the source code of this file.
Defines | |
#define | LEDn 3 |
#define | LED1_PIN GPIO_PIN_7 |
#define | LED1_GPIO_PORT GPIOC |
#define | LED1_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | LED1_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | LED2_PIN GPIO_PIN_7 |
#define | LED2_GPIO_PORT GPIOB |
#define | LED2_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | LED2_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | LED3_PIN GPIO_PIN_14 |
#define | LED3_GPIO_PORT GPIOB |
#define | LED3_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | LED3_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | LEDx_GPIO_CLK_ENABLE(__INDEX__) |
#define | LEDx_GPIO_CLK_DISABLE(__INDEX__) |
#define | BUTTONn 1 |
#define | USER_BUTTON_PIN GPIO_PIN_13 |
Key push-button. | |
#define | USER_BUTTON_GPIO_PORT GPIOC |
#define | USER_BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | USER_BUTTON_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | USER_BUTTON_EXTI_LINE GPIO_PIN_13 |
#define | USER_BUTTON_EXTI_IRQn EXTI15_10_IRQn |
#define | BUTTONx_GPIO_CLK_ENABLE(__INDEX__) USER_BUTTON_GPIO_CLK_ENABLE() |
#define | BUTTONx_GPIO_CLK_DISABLE(__INDEX__) USER_BUTTON_GPIO_CLK_DISABLE() |
#define | KEY_BUTTON_PIN USER_BUTTON_PIN |
#define | KEY_BUTTON_GPIO_PORT USER_BUTTON_GPIO_PORT |
#define | KEY_BUTTON_GPIO_CLK_ENABLE() USER_BUTTON_GPIO_CLK_ENABLE() |
#define | KEY_BUTTON_GPIO_CLK_DISABLE() USER_BUTTON_GPIO_CLK_DISABLE() |
#define | KEY_BUTTON_EXTI_LINE USER_BUTTON_EXTI_LINE |
#define | KEY_BUTTON_EXTI_IRQn USER_BUTTON_EXTI_IRQn |
#define | OTG_FS1_OVER_CURRENT_PIN GPIO_PIN_5 |
#define | OTG_FS1_OVER_CURRENT_PORT GPIOG |
#define | OTG_FS1_OVER_CURRENT_PORT_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE() |
#define | OTG_FS1_POWER_SWITCH_PIN GPIO_PIN_6 |
#define | OTG_FS1_POWER_SWITCH_PORT GPIOG |
#define | OTG_FS1_POWER_SWITCH_PORT_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE() |
#define | SMPS_OK 0 |
#define | SMPS_KO 1 |
#define | NUCLEO_SPIx SPI1 |
#define | NUCLEO_SPIx_CLK_ENABLE() __HAL_RCC_SPI1_CLK_ENABLE() |
#define | NUCLEO_SPIx_SCK_AF GPIO_AF5_SPI1 |
#define | NUCLEO_SPIx_SCK_GPIO_PORT GPIOA |
#define | NUCLEO_SPIx_SCK_PIN GPIO_PIN_5 |
#define | NUCLEO_SPIx_SCK_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | NUCLEO_SPIx_SCK_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | NUCLEO_SPIx_MISO_MOSI_AF GPIO_AF5_SPI1 |
#define | NUCLEO_SPIx_MISO_MOSI_GPIO_PORT GPIOA |
#define | NUCLEO_SPIx_MISO_MOSI_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | NUCLEO_SPIx_MISO_MOSI_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | NUCLEO_SPIx_MISO_PIN GPIO_PIN_6 |
#define | NUCLEO_SPIx_MOSI_PIN GPIO_PIN_7 |
#define | NUCLEO_SPIx_TIMEOUT_MAX 1000 |
#define | NUCLEO_SPIx_CS_GPIO_PORT GPIOD |
#define | NUCLEO_SPIx_CS_PIN GPIO_PIN_14 |
#define | NUCLEO_SPIx_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | NUCLEO_SPIx_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | SPIx__CS_LOW() HAL_GPIO_WritePin(NUCLEO_SPIx_CS_GPIO_PORT, NUCLEO_SPIx_CS_PIN, GPIO_PIN_RESET) |
#define | SPIx__CS_HIGH() HAL_GPIO_WritePin(NUCLEO_SPIx_CS_GPIO_PORT, NUCLEO_SPIx_CS_PIN, GPIO_PIN_SET) |
#define | SD_CS_LOW() HAL_GPIO_WritePin(SD_CS_GPIO_PORT, SD_CS_PIN, GPIO_PIN_RESET) |
SD Control Lines management. | |
#define | SD_CS_HIGH() HAL_GPIO_WritePin(SD_CS_GPIO_PORT, SD_CS_PIN, GPIO_PIN_SET) |
#define | LCD_CS_LOW() HAL_GPIO_WritePin(LCD_CS_GPIO_PORT, LCD_CS_PIN, GPIO_PIN_RESET) |
LCD Control Lines management. | |
#define | LCD_CS_HIGH() HAL_GPIO_WritePin(LCD_CS_GPIO_PORT, LCD_CS_PIN, GPIO_PIN_SET) |
#define | LCD_DC_LOW() HAL_GPIO_WritePin(LCD_DC_GPIO_PORT, LCD_DC_PIN, GPIO_PIN_RESET) |
#define | LCD_DC_HIGH() HAL_GPIO_WritePin(LCD_DC_GPIO_PORT, LCD_DC_PIN, GPIO_PIN_SET) |
#define | SD_CS_PIN GPIO_PIN_14 |
SD Control Interface pins (shield D4) | |
#define | SD_CS_GPIO_PORT GPIOF |
#define | SD_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOF_CLK_ENABLE() |
#define | SD_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOF_CLK_DISABLE() |
#define | LCD_CS_PIN GPIO_PIN_14 |
LCD Control Interface pins (shield D10) | |
#define | LCD_CS_GPIO_PORT GPIOD |
#define | LCD_CS_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | LCD_CS_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | LCD_DC_PIN GPIO_PIN_12 |
LCD Data/Command Interface pins (shield D8) | |
#define | LCD_DC_GPIO_PORT GPIOF |
#define | LCD_DC_GPIO_CLK_ENABLE() __HAL_RCC_GPIOF_CLK_ENABLE() |
#define | LCD_DC_GPIO_CLK_DISABLE() __HAL_RCC_GPIOF_CLK_DISABLE() |
#define | NUCLEO_ADCx ADC1 |
ADC Interface pins used to detect motion of Joystick available on Adafruit 1.8" TFT shield. | |
#define | NUCLEO_ADCx_CHANNEL ADC_CHANNEL_2 |
#define | NUCLEO_ADCx_SAMPLETIME ADC_SAMPLETIME_24CYCLES_5 |
#define | NUCLEO_ADCx_CLK_ENABLE() __HAL_RCC_ADC_CLK_ENABLE() |
#define | NUCLEO_ADCx_CLK_DISABLE() __HAL_RCC_ADC_CLK_DISABLE() |
#define | NUCLEO_ADCx_GPIO_PORT GPIOC |
#define | NUCLEO_ADCx_GPIO_PIN GPIO_PIN_1 |
#define | NUCLEO_ADCx_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | NUCLEO_ADCx_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | PORT_SMPS GPIOG |
#define | PIN_SMPS_ENABLE GPIO_PIN_11 |
#define | PIN_SMPS_POWERGOOD GPIO_PIN_12 |
#define | PIN_SMPS_SWITCH_ENABLE GPIO_PIN_13 |
#define | PWR_GPIO_SMPS PWR_GPIO_G |
#define | PWR_GPIO_ENABLE PWR_GPIO_BIT_11 |
#define | PWR_GPIO_SWITCH_ENABLE PWR_GPIO_BIT_13 |
#define | PWR_AND_CLK_SMPS() |
Enumerations | |
enum | Led_TypeDef { LED1 = 0, LED_GREEN = LED1, LED2 = 1, LED_BLUE = LED2, LED3 = 2, LED_RED = LED3 } |
enum | Button_TypeDef { BUTTON_USER = 0, BUTTON_KEY = BUTTON_USER } |
enum | ButtonMode_TypeDef { BUTTON_MODE_GPIO = 0, BUTTON_MODE_EXTI = 1 } |
enum | JOYState_TypeDef { JOY_NONE = 0, JOY_SEL = 1, JOY_DOWN = 2, JOY_LEFT = 3, JOY_RIGHT = 4, JOY_UP = 5 } |
Functions | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32L4xx NUCLEO BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configure LED GPIO. | |
void | BSP_LED_DeInit (Led_TypeDef Led) |
DeInitialize LEDs. | |
void | BSP_LED_On (Led_TypeDef Led) |
Turn selected LED On. | |
void | BSP_LED_Off (Led_TypeDef Led) |
Turn selected LED Off. | |
void | BSP_LED_Toggle (Led_TypeDef Led) |
Toggle the selected LED. | |
void | BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode) |
Configure Button GPIO and EXTI Line. | |
void | BSP_PB_DeInit (Button_TypeDef Button) |
DeInitialize Push Button. | |
uint32_t | BSP_PB_GetState (Button_TypeDef Button) |
Return the selected Button state. | |
uint8_t | BSP_JOY_Init (void) |
Configure joystick available on adafruit 1.8" TFT shield managed through ADC to detect motion. | |
void | BSP_JOY_DeInit (void) |
DeInitialize joystick GPIOs. | |
JOYState_TypeDef | BSP_JOY_GetState (void) |
Return the Joystick key pressed. | |
uint32_t | BSP_SMPS_Init (uint32_t VoltageRange) |
Initialize the external SMPS component. | |
uint32_t | BSP_SMPS_DeInit (void) |
DeInitialize the external SMPS component. | |
uint32_t | BSP_SMPS_Enable (uint32_t Delay, uint32_t Power_Good_Check) |
Enable the external SMPS component. | |
uint32_t | BSP_SMPS_Disable (void) |
Disable the external SMPS component. | |
uint32_t | BSP_SMPS_Supply_Enable (uint32_t Delay, uint32_t Power_Good_Check) |
Enable the external SMPS SWITCH component. | |
uint32_t | BSP_SMPS_Supply_Disable (void) |
Disable the external SMPS component. |
Detailed Description
This file contains definitions for:
- 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 stm32l4xx_nucleo_144.h.
Generated on Mon Oct 9 2017 01:35:13 for STM32L4xx_Nucleo_144 BSP User Manual by
