//PTADD

= 0x00;

//All Port A input

#define

mSETUP_PORT_B

//PTBD = 0x00;\

 

 

 

//PTBPE

=

0x00;\

 

 

 

//PTBDD

=

0x00;

 

#define

mSETUP_PORT_C

PTCDD =

(ABEL_RESET_PIN ABEL_ATT_PIN );

Optional for Safe Mode Boot indicator function (LEDs as output):

#define mSETUP_PORT_D PTDPE = 0x00;\

PTDDD = (0x01 0x02 0x08 0x10);

6.4.2 Reset_Vector.c

The system reset vector.

NOTE

The application does not have a reset vector. If a reset occurs in an application, the Embedded Bootloader’s reset vector is called.

6.4.3 Embedded_Bootloader_Target.h

Users must define the following #defines in the Embedded_Bootloader_Target.h to achieve a successful port.

Version number of the build:

//Version number update:

//- Big change (interface/main code structure/new feature) Y.xx, increment

Y

//- Smaller change (function code structure/bug fix) x.Yx, increment Y

//- Small change (bug fix) x.xY, increment Y

#define EMBEDDED_BOOTLOADER_VERSION "5.01" // Number used with all PCB/Targets

NOTE

Use caution if the version number is changed. You should only change

the PCB board number (#define EMBEDDED_BOOTLOADER_TARGET) to indicate a special PCB version.

Example for the TARGET_DIG528_2 and TARGET_DIG536_2:

#if defined TARGET_DIG528_2 defined TARGET_DIG536_2 // PCB board number for release

#define EMBEDDED_BOOTLOADER_TARGET "528&536"

//Setup port as output where "signal" must be set/cleared to indicate safe mode boot

#define SAFE_MODE_PORT_SETUP PTDDD = 0x01; // Port D bit 0

Freescale Semiconductor

Embedded Bootloader Reference Manual, Rev. 0.0

6-5

Page 47
Image 47
Freescale Semiconductor 802.15.4 manual ResetVector.c, EmbeddedBootloaderTarget.h