![](/images/new-backgrounds/1263115/26311591x1.webp)
6.4 Source Files
This section describes the source files.
6.4.1 Target.h
The user must define the PCB target specific #defines in the Target.h in the
. file for a successful port.
NOTE
Several other #defines are made in the target description in target.h. The #defines are used by the 802.15.4 MAC/PHY build. The listed #defines are the ones which must (also) be defined for the Embedded Bootloader:
Example for the Freescale TARGET_DIG528_2 and TARGET_DIG536_2:
MC13192 reset pin connection:
#define | HWAssertAbelReset | PTCD | &= | ~0x10; | // | Reset | = | 0; |
#define | HWDeAssertAbelReset | PTCD | = | 0x10; | // | Reset | = | 1; |
Optional for Safe Mode Boot indicator function (LED pin connections):
#define LED1ON PTDD &= 0xFE; #define LED1OFF PTDD = 0x01; #define LED1TOGGLE PTDD ^= 0x01;
#define LED2ON PTDD & = 0xFD; #define LED2OFF PTDD = 0x02; #define LED2TOGGLE PTDD ^ = 0x02;
#define LED3ON PTDD & = 0xF7; #define LED3OFF PTDD = 0x08; #define LED3TOGGLE PTDD ^ = 0x08;
#define LED4ON PTDD & = 0xEF; #define LED4OFF PTDD = 0x10; #define LED4TOGGLE PTDD ^ = 0x10;
The MC13192 attention and reset pin (bit) positions:
#define | ABEL_ATT_PIN | (1<<2) |
#define | ABEL_RESET_PIN | (1<<4) |
HCS08 port setup macros:
#define mSETUP_PORT_A //PTAPE = 0x3C;\
Embedded Bootloader Reference Manual, Rev 0.0 | Freescale Semiconductor |