Hw_init.h, Hw_init.c, Main.c – Freescale Semiconductor 802.15.4 User Manual

Page 48: Hw_init.h -6, Hw_init.c -6, Main.c -6, 4 hw_init.h, 5 hw_init.c, 6 main.c

Advertising
background image

6-6 Embedded Bootloader Reference Manual, Rev 0.0 Freescale Semiconductor

#define SET_OUTPUT LED1ON // Defined in Target.h

#endif defined TARGET_DIG528_2 || defined TARGET_DIG536_2

6.4.4 HW_Init.h

This file contains prototypes of all the init functions and defines.

6.4.5 HW_Init.c

This file contains some hardware init functions which depend on the PCB layout.

void HWResetAbel(void)

Reset of MC13192 RF chip (do not change)

void Safe_Boot_Mode_Indicator(void)

Users can change this function so it matches the

functions available for a particular PCB. The
function can also be left empty. Default is a GPIO
pin set low to light an LED.

void HW_Init()

The init main function.

NOTE

User can add more functions if required for a particular PCB.
Do not change the calling sequence.

6.4.6 main.c

This file contains the Embedded Bootloader main function and the Embedded version number.

void main(void)

It calls the hardware init function and then the
Embedded Bootloader state machine. The state
machine never returns.

NOTE

Dummy references are made to the version number strings for the
Embedded_Bootloader_Functionality_Lib and HCS08_Flash_Lib to
place the numbers in the executable image. If the version numbers are
not required, they can be removed by removing the reference to the
version number which frees up more code memory for user code.

Advertising