Chapter 7
Embedded Bootloader Public Function Description
This section describes the public functions which the 802.15.4/Zigbee application can call in the Embedded Bootloader.
7.1 802.15.4/Zigbee Application Accessible Functions
The following functions, located in the Embedded Bootloader, are made accessible for 802.15.4/Zigbee applications. For example, an 802.15.4/Zigbee application is not required to have programming routines to store NVM data in flash. A function pointer, for each function of the below listed functions, is defined in Embedded Bootloader.c:
Enable_Download_Firmware()
Hard_Reset()
NV_Flash_Setup()
Update_NV_RAM()
FL_ICG_Setup()
UART_Port_Select();
The Embedded_Bootloader.h file contains function pointer prototypes and must be included in source files calling these functions. The function pointers are setup to point to functions with the same name in the Embedded Bootloader.
extern Enable_Download_Firmware_ptr_t Enable_Download_Firmware; extern Hard_Reset_ptr_t Hard_Reset;
extern NV_Flash_Setup_ptr_t NV_Flash_Setup; extern Update_NV_RAM_ptr_t Update_NV_RAM; extern ICG_Setup_ptr_t FL_ICG_Setup;
extern UART_Port_Select_ptr_t UART_Port_Select;
7.1.1 Enable_Download_Firmware
Prototype:
bool_t Enable_Download_Firmware
(
uint8_t interface_state,
uint8_t firmware_state
)
Description:
The application must call this function to make the system ready for a new firmware download. The application must provide a way for the user to interact with the system to call this function.
Freescale Semiconductor | Embedded Bootloader Reference Manual, Rev. 0.0 |