Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches
rv.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for rv.h:

Go to the source code of this file.

Macros

#define SET_BITS(REG, BIT)   ((REG) |= (BIT))
 
#define CLEAR_BITS(REG, BIT)   ((REG) &= ~(BIT))
 
#define READ_BITS(REG, BIT)   ((REG) & (BIT))
 
#define WRITE_BITS(REG, CLEARMASK, SETMASK)   ((REG) = (((REG) & (~(CLEARMASK))) | (SETMASK)))
 
#define READ_CSR(REG)
 
#define WRITE_CSR(REG, VAL)
 
#define SWAP_CSR(REG, VAL)
 
#define SET_CSR_BITS(REG, BIT)
 
#define CLEAR_CSR_BITS(REG, BIT)
 

Enumerations

enum  State {
  RESET = 0UL , SET = !RESET , DISABLE = RESET , ENABLE = SET ,
  LOW = RESET , HIGH = SET
}
 
enum  Status { OK = 0U , ERROR , BUSY , TIMEOUT }