Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

COMP configuration locking function

COMP configuration locking function
[COMP_Private_Functions]

COMP1, COMP2,...COMP7 configuration locking function COMP1, COMP2,...COMP7 configuration can be locked each separately. More...

Functions

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

Detailed Description

COMP1, COMP2,...COMP7 configuration locking function COMP1, COMP2,...COMP7 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,:the selected comparator. This parameter can be COMP_Selection_COMPx where x can be 1 to 7 to select the COMP peripheral.
Return values:
None

Definition at line 482 of file stm32f30x_comp.c.