Kinetis: More needed in last pinirq change.
This commit is contained in:
parent
6e2ee2b07f
commit
70532f6548
@ -275,9 +275,9 @@ void kinetis_pinirqinitialize(void)
|
|||||||
xcpt_t kinetis_pinirqattach(uint32_t pinset, xcpt_t pinisr, void *arg)
|
xcpt_t kinetis_pinirqattach(uint32_t pinset, xcpt_t pinisr, void *arg)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_PORTINTS
|
#ifdef HAVE_PORTINTS
|
||||||
xcpt_t *isrtab;
|
struct kinetis_pinirq_s *isrtab;
|
||||||
xcpt_t oldisr;
|
xcpt_t oldisr;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
unsigned int port;
|
unsigned int port;
|
||||||
unsigned int pin;
|
unsigned int pin;
|
||||||
|
|
||||||
@ -331,8 +331,9 @@ xcpt_t kinetis_pinirqattach(uint32_t pinset, xcpt_t pinisr, void *arg)
|
|||||||
|
|
||||||
/* Get the old PIN ISR and set the new PIN ISR */
|
/* Get the old PIN ISR and set the new PIN ISR */
|
||||||
|
|
||||||
oldisr = isrtab[pin];
|
oldisr = isrtab[pin].handler;
|
||||||
isrtab[pin] = pinisr;
|
isrtab[pin].handler = pinisr;
|
||||||
|
isrtab[pin].arg = arg;
|
||||||
|
|
||||||
/* And return the old PIN isr address */
|
/* And return the old PIN isr address */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user