cancel
Showing results for 
Search instead for 
Did you mean: 

NVIC FAST DISABLE ENABLE

damiano23
Associate II
Posted on June 05, 2008 at 09:25

NVIC FAST DISABLE ENABLE

1 REPLY 1
damiano23
Associate II
Posted on May 17, 2011 at 12:36

Hi,

What is the way most fast to enable or disable an interrupt exti?

The interrupt that i use is EXTI_Line1, EXTI_Line11.

The compiler that i use is Ride7.

In the library of NVIC i find this:

for enable

NVIC->ISER[(NVIC_InitStruct->NVIC_IRQChannel >> 0x05)] =

(u32)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (u8)0x1F);

for disable

NVIC->ICER[(NVIC_InitStruct->NVIC_IRQChannel >> 0x05)] =

(u32)0x01 << (NVIC_InitStruct->NVIC_IRQChannel & (u8)0x1F);

so i change it with this value for example (exti1):

NVIC->ISER[(0X07 >> 0x05)] = (u32)0x01 << (0X07 & (u8)0x1F);

but it is this error

error: 'NVIC_TypeDef' has no member named 'ISER'

What can I do?

Thanks.