I have problem with add new interrupt in Ap-as-Hub code of SimpliciTI like this
#include "bsp.h"
#include "mrfi.h"
#include "nwk_types.h"
#include "nwk_api.h"
#include "bsp_leds.h"
#include "bsp_buttons.h"
#include "nwk_pll.h"
#include <hal_cc8051.h>
#include <ioCCxx10_bitdef.h>
#include <ioCC1110.h>
#ifndef APP_AUTO_ACK
#error ERROR: Must define the macro APP_AUTO_ACK for this application.
#endif
void toggleLED(uint8_t);
static void linkTo(void);
//static uint8_t sTid = 0;
static linkID_t sLinkID1 = 0;
#define SPIN_ABOUT_A_SECOND NWK_DELAY(1000)
#define SPIN_ABOUT_A_QUARTER_SECOND NWK_DELAY(250)
#define PIN BIT5
/* How many times to try a Tx and miss an acknowledge before doing a scan */
#define MISSES_IN_A_ROW 2
#pragma vector = P1INT_VECTOR
__interrupt void p1_ISR(void)
{
// Note that the order in which the following flags are cleared is important.
// For level triggered interrupts (port interrupts) one has to clear the module
// interrupt flag prior to clearing the CPU interrupt flags.
P1IFG &= ~PIN; // Clear status flag for pin
P1IF = 0; // Clear CPU interrupt status flag for P1
P1_0 ^= 1; // Toggle SRF04EB LED3
}
After building, I got Error[Pa045]: function "p1_ISR" has no prototype
Please help me