RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Modules | Macros

Modules

 COMP Handle Management
 
 COMP external interrupt line management
 

Macros

#define __HAL_COMP_ENABLE_OR(__AF__)   SET_BIT(COMP12->OR, (__AF__))
 Enable the specified bit in the Option register.
 
#define __HAL_COMP_DISABLE_OR(__AF__)   CLEAR_BIT(COMP12->OR, (__AF__))
 Disable the specified bit in the Option register.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_COMP_DISABLE_OR

#define __HAL_COMP_DISABLE_OR (   __AF__)    CLEAR_BIT(COMP12->OR, (__AF__))

Disable the specified bit in the Option register.

Parameters
__AF__specifies the Alternate Function source selection . This parameter can be one of the following values:
  • COMP_OR_AFOPA6 : Alternate Function PA6 source selection
  • COMP_OR_AFOPA8 : Alternate Function PA8 source selection
  • COMP_OR_AFOPB12 : Alternate Function PB12 source selection
  • COMP_OR_AFOPE6 : Alternate Function PE6 source selection
  • COMP_OR_AFOPE15 : Alternate Function PE15 source selection
  • COMP_OR_AFOPG2 : Alternate Function PG2 source selection
  • COMP_OR_AFOPG3 : Alternate Function PG3 source selection
  • COMP_OR_AFOPG4 : Alternate Function PG4 source selection
  • COMP_OR_AFOPI1 : Alternate Function PI1 source selection
  • COMP_OR_AFOPI4 : Alternate Function PI4 source selection
  • COMP_OR_AFOPK2 : Alternate Function PK2 source selection
Return values
None

◆ __HAL_COMP_ENABLE_OR

#define __HAL_COMP_ENABLE_OR (   __AF__)    SET_BIT(COMP12->OR, (__AF__))

Enable the specified bit in the Option register.

Parameters
__AF__specifies the Alternate Function source selection . This parameter can be one of the following values:
  • COMP_OR_AFOPA6 : Alternate Function PA6 source selection
  • COMP_OR_AFOPA8 : Alternate Function PA8 source selection
  • COMP_OR_AFOPB12 : Alternate Function PB12 source selection
  • COMP_OR_AFOPE6 : Alternate Function PE6 source selection
  • COMP_OR_AFOPE15 : Alternate Function PE15 source selection
  • COMP_OR_AFOPG2 : Alternate Function PG2 source selection
  • COMP_OR_AFOPG3 : Alternate Function PG3 source selection
  • COMP_OR_AFOPG4 : Alternate Function PG4 source selection
  • COMP_OR_AFOPI1 : Alternate Function PI1 source selection
  • COMP_OR_AFOPI4 : Alternate Function PI4 source selection
  • COMP_OR_AFOPK2 : Alternate Function PK2 source selection
Return values
None