Enabled the interrupts api to compile

pull/17/head
Matthew Else 2013-07-22 12:46:46 +01:00
parent 1ace9f18d8
commit 4cf6f09411
1 changed files with 4 additions and 5 deletions

View File

@ -23,8 +23,9 @@
static uint32_t channel_ids[CHANNEL_NUM] = {0};
static gpio_irq_handler irq_handler;
#warning TODO(@toyowata): need implimentation
#if 0
#warning (matthewelse) This code isn't working yet, so don't rely on it, or try to use it.
static inline void handle_interrupt_in(uint32_t channel) {
uint32_t ch_bit = (1 << channel);
@ -127,6 +128,4 @@ void gpio_irq_set(gpio_irq_t *obj, gpio_irq_event event, uint32_t enable) {
&port_reg->IENF &= ~ch_bit;
}
}
}
#endif
}