![]() |
DJI Payload SDK
1.5.3
|
This file is a template containing the PSDK system wrapper function prototypes. More...
#include "psdk_typedef.h"
Go to the source code of this file.
Macros | |
#define | PSDK_ARCH_USE_OS 1 |
#define | PSDK_DBG_PRINTF printf |
Set printf function for log. More... | |
#define | PSDK_MEM_MALLOC malloc |
Set memory malloc function. More... | |
#define | PSDK_MEM_FREE free |
Set memory free function. More... | |
#define | PSDK_MUTEX_T uint32_t |
#define | PSDK_SEMAPHORE_T uint32_t |
#define | PSDK_GET_TIME_MS getSystimeMs |
Functions | |
E_PsdkStat | PsdkSys_MutexNew (uint32_t *mutex) |
Declare the mutex container, initialize the mutex, and create mutex ID. More... | |
E_PsdkStat | PsdkSys_MutexDestroy (uint32_t *mutex) |
Delete the created mutex. More... | |
E_PsdkStat | PsdkSys_MutexLock (uint32_t *mutex) |
Acquire and lock the mutex when peripheral access is required. More... | |
E_PsdkStat | PsdkSys_MutexUnlock (uint32_t *mutex) |
Unlock and release the mutex, when done with the peripheral access. More... | |
E_PsdkStat | PsdkSys_SemaphoreNew (uint32_t *semaphore, uint32_t count) |
Declare the semaphore container, initialize the semaphore, and create semaphore ID. More... | |
E_PsdkStat | PsdkSys_SemaphoreDestroy (uint32_t *semaphore) |
Delete the created semaphore. More... | |
E_PsdkStat | PsdkSys_SemaphoreTimedWait (uint32_t *semaphore, uint32_t waitTime) |
Wait the semaphore until token becomes available. More... | |
E_PsdkStat | PsdkSys_SemaphorePost (uint32_t *semaphore) |
Release the semaphore token. More... | |
This file is a template containing the PSDK system wrapper function prototypes.
All information contained herein is, and remains, the property of DJI. The intellectual and technical concepts contained herein are proprietary to DJI and may be covered by U.S. and foreign patents, patents in process, and protected by trade secret or copyright law. Dissemination of this information, including but not limited to data and other proprietary material(s) incorporated within the information, in any form, is strictly prohibited without the express written consent of DJI.
If you receive this source code without DJI’s authorization, you may not further disseminate the information, and you must immediately remove the source code and notify DJI of its removal. DJI reserves the right to pursue legal actions against you for any loss(es) or damage(s) caused by your failure to do so.