FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap_util.h File Reference

Macros

#define MAKE_VERSION(major, minor, bugfix)
 Construct a status code value from a group and code number. More...
 
#define MAKE_STATUS(group, code)
 Construct the version number for drivers. More...
 
#define ARRAY_SIZE(x)
 Computes the number of elements in an array. More...
 

Typedefs

typedef int32_t status_t
 Type used for all status and error return values. More...
 

Enumerations

enum  _status_groups
 Status group numbers. More...
 
enum  _generic_status
 Generic status return codes. More...
 

Functions

static void _bitfield_mask_copy (uint32_t *bitfield, uint32_t mask)
 Copy mask to target variable. More...
 
static void _bitfield_mask_init (uint32_t *bitfield, int nbBits)
 Initial target mask according to number of bits. More...
 
static void _bitfield_clear (uint32_t *bitfield)
 Clean all mask bits of target. More...
 
static int _bitfield_get (uint32_t bitfield)
 Get the number of bit 1 of target. More...
 
static int _bitfield_alloc (uint32_t *bitfield)
 TODO. More...
 
static int _bitfield_reserve (uint32_t *bitfield, int id)
 Reserve a bit (set to 0) in target. More...
 
static void _bitfield_free (uint32_t *bitfield, int id)
 Free the mask (set to 1) according to event number. More...
 

Variables

uint32_t cluster_is_on