* Added missed out pins for external Interrupt. irqmask initialized to 0 in init for gpio irq.

pull/1297/head
akhilpanayam 2015-07-16 15:13:54 +05:30 committed by Karthik Purushothaman
parent b28ce2b780
commit 5d0a913591
2 changed files with 3 additions and 0 deletions

View File

@ -132,8 +132,10 @@ const PinMap PinMap_EXTINT[] = {
{PA09, EXTINT_9, 0},
{PA30, EXTINT_10, 0},
{PA10, EXTINT_10, 0},
{PA31, EXTINT_11, 0},
{PA11, EXTINT_11, 0},
{PA12, EXTINT_12, 0},
{PA24, EXTINT_12, 0},

View File

@ -86,6 +86,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32
NVIC_EnableIRQ(irq_n);
obj->ch = int_channel;
channel_ids[int_channel] = id;
obj->irqmask = 0;
return 0;
}