AM64x MCU+ SDK  10.00.00
spinlock/v0/spinlock.h File Reference

Introduction

SPINLOCK Driver API/interface file.

Go to the source code of this file.

Macros

#define SPINLOCK_LOCK_STATUS_FREE   (0U)
 Flag to indicate spinlock is free. More...
 
#define SPINLOCK_LOCK_STATUS_INUSE   (1U)
 Flag to indicate spinlock is in use. More...
 

Functions

uint32_t Spinlock_getNumLocks (uint32_t baseAddr)
 This API provides returns the number of locks supported. More...
 
int32_t Spinlock_lock (uint32_t baseAddr, uint32_t lockNumber)
 This API performs the Read operation for Lock status of the SPINLOCK_LOCK_REG, in order to acquire a Spinlock. More...
 
void Spinlock_unlock (uint32_t baseAddr, uint32_t lockNumber)
 This API performs the write operation for Lock status of the SPINLOCK_LOCK_REG, in order to Free the lock If lockNumber is invalid (out of range), no operation is performed Lock state : Write 0x0: Set the lock to Not Taken(Free) Write 0x1: No update to the lock value. More...