STM32L4xx_Nucleo_144 BSP User Manual: BUS

STM32L4xx_Nucleo_144 BSP

STM32L4xx_Nucleo_144 BSP User Manual

Defines

#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()

Define Documentation

#define LCD_CS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOD_CLK_DISABLE()

Definition at line 263 of file stm32l4xx_nucleo_144.h.

#define LCD_CS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOD_CLK_ENABLE()

Definition at line 262 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define LCD_CS_GPIO_PORT   GPIOD

Definition at line 261 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define LCD_CS_HIGH ( )    HAL_GPIO_WritePin(LCD_CS_GPIO_PORT, LCD_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.

Definition at line 244 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_WriteData(), LCD_IO_WriteMultipleData(), and LCD_IO_WriteReg().

#define LCD_CS_PIN   GPIO_PIN_14

LCD Control Interface pins (shield D10)

Definition at line 260 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define LCD_DC_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOF_CLK_DISABLE()

Definition at line 271 of file stm32l4xx_nucleo_144.h.

#define LCD_DC_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 270 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define LCD_DC_GPIO_PORT   GPIOF

Definition at line 269 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define LCD_DC_HIGH ( )    HAL_GPIO_WritePin(LCD_DC_GPIO_PORT, LCD_DC_PIN, GPIO_PIN_SET)

Definition at line 247 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_WriteData(), and LCD_IO_WriteMultipleData().

#define LCD_DC_LOW ( )    HAL_GPIO_WritePin(LCD_DC_GPIO_PORT, LCD_DC_PIN, GPIO_PIN_RESET)

Definition at line 246 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_WriteReg().

#define LCD_DC_PIN   GPIO_PIN_12

LCD Data/Command Interface pins (shield D8)

Definition at line 268 of file stm32l4xx_nucleo_144.h.

Referenced by LCD_IO_Init().

#define NUCLEO_ADCx   ADC1

ADC Interface pins used to detect motion of Joystick available on Adafruit 1.8" TFT shield.

Definition at line 283 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_DeInit(), and ADCx_Init().

#define NUCLEO_ADCx_CHANNEL   ADC_CHANNEL_2

Definition at line 285 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_JOY_Init().

#define NUCLEO_ADCx_CLK_DISABLE ( )    __HAL_RCC_ADC_CLK_DISABLE()

Definition at line 288 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_MspDeInit().

#define NUCLEO_ADCx_CLK_ENABLE ( )    __HAL_RCC_ADC_CLK_ENABLE()

Definition at line 287 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_MspInit().

#define NUCLEO_ADCx_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 293 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_ADCx_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 292 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_MspInit().

#define NUCLEO_ADCx_GPIO_PIN   GPIO_PIN_1

Definition at line 291 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_MspDeInit(), and ADCx_MspInit().

#define NUCLEO_ADCx_GPIO_PORT   GPIOC

Definition at line 290 of file stm32l4xx_nucleo_144.h.

Referenced by ADCx_MspDeInit(), and ADCx_MspInit().

#define NUCLEO_ADCx_SAMPLETIME   ADC_SAMPLETIME_24CYCLES_5

Definition at line 286 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_JOY_Init().

#define NUCLEO_SPIx   SPI1

Definition at line 205 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_Init().

#define NUCLEO_SPIx_CLK_ENABLE ( )    __HAL_RCC_SPI1_CLK_ENABLE()

Definition at line 206 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_CS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOD_CLK_DISABLE()

Definition at line 230 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_CS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOD_CLK_ENABLE()

Definition at line 229 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_CS_GPIO_PORT   GPIOD

Definition at line 227 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_CS_PIN   GPIO_PIN_14

Definition at line 228 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_MISO_MOSI_AF   GPIO_AF5_SPI1

Definition at line 214 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_MISO_MOSI_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 217 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_MISO_MOSI_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 216 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_MISO_MOSI_GPIO_PORT   GPIOA

Definition at line 215 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_MISO_PIN   GPIO_PIN_6

Definition at line 218 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_MOSI_PIN   GPIO_PIN_7

Definition at line 219 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_SCK_AF   GPIO_AF5_SPI1

Definition at line 208 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_SCK_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 212 of file stm32l4xx_nucleo_144.h.

#define NUCLEO_SPIx_SCK_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 211 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_SCK_GPIO_PORT   GPIOA

Definition at line 209 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_SCK_PIN   GPIO_PIN_5

Definition at line 210 of file stm32l4xx_nucleo_144.h.

Referenced by SPIx_MspInit().

#define NUCLEO_SPIx_TIMEOUT_MAX   1000

Definition at line 225 of file stm32l4xx_nucleo_144.h.

#define PIN_SMPS_ENABLE   GPIO_PIN_11
#define PIN_SMPS_POWERGOOD   GPIO_PIN_12

Definition at line 303 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_SMPS_Enable(), BSP_SMPS_Init(), and BSP_SMPS_Supply_Enable().

#define PWR_AND_CLK_SMPS ( )
Value:
do { __HAL_RCC_PWR_CLK_ENABLE(); \
                                  HAL_PWREx_EnableVddIO2(); \
                                  __HAL_RCC_GPIOG_CLK_ENABLE(); } while(0)

Definition at line 310 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_SMPS_DeInit(), BSP_SMPS_Disable(), BSP_SMPS_Enable(), BSP_SMPS_Init(), BSP_SMPS_Supply_Disable(), and BSP_SMPS_Supply_Enable().

#define PWR_GPIO_ENABLE   PWR_GPIO_BIT_11

Definition at line 307 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_SMPS_Disable(), and BSP_SMPS_Init().

#define PWR_GPIO_SMPS   PWR_GPIO_G

Definition at line 306 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_SMPS_Disable(), BSP_SMPS_Enable(), and BSP_SMPS_Init().

#define PWR_GPIO_SWITCH_ENABLE   PWR_GPIO_BIT_13

Definition at line 308 of file stm32l4xx_nucleo_144.h.

Referenced by BSP_SMPS_Init().

#define SD_CS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOF_CLK_DISABLE()

Definition at line 255 of file stm32l4xx_nucleo_144.h.

#define SD_CS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 254 of file stm32l4xx_nucleo_144.h.

Referenced by SD_IO_Init().

#define SD_CS_GPIO_PORT   GPIOF

Definition at line 253 of file stm32l4xx_nucleo_144.h.

Referenced by SD_IO_Init().

#define SD_CS_HIGH ( )    HAL_GPIO_WritePin(SD_CS_GPIO_PORT, SD_CS_PIN, GPIO_PIN_SET)

Definition at line 239 of file stm32l4xx_nucleo_144.h.

Referenced by SD_IO_CSState(), and SD_IO_Init().

#define SD_CS_LOW ( )    HAL_GPIO_WritePin(SD_CS_GPIO_PORT, SD_CS_PIN, GPIO_PIN_RESET)

SD Control Lines management.

Definition at line 238 of file stm32l4xx_nucleo_144.h.

Referenced by SD_IO_CSState().

#define SD_CS_PIN   GPIO_PIN_14

SD Control Interface pins (shield D4)

Definition at line 252 of file stm32l4xx_nucleo_144.h.

Referenced by SD_IO_Init().

#define SPIx__CS_HIGH ( )    HAL_GPIO_WritePin(NUCLEO_SPIx_CS_GPIO_PORT, NUCLEO_SPIx_CS_PIN, GPIO_PIN_SET)

Definition at line 233 of file stm32l4xx_nucleo_144.h.

#define SPIx__CS_LOW ( )    HAL_GPIO_WritePin(NUCLEO_SPIx_CS_GPIO_PORT, NUCLEO_SPIx_CS_PIN, GPIO_PIN_RESET)

Definition at line 232 of file stm32l4xx_nucleo_144.h.

Generated on Mon Oct 9 2017 01:35:13 for STM32L4xx_Nucleo_144 BSP User Manual by   doxygen 1.7.6.1