Nugget
Loading...
Searching...
No Matches
Classes | Macros | Enumerations
counters.h File Reference
#include <stdint.h>
Include dependency graph for counters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Counter
 

Macros

#define COUNTERS   ((volatile struct Counter *)0xbf801100)
 
#define TM_SYNC_MODE(n)   (((n) & 3) << 1)
 

Enumerations

enum  {
  TM_SYNC_EN = 0x0001 , TM_RESET_TARGET = 0x0008 , TM_IRQ_TARGET = 0x0010 , TM_IRQ_OVERFLOW = 0x0020 ,
  TM_IRQ_REPEAT = 0x0040 , TM_IRQ_TOGGLE = 0x0080 , TM_CLK_EXTERNAL = 0x0100 , TM_CLK_DIV8 = 0x0200 ,
  TM_IRQ_REQUEST = 0x0400 , TM_HIT_TARGET = 0x0800 , TM_HIT_OVERFLOW = 0x1000
}
 

Macro Definition Documentation

◆ COUNTERS

COUNTERS   ((volatile struct Counter *)0xbf801100)

◆ TM_SYNC_MODE

#define TM_SYNC_MODE (   n)    (((n) & 3) << 1)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TM_SYNC_EN 
TM_RESET_TARGET 
TM_IRQ_TARGET 
TM_IRQ_OVERFLOW 
TM_IRQ_REPEAT 
TM_IRQ_TOGGLE 
TM_CLK_EXTERNAL 
TM_CLK_DIV8 
TM_IRQ_REQUEST 
TM_HIT_TARGET 
TM_HIT_OVERFLOW