ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
Classes | Macros | Enumerations
mtimer.h File Reference
#include "base.h"
#include "paranut-config.h"
Include dependency graph for mtimer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Mtimer
 

Macros

#define MTIMER_PRESCALER   ((__uint64_t)((float)CFG_NUT_SIM_CLK_SPEED / (1.0f / ((float)CFG_NUT_MTIMER_TIMEBASE_US / (1000*1000)))))
 

Enumerations

enum  ETIMER { mtime = 0 , mtimeh = 4 , mtimecmp = 8 , mtimecmph = 12 }
 

Macro Definition Documentation

◆ MTIMER_PRESCALER

#define MTIMER_PRESCALER   ((__uint64_t)((float)CFG_NUT_SIM_CLK_SPEED / (1.0f / ((float)CFG_NUT_MTIMER_TIMEBASE_US / (1000*1000)))))

Enumeration Type Documentation

◆ ETIMER

enum ETIMER
Enumerator
mtime 
mtimeh 
mtimecmp 
mtimecmph