Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_m3.c
/***************************************************************************/
/**
 *
 *  EtaCspM3IntDisable - Disable interrupts in the M3.
 *
 *  @note Does not support nesting.
 *
 ******************************************************************************/
Disable interrupts in the M3.
@note Does not support nesting.
Disable interrupts in the M3 . @note Does not support nesting .
void
EtaCspM3IntDisable(void)
{
 Keil compiler
#ifdef __CC_ARM
    uint32_t ui32Temp;
    __asm("  movs  ui32Temp,      #1");
    __asm("  msr   primask, ui32Temp");
 Everything else.
#else
     fixme this needs to save/restore the enable state.
    __asm("  movs  r0,      #1");
    __asm("  msr   primask, r0");
#endif
}
void EtaCspM3IntDisable ( void ) { #ifdef __CC_ARM uint32_t ui32Temp ; __asm ( " " ) ; __asm ( " " ) ; #else __asm ( " " ) ; __asm ( " " ) ; #endif }
EtaCspM3IntDisable - Disable interrupts in the M3.
EtaCspM3IntDisable - Disable interrupts in the M3 .
// // Keil compiler // // // Everything else. // // fixme this needs to save/restore the enable state.