PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches
Functions

Functions

void Error_Handler (void)
 This function is executed in case of error occurrence.
 
static void BSP_GPIOStruct_DefaultConfig (GPIO_InitTypeDef *GPIO_InitStruct, uint32_t pin, uint32_t mode, uint32_t alternate)
 Configure the GPIO struct with default values.
 
static void BSP_GPIOStruct_IOConfig (GPIO_InitTypeDef *GPIO_InitStruct, uint32_t pin, uint32_t mode, uint32_t speed)
 Configure the GPIO struct as IO.
 

Detailed Description

Function Documentation

◆ BSP_GPIOStruct_DefaultConfig()

static void BSP_GPIOStruct_DefaultConfig ( GPIO_InitTypeDef *  GPIO_InitStruct,
uint32_t  pin,
uint32_t  mode,
uint32_t  alternate 
)
inlinestatic
Parameters
GPIO_InitStructstruct
pinSpecifies the GPIO pins to be configured. This parameter can be any value of GPIO_pins_define.
modeSpecifies the operating mode for the selected pins. This parameter can be a value of GPIO_mode_define.
alternatePeripheral to be connected to the selected pins. This parameter can be a value of GPIO_Alternate_function_selection.
Note
PULL = GPIO_NOPULL Speed = GPIO_SPEED_FREQ_HIGH

◆ BSP_GPIOStruct_IOConfig()

static void BSP_GPIOStruct_IOConfig ( GPIO_InitTypeDef *  GPIO_InitStruct,
uint32_t  pin,
uint32_t  mode,
uint32_t  speed 
)
inlinestatic
Parameters
GPIO_InitStructstruct
pinSpecifies the GPIO pins to be configured. This parameter can be any value of GPIO_pins_define.
modeSpecifies the operating mode for the selected pins. This parameter can be a value of GPIO_mode_define.
speedSpecifies the speed for the selected pins. This parameter can be a value of GPIO_speed_define.
Note
PULL = GPIO_NOPULL