
Re: Как се премахва interrupt handler при CCS PIC24?
Ами не знам за този различен ли е компилатора но по принцип CCS-a си имаше таква директива .. те това ли ти трябва :
#int_global
Syntax:
#INT_GLOBAL
Elements:
None
Purpose:
This directive causes the following function to replace the compiler interrupt dispatcher. The function is normally not required and should be used with great caution. When used, the compiler does not generate start-up code or clean-up code, and does not save the registers.
Examples:
#int_global
isr() { // Will be located at location 4 for PIC16 chips.
#asm
bsf isr_flag
retfie
#endasm
}