This section describes default configuration structures for IRTC Tamper pins. Create a new configuration structure if default ones don't initialize on-chip peripheral in required operating mode (see Creating Configuration Structure).
#define IRTC_TAMPER_PIN_DI_CONFIG |
Value:(tTAMPER){ \
CLR(RTC_FILTER01_CFG_POL1_MASK)| \
SET(RTC_FILTER01_CFG_FIL_DUR1(0x00)), \
}
IRTC tamper pin functionality disabled.
#define IRTC_TAMPER_PIN_POL_HIGH_CONFIG |
( |
|
clksrc, |
|
|
|
period |
|
) |
| |
Value:(tTAMPER){ \
CLR(RTC_FILTER01_CFG_POL1_MASK)| \
SET(RTC_FILTER01_CFG_CLK_SEL1(clksrc))| \
SET(RTC_FILTER01_CFG_FIL_DUR1(period)), \
}
IRTC passive tamper pin polarity high. Configuration options:
- Tamper pin interrupt enabled
- Tamper pin preset to passive mode
- Tamper pin set to input mode
- Tamper detect input is active high
- Parameters
-
#define IRTC_TAMPER_PIN_POL_LOW_CONFIG |
( |
|
clksrc, |
|
|
|
period |
|
) |
| |
Value:(tTAMPER){ \
SET(RTC_FILTER01_CFG_POL1_MASK)| \
SET(RTC_FILTER01_CFG_CLK_SEL1(clksrc))| \
SET(RTC_FILTER01_CFG_FIL_DUR1(period)), \
}
IRTC passive tamper pin polarity low. Configuration options:
- Tamper pin interrupt enabled
- Tamper pin preset to passive mode
- Tamper pin set to input mode
- Tamper detect input is active low
- Parameters
-