![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Hardware spinlock (HWSPINLOCK) HW driver header file. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | neorv32_hwspinlock_t |
Macros | |
IO Device: Hardware Spinlock (HWSPINLOCK) | |
#define | NEORV32_HWSPINLOCK ((neorv32_hwspinlock_t*) (NEORV32_HWSPINLOCK_BASE)) |
Functions | |
Prototypes | |
int | neorv32_hwspinlock_available (void) |
int | neorv32_hwspinlock_acquire (int select) |
void | neorv32_hwspinlock_acquire_blocking (int select) |
void | neorv32_hwspinlock_release (int select) |
int | neorv32_hwspinlock_probe (int select) |
void | neorv32_hwspinlock_clear (void) |
Hardware spinlock (HWSPINLOCK) HW driver header file.
#define NEORV32_HWSPINLOCK ((neorv32_hwspinlock_t*) (NEORV32_HWSPINLOCK_BASE)) |
HWSPINLOCK module hardware handle (neorv32_hwspinlock_t)
int neorv32_hwspinlock_acquire | ( | int | select | ) |
Try to acquire hardware spinlock.
select | Spinlock select (0..31). |
void neorv32_hwspinlock_acquire_blocking | ( | int | select | ) |
Block until spinlock is acquired.
select | Spinlock select (0..31). |
int neorv32_hwspinlock_available | ( | void | ) |
Check if hardware spinlock module was synthesized.
void neorv32_hwspinlock_clear | ( | void | ) |
Clear/release all hardware spinlocks.
int neorv32_hwspinlock_probe | ( | int | select | ) |
Probe state of hardware spinlock.
select | Spinlock select (0..31). |
void neorv32_hwspinlock_release | ( | int | select | ) |
Release hardware spinlock.
select | Spinlock select (0..31). |