AnsweredAssumed Answered

expected string literal before 'CLI'

Question asked by ANKUR CHAUHAN on Dec 24, 2015
Latest reply on Dec 27, 2015 by Kan_Li


I'm using K70 tower kit(TWR-K70F120M).

I'm trying to communicate with the TWR-LCD touch screen(resistive) module using flexbus in bare metal project.

i got some example code for some other microcontroller  then i modified it according to k70 and try to compile it.

I'm getting the following error:


expected string literal before 'CLI'


Line in code where error is coming  : EnableInterrupts;


#define EnableInterrupts   {__asm (CLI);}


what is the root cause of this error and how can i resolve it.

if anyone is having any sample code for k70 touch screen lcd code plz share.


Thanks and Regards