PMUFW: Core: Add API to remove a task from scheduler
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
This commit is contained in:
parent
40cd4f3229
commit
54d744d315
3 changed files with 17 additions and 1 deletions
|
@ -204,6 +204,21 @@ XStatus XPfw_CoreScheduleTask(const XPfw_Module_t *ModPtr, u32 Interval,
|
|||
return Status;
|
||||
}
|
||||
|
||||
s32 XPfw_CoreRemoveTask(const XPfw_Module_t *ModPtr, u32 Interval,
|
||||
VoidFunction_t CallbackRef)
|
||||
{
|
||||
s32 Status;
|
||||
|
||||
if ((ModPtr == NULL) || (CorePtr == NULL)) {
|
||||
Status = XST_FAILURE;
|
||||
goto Done;
|
||||
}
|
||||
Status = XPfw_SchedulerRemoveTask(&CorePtr->Scheduler, ModPtr->ModId,
|
||||
Interval, CallbackRef);
|
||||
Done:
|
||||
return Status;
|
||||
}
|
||||
|
||||
void XPfw_CoreTickHandler(void)
|
||||
{
|
||||
if(CorePtr != NULL){
|
||||
|
|
|
@ -56,6 +56,7 @@ XStatus XPfw_CoreConfigure(void);
|
|||
XStatus XPfw_CoreDispatchEvent( u32 EventId);
|
||||
const XPfw_Module_t *XPfw_CoreCreateMod(void);
|
||||
XStatus XPfw_CoreScheduleTask(const XPfw_Module_t *ModPtr, u32 Interval, VoidFunction_t CallbackRef);
|
||||
s32 XPfw_CoreRemoveTask(const XPfw_Module_t *ModPtr, u32 Interval, VoidFunction_t CallbackRef);
|
||||
XStatus XPfw_CoreStopScheduler(void);
|
||||
XStatus XPfw_CoreLoop(void);
|
||||
void XPfw_CorePrintStats(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef ZYNQMP_XPFW_VERSION__H_
|
||||
#define ZYNQMP_XPFW_VERSION__H_
|
||||
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-10-g8c759fe9bbb8"
|
||||
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-11-gd2a7f0000cdd"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue