3.2.10.1 DIAG_EIC_Interrupts
Returns the status of the EIC_INTERRUPT diagnostic
This function verifies an external interrupt can be triggered and cleared.
DIAG_TEST_STATUS
DIAG_EIC_Interrupts
(
DIAG_GPIO_PORT_INDEX test_port,
DIAG_GPIO_PORT_PIN test_pin,
DIAG_GPIO_PORT_INDEX ctrl_port,
DIAG_GPIO_PORT_PIN ctrl_pin
);
Diagnostic verifies the following faults do not exist
- Interrupts are not generated
Operating Mode
- Interface can be used at POST and ‘On Demand’
Precondition
- Enable clock for the peripheral.
- DIAG_EIC_Interrupts must have an external jumper between the test pin and control pin.
Parameters
- test_port - port to test
- test_pin - gpio port pin to test
- ctrl_port - gpio ctrl port
- ctrl_pin - gpio ctrl port pin
Returns
- DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.
