cancel
Showing results for 
Search instead for 
Did you mean: 

How Disable global interrupt with ARM 32F0

pic_micro
Associate II
Posted on November 02, 2014 at 08:15

Dear All

Following syntax does nit disable the global interrupt

Please advice 

uint32_t PriMask = 0x01;

//void __enable_irq (void);//Global Interrupt enable (using the instruction CPSIE i)

void __set_PRIMASK (uint32_t PriMask );// M0, M3PRIMASK = value// Assign value to Priority Mask Register (usingthe instruction MSR)

//void __disable_irq(void);

//void __diasable_irq(void);

//void __set_PRIMASK (uint32_t __set_PRIMASK);

//uint32_t  __get_PRIMASK(void)

It is seem to be ''PRIMASK;bit does not disable

please advice how disable PRIMASK BIT disable with CMSIS source code

Thanks in advance 

10 REPLIES 10
pic_micro
Associate II
Posted on November 09, 2014 at 05:37

Dear clivel,

Thanks for the advice

Now I need to study after 10 times interrupted by TIM2 the CMU goes to sleep mode

Please give some hints with source codes

void power(){

 PWR->CR |= PWR_CR_PDDS;

SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;

}

Thanks in advance