MCUXpresso

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

MCUXpresso

285 次查看
BPB
Contributor I

Does MCUXpresso support a way to include Assembly code, inline or file?

0 项奖励
回复
1 回复

276 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

In the C file, you can add the lines like:

__asm volatile ("LDR R0, =0x40000220\n\t"

"MOV R1, #56\n\t"

"STR R1, [R0]");

 

hope it can help you

BR

XiangJun Rong

0 项奖励
回复