Microchip® Advanced Software Framework

pds_task_handler.h File Reference

This is the PDS Driver Task Manager header file which calls PDS task scheduler.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define PDS_TASKS_COUNT   1u
 

Enumerations

enum  PdsTaskIds_t { PDS_STORE_DELETE_TASK_ID = (1 << 0) }
 

Functions

SYSTEM_TaskStatus_t PDS_TaskHandler (void)
 PDS task handler. More...
 
void pdsClearTask (PdsTaskIds_t id)
 Clear task for PDS task manager. More...
 
void pdsPostTask (PdsTaskIds_t id)
 Set task for PDS task manager. More...
 

#define PDS_TASKS_COUNT   1u

Referenced by PDS_TaskHandler().

Enumerator
PDS_STORE_DELETE_TASK_ID 

SYSTEM_TaskStatus_t PDS_TaskHandler ( void  )

PDS task handler.

This function is called to process pds task. SHOULD be defined in PDS.

References ATOMIC_SECTION_ENTER, ATOMIC_SECTION_EXIT, PDS_TASK_ID, PDS_TASKS_COUNT, pdsTaskFlags, pdsTaskHandlers, SYSTEM_PostTask(), and SYSTEM_TASK_SUCCESS.

void pdsClearTask ( PdsTaskIds_t  id)

Clear task for PDS task manager.

Parameters
[in]id- a single value from the type PdsTaskIds_t

References ATOMIC_SECTION_ENTER, ATOMIC_SECTION_EXIT, and pdsTaskFlags.

void pdsPostTask ( PdsTaskIds_t  id)

Set task for PDS task manager.

Parameters
[in]id- a single value from the type PdsTaskIds_t

References ATOMIC_SECTION_ENTER, ATOMIC_SECTION_EXIT, PDS_TASK_ID, pdsTaskFlags, and SYSTEM_PostTask().

Referenced by PDS_Delete(), PDS_Store(), PDS_StoreAll(), and pdsStoreDeleteHandler().