/btstack/port/stm32-f4discovery-cc256x/Src/ |
H A D | gpio.c | 58 GPIO_InitTypeDef GPIO_InitStruct = {0}; in MX_GPIO_Init() local 78 GPIO_InitStruct.Pin = CS_I2C_SPI_Pin|CC_nSHUTD_Pin; in MX_GPIO_Init() 79 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 80 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 81 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() 82 HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); in MX_GPIO_Init() 85 GPIO_InitStruct.Pin = OTG_FS_PowerSwitchOn_Pin; in MX_GPIO_Init() 86 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 87 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 88 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() [all …]
|
H A D | i2s.c | 52 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_I2S_MspInit() local 69 GPIO_InitStruct.Pin = GPIO_PIN_2; in HAL_I2S_MspInit() 70 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_I2S_MspInit() 71 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_I2S_MspInit() 72 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in HAL_I2S_MspInit() 73 GPIO_InitStruct.Alternate = GPIO_AF6_I2S2ext; in HAL_I2S_MspInit() 74 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); in HAL_I2S_MspInit() 76 GPIO_InitStruct.Pin = PDM_OUT_Pin; in HAL_I2S_MspInit() 77 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_I2S_MspInit() 78 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_I2S_MspInit() [all …]
|
H A D | usart.c | 74 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_UART_MspInit() local 88 GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; in HAL_UART_MspInit() 89 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_UART_MspInit() 90 GPIO_InitStruct.Pull = GPIO_PULLUP; in HAL_UART_MspInit() 91 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_UART_MspInit() 92 GPIO_InitStruct.Alternate = GPIO_AF7_USART2; in HAL_UART_MspInit() 93 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); in HAL_UART_MspInit() 117 GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9; in HAL_UART_MspInit() 118 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_UART_MspInit() 119 GPIO_InitStruct.Pull = GPIO_PULLUP; in HAL_UART_MspInit() [all …]
|
H A D | i2c.c | 52 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_I2C_MspInit() local 64 GPIO_InitStruct.Pin = Audio_SCL_Pin|Audio_SDA_Pin; in HAL_I2C_MspInit() 65 GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; in HAL_I2C_MspInit() 66 GPIO_InitStruct.Pull = GPIO_PULLUP; in HAL_I2C_MspInit() 67 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in HAL_I2C_MspInit() 68 GPIO_InitStruct.Alternate = GPIO_AF4_I2C1; in HAL_I2C_MspInit() 69 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); in HAL_I2C_MspInit()
|
H A D | spi.c | 55 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_SPI_MspInit() local 70 GPIO_InitStruct.Pin = SPI1_SCK_Pin|SPI1_MISO_Pin|SPI1_MOSI_Pin; in HAL_SPI_MspInit() 71 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_SPI_MspInit() 72 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_SPI_MspInit() 73 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in HAL_SPI_MspInit() 74 GPIO_InitStruct.Alternate = GPIO_AF5_SPI1; in HAL_SPI_MspInit() 75 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); in HAL_SPI_MspInit()
|
/btstack/port/stm32-f4discovery-usb/Core/Src/ |
H A D | main.c | 159 GPIO_InitTypeDef GPIO_InitStruct = {0}; in MX_GPIO_Init() local 180 GPIO_InitStruct.Pin = CS_I2C_SPI_Pin; in MX_GPIO_Init() 181 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 182 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 183 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() 184 HAL_GPIO_Init(CS_I2C_SPI_GPIO_Port, &GPIO_InitStruct); in MX_GPIO_Init() 187 GPIO_InitStruct.Pin = OTG_FS_PowerSwitchOn_Pin; in MX_GPIO_Init() 188 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 189 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 190 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() [all …]
|
/btstack/port/stm32-l451-miromico-sx1280/Drivers/STM32L4xx_HAL_Driver/Src/ |
H A D | stm32l4xx_ll_gpio.c | 191 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument 198 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init() 199 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init() 200 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init() 204 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init() 207 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init() 210 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init() 215 LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode); in LL_GPIO_Init() 217 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init() 220 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init() [all …]
|
/btstack/port/stm32-f4discovery-usb/Drivers/STM32F4xx_HAL_Driver/Src/ |
H A D | stm32f4xx_ll_gpio.c | 200 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument 207 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init() 208 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init() 209 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init() 213 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init() 216 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init() 219 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init() 224 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init() 227 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init() 230 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init() [all …]
|
H A D | stm32f4xx_hal_rcc.c | 768 GPIO_InitTypeDef GPIO_InitStruct; in HAL_RCC_MCOConfig() local 781 GPIO_InitStruct.Pin = MCO1_PIN; in HAL_RCC_MCOConfig() 782 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCC_MCOConfig() 783 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCC_MCOConfig() 784 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_RCC_MCOConfig() 785 GPIO_InitStruct.Alternate = GPIO_AF0_MCO; in HAL_RCC_MCOConfig() 786 HAL_GPIO_Init(MCO1_GPIO_PORT, &GPIO_InitStruct); in HAL_RCC_MCOConfig() 805 GPIO_InitStruct.Pin = MCO2_PIN; in HAL_RCC_MCOConfig() 806 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCC_MCOConfig() 807 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCC_MCOConfig() [all …]
|
/btstack/port/stm32-l451-miromico-sx1280/Src/ |
H A D | main.c | 354 GPIO_InitTypeDef GPIO_InitStruct = {0}; in MX_GPIO_Init() local 371 GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; in MX_GPIO_Init() 372 GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING; in MX_GPIO_Init() 373 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 374 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); in MX_GPIO_Init() 377 GPIO_InitStruct.Pin = RF_BUSY_Pin; in MX_GPIO_Init() 378 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; in MX_GPIO_Init() 379 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 380 HAL_GPIO_Init(RF_BUSY_GPIO_Port, &GPIO_InitStruct); in MX_GPIO_Init() 383 GPIO_InitStruct.Pin = RF_TXCO_Pin; in MX_GPIO_Init() [all …]
|
H A D | stm32l4xx_hal_msp.c | 141 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_SPI_MspInit() local 156 GPIO_InitStruct.Pin = RF_MOSI_Pin|RF_MISO_Pin|RF_SCK_Pin; in HAL_SPI_MspInit() 157 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_SPI_MspInit() 158 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_SPI_MspInit() 159 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_SPI_MspInit() 160 GPIO_InitStruct.Alternate = GPIO_AF5_SPI2; in HAL_SPI_MspInit() 161 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); in HAL_SPI_MspInit()
|
/btstack/port/stm32-l451-miromico-sx1280/example/ |
H A D | gatt_rgb.c | 184 GPIO_InitTypeDef GPIO_InitStruct = {0}; in btstack_main() local 189 GPIO_InitStruct.Pin = LED_SMALL_PIN; in btstack_main() 190 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in btstack_main() 191 GPIO_InitStruct.Pull = GPIO_NOPULL; in btstack_main() 192 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in btstack_main() 193 HAL_GPIO_Init(LED_SMALL_PORT, &GPIO_InitStruct); in btstack_main() 195 GPIO_InitStruct.Pin = LED_R_PIN; in btstack_main() 196 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in btstack_main() 197 GPIO_InitStruct.Pull = GPIO_NOPULL; in btstack_main() 198 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in btstack_main() [all …]
|
/btstack/port/stm32-f4discovery-cc256x/bsp/ |
H A D | stm32f4_discovery.c | 174 GPIO_InitTypeDef GPIO_InitStruct; in BSP_LED_Init() local 180 GPIO_InitStruct.Pin = GPIO_PIN[Led]; in BSP_LED_Init() 181 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in BSP_LED_Init() 182 GPIO_InitStruct.Pull = GPIO_PULLUP; in BSP_LED_Init() 183 GPIO_InitStruct.Speed = GPIO_SPEED_FAST; in BSP_LED_Init() 185 HAL_GPIO_Init(GPIO_PORT[Led], &GPIO_InitStruct); in BSP_LED_Init() 252 GPIO_InitTypeDef GPIO_InitStruct; in BSP_PB_Init() local 260 GPIO_InitStruct.Pin = BUTTON_PIN[Button]; in BSP_PB_Init() 261 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; in BSP_PB_Init() 262 GPIO_InitStruct.Pull = GPIO_NOPULL; in BSP_PB_Init() [all …]
|
H A D | stm32f4_discovery_audio.c | 565 GPIO_InitTypeDef GPIO_InitStruct; in BSP_AUDIO_OUT_MspInit() local 576 GPIO_InitStruct.Pin = I2S3_SCK_PIN | I2S3_SD_PIN; in BSP_AUDIO_OUT_MspInit() 577 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in BSP_AUDIO_OUT_MspInit() 578 GPIO_InitStruct.Pull = GPIO_NOPULL; in BSP_AUDIO_OUT_MspInit() 579 GPIO_InitStruct.Speed = GPIO_SPEED_FAST; in BSP_AUDIO_OUT_MspInit() 580 GPIO_InitStruct.Alternate = I2S3_SCK_SD_WS_AF; in BSP_AUDIO_OUT_MspInit() 581 HAL_GPIO_Init(I2S3_SCK_SD_GPIO_PORT, &GPIO_InitStruct); in BSP_AUDIO_OUT_MspInit() 583 GPIO_InitStruct.Pin = I2S3_WS_PIN ; in BSP_AUDIO_OUT_MspInit() 584 HAL_GPIO_Init(I2S3_WS_GPIO_PORT, &GPIO_InitStruct); in BSP_AUDIO_OUT_MspInit() 588 GPIO_InitStruct.Pin = I2S3_MCK_PIN; in BSP_AUDIO_OUT_MspInit() [all …]
|
/btstack/port/stm32-f4discovery-usb/bsp/ |
H A D | stm32f4_discovery.c | 174 GPIO_InitTypeDef GPIO_InitStruct; in BSP_LED_Init() local 180 GPIO_InitStruct.Pin = GPIO_PIN[Led]; in BSP_LED_Init() 181 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in BSP_LED_Init() 182 GPIO_InitStruct.Pull = GPIO_PULLUP; in BSP_LED_Init() 183 GPIO_InitStruct.Speed = GPIO_SPEED_FAST; in BSP_LED_Init() 185 HAL_GPIO_Init(GPIO_PORT[Led], &GPIO_InitStruct); in BSP_LED_Init() 252 GPIO_InitTypeDef GPIO_InitStruct; in BSP_PB_Init() local 260 GPIO_InitStruct.Pin = BUTTON_PIN[Button]; in BSP_PB_Init() 261 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; in BSP_PB_Init() 262 GPIO_InitStruct.Pull = GPIO_NOPULL; in BSP_PB_Init() [all …]
|
H A D | stm32f4_discovery_audio.c | 562 GPIO_InitTypeDef GPIO_InitStruct; in BSP_AUDIO_OUT_MspInit() local 573 GPIO_InitStruct.Pin = I2S3_SCK_PIN | I2S3_SD_PIN; in BSP_AUDIO_OUT_MspInit() 574 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in BSP_AUDIO_OUT_MspInit() 575 GPIO_InitStruct.Pull = GPIO_NOPULL; in BSP_AUDIO_OUT_MspInit() 576 GPIO_InitStruct.Speed = GPIO_SPEED_FAST; in BSP_AUDIO_OUT_MspInit() 577 GPIO_InitStruct.Alternate = I2S3_SCK_SD_WS_AF; in BSP_AUDIO_OUT_MspInit() 578 HAL_GPIO_Init(I2S3_SCK_SD_GPIO_PORT, &GPIO_InitStruct); in BSP_AUDIO_OUT_MspInit() 580 GPIO_InitStruct.Pin = I2S3_WS_PIN ; in BSP_AUDIO_OUT_MspInit() 581 HAL_GPIO_Init(I2S3_WS_GPIO_PORT, &GPIO_InitStruct); in BSP_AUDIO_OUT_MspInit() 585 GPIO_InitStruct.Pin = I2S3_MCK_PIN; in BSP_AUDIO_OUT_MspInit() [all …]
|
/btstack/port/stm32-l476rg-nucleo-sx1280/Src/ |
H A D | main.c | 326 GPIO_InitTypeDef GPIO_InitStruct = {0}; in MX_GPIO_Init() local 341 GPIO_InitStruct.Pin = B1_Pin; in MX_GPIO_Init() 342 GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING; in MX_GPIO_Init() 343 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 344 HAL_GPIO_Init(B1_GPIO_Port, &GPIO_InitStruct); in MX_GPIO_Init() 347 GPIO_InitStruct.Pin = LED_RX_Pin|LED_TX_Pin; in MX_GPIO_Init() 348 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 349 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 350 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() 351 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); in MX_GPIO_Init() [all …]
|
H A D | stm32l4xx_hal_msp.c | 141 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_SPI_MspInit() local 156 GPIO_InitStruct.Pin = RADIO_SCK_Pin|RADIO_MISO_Pin|RADIO_MOSI_Pin; in HAL_SPI_MspInit() 157 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_SPI_MspInit() 158 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_SPI_MspInit() 159 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_SPI_MspInit() 160 GPIO_InitStruct.Alternate = GPIO_AF5_SPI1; in HAL_SPI_MspInit() 161 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); in HAL_SPI_MspInit() 246 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_UART_MspInit() local 260 GPIO_InitStruct.Pin = USART_TX_Pin|USART_RX_Pin; in HAL_UART_MspInit() 261 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_UART_MspInit() [all …]
|
/btstack/port/stm32-l073rz-nucleo-em9304/Src/ |
H A D | stm32l0xx_hal_msp.c | 91 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_SPI_MspInit() local 106 GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7; in HAL_SPI_MspInit() 107 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_SPI_MspInit() 108 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_SPI_MspInit() 109 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_SPI_MspInit() 110 GPIO_InitStruct.Alternate = GPIO_AF0_SPI1; in HAL_SPI_MspInit() 111 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); in HAL_SPI_MspInit() 196 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_UART_MspInit() local 210 GPIO_InitStruct.Pin = USART_TX_Pin|USART_RX_Pin; in HAL_UART_MspInit() 211 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_UART_MspInit() [all …]
|
H A D | main.c | 259 GPIO_InitTypeDef GPIO_InitStruct = {0}; in MX_GPIO_Init() local 271 GPIO_InitStruct.Pin = B1_Pin; in MX_GPIO_Init() 272 GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING; in MX_GPIO_Init() 273 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 274 HAL_GPIO_Init(B1_GPIO_Port, &GPIO_InitStruct); in MX_GPIO_Init() 277 GPIO_InitStruct.Pin = EN_Pin|SPI1_CSN_Pin; in MX_GPIO_Init() 278 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; in MX_GPIO_Init() 279 GPIO_InitStruct.Pull = GPIO_NOPULL; in MX_GPIO_Init() 280 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in MX_GPIO_Init() 281 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); in MX_GPIO_Init() [all …]
|
/btstack/port/stm32-wb55xx-nucleo-freertos/Src/ |
H A D | main.c | 238 GPIO_InitTypeDef GPIO_InitStruct; in Init_UART() local 245 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in Init_UART() 246 GPIO_InitStruct.Pull = GPIO_NOPULL; in Init_UART() 247 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in Init_UART() 248 GPIO_InitStruct.Alternate = DEBUG_GPIO_AF; in Init_UART() 250 GPIO_InitStruct.Pin = DEBUG_USART_TX_Pin; in Init_UART() 251 HAL_GPIO_Init(DEBUG_USART_TX_GPIO_Port, &GPIO_InitStruct); in Init_UART() 253 GPIO_InitStruct.Pin = DEBUG_USART_RX_Pin; in Init_UART() 254 HAL_GPIO_Init(DEBUG_USART_RX_GPIO_Port, &GPIO_InitStruct); in Init_UART()
|
/btstack/port/stm32-f4discovery-usb/USB_HOST/Target/ |
H A D | usbh_conf.c | 65 GPIO_InitTypeDef GPIO_InitStruct = {0}; in HAL_HCD_MspInit() local 79 GPIO_InitStruct.Pin = VBUS_FS_Pin; in HAL_HCD_MspInit() 80 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; in HAL_HCD_MspInit() 81 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_HCD_MspInit() 82 HAL_GPIO_Init(VBUS_FS_GPIO_Port, &GPIO_InitStruct); in HAL_HCD_MspInit() 84 GPIO_InitStruct.Pin = OTG_FS_ID_Pin|OTG_FS_DM_Pin|OTG_FS_DP_Pin; in HAL_HCD_MspInit() 85 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_HCD_MspInit() 86 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_HCD_MspInit() 87 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in HAL_HCD_MspInit() 88 GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; in HAL_HCD_MspInit() [all …]
|
/btstack/port/stm32-f4discovery-cc256x/Drivers/STM32F4xx_HAL_Driver/Src/ |
H A D | stm32f4xx_hal_rcc.c | 751 GPIO_InitTypeDef GPIO_InitStruct; in HAL_RCC_MCOConfig() local 764 GPIO_InitStruct.Pin = MCO1_PIN; in HAL_RCC_MCOConfig() 765 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCC_MCOConfig() 766 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCC_MCOConfig() 767 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_RCC_MCOConfig() 768 GPIO_InitStruct.Alternate = GPIO_AF0_MCO; in HAL_RCC_MCOConfig() 769 HAL_GPIO_Init(MCO1_GPIO_PORT, &GPIO_InitStruct); in HAL_RCC_MCOConfig() 788 GPIO_InitStruct.Pin = MCO2_PIN; in HAL_RCC_MCOConfig() 789 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCC_MCOConfig() 790 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCC_MCOConfig() [all …]
|
/btstack/port/stm32-wb55xx-nucleo-freertos/Drivers/STM32WBxx_HAL_Driver/Src/ |
H A D | stm32wbxx_hal_rcc_ex.c | 1348 GPIO_InitTypeDef GPIO_InitStruct; in HAL_RCCEx_LSCOConfig() local 1356 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCCEx_LSCOConfig() 1357 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCCEx_LSCOConfig() 1358 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_RCCEx_LSCOConfig() 1366 GPIO_InitStruct.Pin = LSCO1_PIN; in HAL_RCCEx_LSCOConfig() 1367 GPIO_InitStruct.Alternate = GPIO_AF0_LSCO; in HAL_RCCEx_LSCOConfig() 1368 HAL_GPIO_Init(LSCO1_GPIO_PORT, &GPIO_InitStruct); in HAL_RCCEx_LSCOConfig() 1376 GPIO_InitStruct.Pin = LSCO2_PIN; in HAL_RCCEx_LSCOConfig() 1377 GPIO_InitStruct.Alternate = GPIO_AF0_LSCO; in HAL_RCCEx_LSCOConfig() 1378 HAL_GPIO_Init(LSCO2_GPIO_PORT, &GPIO_InitStruct); in HAL_RCCEx_LSCOConfig() [all …]
|
H A D | stm32wbxx_hal_rcc.c | 1272 GPIO_InitTypeDef GPIO_InitStruct; in HAL_RCC_MCOConfig() local 1280 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCC_MCOConfig() 1281 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCC_MCOConfig() 1282 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_RCC_MCOConfig() 1290 GPIO_InitStruct.Pin = MCO1_PIN; in HAL_RCC_MCOConfig() 1291 GPIO_InitStruct.Alternate = GPIO_AF0_MCO; in HAL_RCC_MCOConfig() 1292 HAL_GPIO_Init(MCO1_GPIO_PORT, &GPIO_InitStruct); in HAL_RCC_MCOConfig() 1300 GPIO_InitStruct.Pin = MCO2_PIN; in HAL_RCC_MCOConfig() 1301 GPIO_InitStruct.Alternate = GPIO_AF0_MCO; in HAL_RCC_MCOConfig() 1302 HAL_GPIO_Init(MCO2_GPIO_PORT, &GPIO_InitStruct); in HAL_RCC_MCOConfig() [all …]
|