mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
imx233/fuze+: implement gpio interrupts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30194 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
792dd33047
commit
7d1d4c6f07
2 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ default_interrupt(INT_SSP2_DMA);
|
||||||
default_interrupt(INT_SSP2_ERROR);
|
default_interrupt(INT_SSP2_ERROR);
|
||||||
default_interrupt(INT_I2C_DMA);
|
default_interrupt(INT_I2C_DMA);
|
||||||
default_interrupt(INT_I2C_ERROR);
|
default_interrupt(INT_I2C_ERROR);
|
||||||
|
default_interrupt(INT_GPIO0);
|
||||||
|
default_interrupt(INT_GPIO1);
|
||||||
|
default_interrupt(INT_GPIO2);
|
||||||
|
|
||||||
typedef void (*isr_t)(void);
|
typedef void (*isr_t)(void);
|
||||||
|
|
||||||
|
|
@ -72,6 +75,9 @@ static isr_t isr_table[INT_SRC_NR_SOURCES] =
|
||||||
[INT_SRC_SSP2_ERROR] = INT_SSP2_ERROR,
|
[INT_SRC_SSP2_ERROR] = INT_SSP2_ERROR,
|
||||||
[INT_SRC_I2C_DMA] = INT_I2C_DMA,
|
[INT_SRC_I2C_DMA] = INT_I2C_DMA,
|
||||||
[INT_SRC_I2C_ERROR] = INT_I2C_ERROR,
|
[INT_SRC_I2C_ERROR] = INT_I2C_ERROR,
|
||||||
|
[INT_SRC_GPIO0] = INT_GPIO0,
|
||||||
|
[INT_SRC_GPIO1] = INT_GPIO1,
|
||||||
|
[INT_SRC_GPIO2] = INT_GPIO2,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void UIRQ(void)
|
static void UIRQ(void)
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,10 @@
|
||||||
#define INT_SRC_USB_CTRL 11
|
#define INT_SRC_USB_CTRL 11
|
||||||
#define INT_SRC_SSP1_DMA 14
|
#define INT_SRC_SSP1_DMA 14
|
||||||
#define INT_SRC_SSP1_ERROR 15
|
#define INT_SRC_SSP1_ERROR 15
|
||||||
|
#define INT_SRC_GPIO0 16
|
||||||
|
#define INT_SRC_GPIO1 17
|
||||||
|
#define INT_SRC_GPIO2 18
|
||||||
|
#define INT_SRC_GPIO(i) (INT_SRC_GPIO0 + (i))
|
||||||
#define INT_SRC_SSP2_DMA 20
|
#define INT_SRC_SSP2_DMA 20
|
||||||
#define INT_SRC_I2C_DMA 26
|
#define INT_SRC_I2C_DMA 26
|
||||||
#define INT_SRC_I2C_ERROR 27
|
#define INT_SRC_I2C_ERROR 27
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue