RTEMS 6.1-rc5
|
Macros | |
#define | __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line rising edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line rising edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line falling edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line falling edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the COMP1 EXTI line rising & falling edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the COMP1 EXTI line rising & falling edge trigger. | |
#define | __HAL_COMP_COMP1_EXTI_ENABLE_IT() SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line in interrupt mode. | |
#define | __HAL_COMP_COMP1_EXTI_DISABLE_IT() CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line in interrupt mode. | |
#define | __HAL_COMP_COMP1_EXTI_ENABLE_EVENT() SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP1_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP1_EXTI_GET_FLAG() READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1) |
Check whether the COMP1 EXTI line flag is set or not. | |
#define | __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1) |
Clear the COMP1 EXTI flag. | |
#define | __HAL_COMP_COMP1_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP1) |
Generate a software interrupt on the COMP1 EXTI line. | |
#define | __HAL_COMP_COMP1_EXTID3_ENABLE_EVENT() SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 D3 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP1_EXTID3_DISABLE_EVENT() CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 D3 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line rising edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line rising edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line falling edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line falling edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_ENABLE_RISING_FALLING_EDGE() |
Enable the COMP2 EXTI line rising & falling edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_DISABLE_RISING_FALLING_EDGE() |
Disable the COMP2 EXTI line rising & falling edge trigger. | |
#define | __HAL_COMP_COMP2_EXTI_ENABLE_IT() SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line. | |
#define | __HAL_COMP_COMP2_EXTI_DISABLE_IT() CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line. | |
#define | __HAL_COMP_COMP2_EXTI_ENABLE_EVENT() SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP2_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP2_EXTI_GET_FLAG() READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2) |
Check whether the COMP2 EXTI line flag is set or not. | |
#define | __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2) |
Clear the the COMP2 EXTI flag. | |
#define | __HAL_COMP_COMP2_EXTID3_ENABLE_EVENT() SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 D3 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP2_EXTID3_DISABLE_EVENT() CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 D3 EXTI Line in event mode. | |
#define | __HAL_COMP_COMP2_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP2) |
Generate a software interrupt on the COMP2 EXTI line. | |
#define | __HAL_COMP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CFGR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Checks if the specified COMP interrupt source is enabled or disabled. | |
#define | __HAL_COMP_GET_FLAG(__FLAG__) ((COMP12->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified COMP flag is set or not. | |
#define | __HAL_COMP_CLEAR_FLAG(__FLAG__) (COMP12->ICFR = (__FLAG__)) |
Clears the specified COMP pending flag. | |
#define | __HAL_COMP_CLEAR_C1IFLAG() __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C1IF) |
Clear the COMP C1I flag. | |
#define | __HAL_COMP_CLEAR_C2IFLAG() __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C2IF) |
Clear the COMP C2I flag. | |
#define | __HAL_COMP_ENABLE_IT(__HANDLE__, __INTERRUPT__) ( ((__HANDLE__)->Instance->CFGR) |= (__INTERRUPT__) ) |
Enable the specified COMP interrupt. | |
#define | __HAL_COMP_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CFGR) &= ~(__INTERRUPT__)) |
Disable the specified COMP interrupt. | |
#define __HAL_COMP_CLEAR_C1IFLAG | ( | ) | __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C1IF) |
Clear the COMP C1I flag.
None |
#define __HAL_COMP_CLEAR_C2IFLAG | ( | ) | __HAL_COMP_CLEAR_FLAG( COMP_CLEAR_C2IF) |
Clear the COMP C2I flag.
None |
#define __HAL_COMP_CLEAR_FLAG | ( | __FLAG__ | ) | (COMP12->ICFR = (__FLAG__)) |
Clears the specified COMP pending flag.
__FLAG__ | specifies the flag to check. This parameter can be any combination of the following values:
|
None |
#define __HAL_COMP_COMP1_EXTI_CLEAR_FLAG | ( | ) | WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1) |
Clear the COMP1 EXTI flag.
None |
#define __HAL_COMP_COMP1_EXTI_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE | ( | ) | CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line falling edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_DISABLE_IT | ( | ) | CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line in interrupt mode.
None |
#define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE | ( | ) | CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 EXTI line rising edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_FALLING_EDGE | ( | ) |
Disable the COMP1 EXTI line rising & falling edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_ENABLE_EVENT | ( | ) | SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE | ( | ) | SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line falling edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_ENABLE_IT | ( | ) | SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line in interrupt mode.
None |
#define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE | ( | ) | SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 EXTI line rising edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
Enable the COMP1 EXTI line rising & falling edge trigger.
None |
#define __HAL_COMP_COMP1_EXTI_GENERATE_SWIT | ( | ) | SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP1) |
Generate a software interrupt on the COMP1 EXTI line.
None |
#define __HAL_COMP_COMP1_EXTI_GET_FLAG | ( | ) | READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP1) |
Check whether the COMP1 EXTI line flag is set or not.
RESET | or SET |
#define __HAL_COMP_COMP1_EXTID3_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1) |
Disable the COMP1 D3 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP1_EXTID3_ENABLE_EVENT | ( | ) | SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP1) |
Enable the COMP1 D3 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP2_EXTI_CLEAR_FLAG | ( | ) | WRITE_REG(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2) |
Clear the the COMP2 EXTI flag.
None |
#define __HAL_COMP_COMP2_EXTI_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE | ( | ) | CLEAR_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line falling edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_DISABLE_IT | ( | ) | CLEAR_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line.
None |
#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE | ( | ) | CLEAR_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 EXTI line rising edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_FALLING_EDGE | ( | ) |
Disable the COMP2 EXTI line rising & falling edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_ENABLE_EVENT | ( | ) | SET_BIT(EXTI_D1->EMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE | ( | ) | SET_BIT(EXTI->FTSR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line falling edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_ENABLE_IT | ( | ) | SET_BIT(EXTI_D1->IMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line.
None |
#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE | ( | ) | SET_BIT(EXTI->RTSR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 EXTI line rising edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_FALLING_EDGE | ( | ) |
Enable the COMP2 EXTI line rising & falling edge trigger.
None |
#define __HAL_COMP_COMP2_EXTI_GENERATE_SWIT | ( | ) | SET_BIT(EXTI->SWIER1, COMP_EXTI_LINE_COMP2) |
Generate a software interrupt on the COMP2 EXTI line.
None |
#define __HAL_COMP_COMP2_EXTI_GET_FLAG | ( | ) | READ_BIT(EXTI_D1->PR1, COMP_EXTI_LINE_COMP2) |
Check whether the COMP2 EXTI line flag is set or not.
RESET | or SET |
#define __HAL_COMP_COMP2_EXTID3_DISABLE_EVENT | ( | ) | CLEAR_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2) |
Disable the COMP2 D3 EXTI Line in event mode.
None |
#define __HAL_COMP_COMP2_EXTID3_ENABLE_EVENT | ( | ) | SET_BIT(EXTI->D3PMR1, COMP_EXTI_LINE_COMP2) |
Enable the COMP2 D3 EXTI Line in event mode.
None |
#define __HAL_COMP_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CFGR) &= ~(__INTERRUPT__)) |
Disable the specified COMP interrupt.
__HANDLE__ | specifies the COMP Handle. |
__INTERRUPT__ | specifies the COMP interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_COMP_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ( ((__HANDLE__)->Instance->CFGR) |= (__INTERRUPT__) ) |
Enable the specified COMP interrupt.
__HANDLE__ | specifies the COMP Handle. |
__INTERRUPT__ | specifies the COMP interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_COMP_GET_FLAG | ( | __FLAG__ | ) | ((COMP12->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified COMP flag is set or not.
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE) |
#define __HAL_COMP_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((((__HANDLE__)->Instance->CFGR & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Checks if the specified COMP interrupt source is enabled or disabled.
__HANDLE__ | specifies the COMP Handle. This parameter can be COMP1 where x: 1 or 2 to select the COMP peripheral. |
__INTERRUPT__ | specifies the COMP interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE) |