KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
timer.h File Reference
#include <stdint.h>
#include "cfg_soc.h"

Go to the source code of this file.

Macros

#define TIMER_SECT_COUNT   3
 No of timers to add.
 
#define TIMER_SUM_SECS   5
 No of seconds to sum.
 
#define TIMER_SECT_IDLE   0
 time spend being idle
 
#define TIMER_SECT_TASK   1
 time spend executing a task
 
#define TIMER_SECT_IRQ   2
 time spend in IRQs
 
#define TIMER_MAX_COUNT   ( TIMER_SUM_SECS * 1000 )
 

Functions

void timerInit ()
 Initializes the timer.
 
int timerMark (int section)
 Starts the timing of a new section, the previous section is returned, or -1 if it is the first.
 
uint32_t * timerValues ()
 Returns. More...
 

Detailed Description

Todo:
describe timer module

Definition in file timer.h.

Function Documentation

uint32_t* timerValues ( )

Returns.

Returns

Definition at line 71 of file timer.c.