Setting up Handlers for the Module - 2020.2 English

Zynq UltraScale+ MPSoC Software Developer Guide (UG1137)

Document ID
UG1137
Release Date
2021-01-05
Version
2020.2 English

Each module can be provided with three handlers which are called during the respective phases as described below:

Table 1. Module Handlers
Module Handler Purpose API for Registering the Handler Execution context
Init Called during the init of the core to configure the module, register for events or add scheduler tasks. This can be used to load the configuration data into the module if required. XPfw_CoreSetCfgHandler(const XPfw_Module_t *ModPtr, XPfwModCfgInitHandler_tCfgHandler); StartUp
Event Handler Called when an event occurs (module should have registered for this event, preferably during the init phase XPfw_CoreSetEventHandler(const XPfw_Module_t *ModPtr, XPfwModEventHandler_t EventHandler); Interrupt
IPI Handler Called when an IPI message with respective module-id arrives XPfw_CoreSetIpiHandler(const XPfw_Module_t *ModPtr, XPfwModIpiHandler_t IpiHandler, u16 IpiId); Interrupt