Kinetis assembler instructions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis assembler instructions

826件の閲覧回数
pvidic
Contributor I

Hi, examining Kinetis bootloader source code I found assembler instruction below:

file cmsis_gcc.h:

__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)
{
  __ASM volatile ("cpsid i" : : : "memory");
}

can anyone help me find explanation for the instruction?

0 件の賞賛
2 返答(返信)

705件の閲覧回数
BlackNight
NXP Employee
NXP Employee

"cpsid i" is an assembly instruction to mask (disable) the interrupts on ARM Cortex-M.

About the GNU assembler have a read at

Using as: Top and there is a tuturial and good explanation at ARM GCC Inline Assembler Cookbook 

I hope this helps,

Erich

705件の閲覧回数
mjbcswitzerland
Specialist V