SparkFun Forums 

Where electronics enthusiasts find answers.

Everything ARM and LPC
By EnneGi
#161155
Hi all! I need your help for my porting of a source.

I take a source code of LPC214x and I found this:
Code: Select all
 

void

EnterCriticalSection(  )

{

        VIC_Temp = VICIntEnable;    /* Save VICIntEnable */

 VICIntEnClr = VIC_Temp;     /* Disable Interruptions */

}

 

void

ExitCriticalSection(  )

{

    VICIntEnable = VIC_Temp;    /* Restore VICIntEnable */

}

How I "traslate" this for my LPC1768? Thanks a lot!