18#ifndef neorv32_gptmr_h
19#define neorv32_gptmr_h
29typedef volatile struct __attribute__((packed,aligned(4))) {
36#define NEORV32_GPTMR ((neorv32_gptmr_t*) (NEORV32_GPTMR_BASE))
NEORV32_GPTMR_CTRL_enum
Definition neorv32_gptmr.h:39
@ GPTMR_CTRL_PRSC2
Definition neorv32_gptmr.h:43
@ GPTMR_CTRL_PRSC1
Definition neorv32_gptmr.h:42
@ GPTMR_CTRL_IRQ_PND
Definition neorv32_gptmr.h:47
@ GPTMR_CTRL_MODE
Definition neorv32_gptmr.h:44
@ GPTMR_CTRL_IRQ_CLR
Definition neorv32_gptmr.h:46
@ GPTMR_CTRL_EN
Definition neorv32_gptmr.h:40
@ GPTMR_CTRL_PRSC0
Definition neorv32_gptmr.h:41
void neorv32_gptmr_enable(void)
Definition neorv32_gptmr.c:69
void neorv32_gptmr_setup(int prsc, uint32_t threshold, int cont_mode)
Definition neorv32_gptmr.c:44
void neorv32_gptmr_disable(void)
Definition neorv32_gptmr.c:60
void neorv32_gptmr_irq_ack(void)
Definition neorv32_gptmr.c:78
int neorv32_gptmr_available(void)
Definition neorv32_gptmr.c:26
Definition neorv32_gptmr.h:29
const uint32_t COUNT
Definition neorv32_gptmr.h:32
uint32_t CTRL
Definition neorv32_gptmr.h:30
uint32_t THRES
Definition neorv32_gptmr.h:31