#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.
Embedded Bootloader Reference Manual, Rev 0.0 | Freescale Semiconductor |