no-OS
Loading...
Searching...
No Matches
riscvrx_timer.h
Go to the documentation of this file.
1/***************************************************************************/
39
40#ifndef LATTICE_TIMER_H_
41#define LATTICE_TIMER_H_
42
43/******************************************************************************/
44/***************************** Include Files **********************************/
45/******************************************************************************/
46
47#include <stdbool.h>
48#include <stdint.h>
49#include "no_os_timer.h"
50#include "plic.h"
51
52/******************************************************************************/
53/*************************** Types Declarations *******************************/
54/******************************************************************************/
55
59
68 priv_e mode;
70 void (*callback)(void *);
74 bool running;
75};
76
87
96 void (*handler)(void *),
97 void *ctx);
98
102extern const struct no_os_timer_platform_ops latt_timer_ops;
103
104#endif /* LATTICE_TIMER_H_ */
Timer control module header.
const struct no_os_timer_platform_ops latt_timer_ops
Lattice platform specific timer platform ops structure.
Definition riscvrx_timer.c:349
latt_timer_source
Definition riscvrx_timer.h:56
@ LATT_TIMER_CLINT
Definition riscvrx_timer.h:57
int32_t lattice_timer_set_callback(struct no_os_timer_desc *desc, void(*handler)(void *), void *ctx)
Register timer callback and context for Lattice timer backend.
Definition riscvrx_timer.c:121
Lattice specific timer descriptor.
Definition riscvrx_timer.h:64
void * callback_ctx
Definition riscvrx_timer.h:72
void(* callback)(void *)
Definition riscvrx_timer.h:70
bool running
Definition riscvrx_timer.h:74
priv_e mode
Definition riscvrx_timer.h:68
enum latt_timer_source type
Definition riscvrx_timer.h:66
Lattice specific timer initialization parameters.
Definition riscvrx_timer.h:81
priv_e mode
Definition riscvrx_timer.h:85
enum latt_timer_source type
Definition riscvrx_timer.h:83
Structure holding timer descriptor.
Definition no_os_timer.h:46
Structure holding timer function pointers that point to the platform specific function.
Definition no_os_timer.h:90