STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
COMP configuration locking function

COMP1 and COMP2 configuration locking function COMP1 and COMP2 configuration can be locked each separately. Unlocking is performed by system reset. More...

Functions

void COMP_LockConfig (uint32_t COMP_Selection)
 Lock the selected comparator (COMP1/COMP2) configuration. More...
 

Detailed Description

COMP1 and COMP2 configuration locking function COMP1 and COMP2 configuration can be locked each separately. Unlocking is performed by system reset.

 ===============================================================================
                     ##### Configuration Lock function #####
 ===============================================================================  

Function Documentation

void COMP_LockConfig ( uint32_t  COMP_Selection)

Lock the selected comparator (COMP1/COMP2) configuration.

Note
Locking the configuration means that all control bits are read-only. To unlock the comparator configuration, perform a system reset.
Parameters
COMP_Selection,:selects the comparator to be locked This parameter can be a value of the following values:
  • COMP_Selection_COMP1: COMP1 configuration is locked.
  • COMP_Selection_COMP2: COMP2 configuration is locked.
Return values
None