jmaurin
Joined: 29 Mar 2008 Posts: 26 Location: Ribeirão Preto, SP, Brasil
|
Microchip Bootloader - remaping? |
Posted: Wed Apr 23, 2008 7:42 pm |
|
|
Hi.
How can i remap vectors & interrupts for Microchip Bootloader in CCS?
I get this code on mplab C18:
Code: |
/** V E C T O R R E M A P P I N G *******************************************/
extern void _startup (void); // See c018i.c in your C18 compiler dir
#pragma code _RESET_INTERRUPT_VECTOR = 0x000800
void _reset (void)
{
_asm goto _startup _endasm
}
#pragma code
#pragma code _HIGH_INTERRUPT_VECTOR = 0x000808
void _high_ISR (void)
{
;
}
#pragma code _LOW_INTERRUPT_VECTOR = 0x000818
void _low_ISR (void)
{
;
}
#pragma code
|
sorry if this already asked, but i couldn't find. |
|