Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] [gnu arm] interrupts don't work :/

2004-09-24 by Konstantin V. Novick

As far as I know, attribute interrupt in GCC works incorrect.
It's better to use an assembler container, for example:
.extern My_C_ISR_Func
.global ISR_Func

.text
.code 32

ISR_Func:
     stmfd   sp!, {r0-r12, lr}
     bl         My_C_ISR_Func
     ldmfd   sp!, {r0-r12, lr}
     subs     pc, lr, #4
.ltorg

-- 
     �������!
         ���������� aka cd_racer


[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.