expected string literal before 'CLI'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

expected string literal before 'CLI'

517 次查看
ankurchauhan123
Contributor I

Hi,

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

Ankur

标签 (1)
0 项奖励
1 回复

408 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Ankur,

CLI is a x86 assembly instruction , while K70 uses ARM thrumb instruction set, the corresponding instruction is "CPSIE Change Processor State, Enable Interrupts", please kindly refer to www.arm.com for more details.

The bare metal K70 examples can be found the following link:

Kinetis 120MHz bare metal sample code

Hope that helps,


Have a great day,
Kan

NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励