English
Language : 

UM0097 Datasheet, PDF (50/229 Pages) STMicroelectronics – STR71x firmware library
Peripheral firmware overview
UM0097
3.3.2
Common parameter values
APBx values
Table 24 shows the allowed values of the APBx variable.
Table 24. APBx values
APBx
Description
APB1
Selects APB1 bridge
APB2
Selects APB2 bridge
3.3.3
Firmware library functions
Table 25 enumerates the different functions of the APB library.
Table 25. APB library functions
Function Name
Description
APB_ClockConfig
APB_SwResetConfig
Enables/Disables the peripheral clock gating on the specified
APB bridge.
Enables/Disables the software reset for peripherals on the
specified APB bridge.
APB_ClockConfig
Function Name
APB_ClockConfig
Function Prototype
Behavior Description
Input Parameter 1
Input Parameter 2
Input Parameter 3
Output Parameter
Return Value
Required preconditions
Called Functions
void APB_ClockConfig (APB_TypeDef *APBx,
FunctionalState NewState, u16 Periph);
Enables/Disables the peripheral clock gating on the specified APB
bridge.
APBx: selects the APB bridge (APB1 or APB2)
NewStatus: specifies if the peripheral clock is running or stopped.
– ENABLE: The peripheral clock is running
– DISABLE: The peripheral clock is stopped.
Periph: specifies the APB bridge peripheral:
Refer to Bridge peripheral codes on page 49 for more details on the
allowed values of this parameter.
None
None
None
None
Note: 1 One or more peripheral clocks can be enabled on the same APB bridge with a single
APB_ClockConfig function call. One or more peripheral clocks can be disabled with another
APB_ClockConfig function call.
2 It is not possible to simultaneously enable and disable several peripheral clocks in a single
APB_ClockConfig function call.
50/229