Checks the XINT interrupt test logic.
- Parameters
-
| xintInstance | is the particular instance of the XINT configuraton register. |
| gpio | is the gpio pin in which particular external interrupt is connected. |
| xintCtrMinThreshold | is the minimum threshold value of the XINT counter for particular XINT configuration register. |
| xintCtrMaxThreshold | is the maximum threshold value of the XINT counter for particular XINT configuration register. |
This function performs a test of the XINT interrupt logic, using the gpio pin and corresponding input XBAR. Before performing a test of the XINT , the user is expected to configure the GPIO and input XBAR which will be connected to particular external interrupt. Each GPIO is connected with a specific external interrupt. Input XBAR 4 is connected to XINT1 (fixed) Input XBAR 5 is connected to XINT2 (fixed) Input XBAR 6 is connected to XINT3 (fixed) Input XBAR 13 is connected to XINT4 (fixed) Input XBAR 14 is connected to XINT5 (fixed) Here we follow total 4 tests i.e interrupt is generated for 4 conditions. Rising edge test, Falling edge test, Both edges rising edge and Both edges falling edge. Raise an interrupt for each external interrupt if valid interrupt edge is detected.
- Returns
- SDL_PASS If the test passes.
SDL_EFAIL If the test fails.
SDL_EBADARGS If any of the base address contains invalid values.