User's Manual

LR/WPAN PAN802154HAR Application Notes
Doc Number: Rev A3
17
#define PB1DIR PTADD_PTADD3 <-- Delete
#define PB2 PTAD_PTAD4 <-- Delete
#define PB2PU PTAPE_PTAPE4 <-- Delete
#define PB2DIR PTADD_PTADD4 <-- Delete
#define PB3 PTAD_PTAD5 <-- Delete
#define PB3PU PTAPE_PTAPE5 <-- Delete
#define PB3DIR PTADD_PTADD5 <-- Delete
#define PB0IE KBI1PE_KBI1PE2
#define PB1IE KBI1PE_KBI1PE3 <-- Delete
#define PB2IE KBI1PE_KBI1PE4 <-- Delete
#define PB3IE KBI1PE_KBI1PE5 <-- Delete
#define PRESSED 0
#endif
3.6.4.2 Header File Modification for 802.15.4 MAC applications
For 802.15.4 MAC applications, the Target.h header file needs to be edited in order to remove the
configuration for the SW2, SW3, SW4 and LED2, LED3, LED4, as well as any Macros that exist for
Switches and LED’s that do not exist on the PAN802154. This file is in the 802.15.4 Directory under
Src/GHDR/Target.h.
Also, no application should call any LED macros.
Port A and D Setup
Original code looks as follows
#define mSETUP_PORT_A PTAPE = 0x3C;\ <-- Change to 0x04
PTADD = 0x00;
#define mSETUP_PORT_D PTDPE = 0x00;\
PTDDD = (0x01 | 0x02| 0x08 | 0x10); <-- only keep 0x01
After editing, the code will be as shown below
#define mSETUP_PORT_A PTAPE = 0x04;\
PTADD = 0x00;
#define mSETUP_PORT_D PTDPE = 0x00;\
PTDDD = (0x01);
LED Setup
Original code looks as follows
#define LED1_PIN (1<<0)
#define LED2_PIN (1<<1) <- Delete