[<<][arm][>>][..]
Wed Aug 14 14:24:45 EDT 2013

Disable / Enable interrupts

        // disable
        asm("mrs r0, cpsr\n"
            "orr r0,r0,#0x80\n"
            "msr cpsr_c,r0\n"
            "mov r0,#1\n"
            "bx lr\n");


        // enable
        asm("mrs r0, cpsr\n"
            "bic r0,r0,#0x80\n"
            "msr cpsr_c,r0\n"
            "bx lr\n");



[Reply][About]
[<<][arm][>>][..]