timerB.c File Reference

#include <timedef.h>
#include <Environment.h>
#include <in430.h>
#include <TimeManage.h>
#include <msp430.h>

Include dependency graph for timerB.c:

Go to the source code of this file.

Defines

#define TICKS_PER_SEC   ( 9416 )
#define TIMER_B_LIMIT   0xFFFF

Functions

void clock_init (void)
 Initializes clock function.
__interrupt void clock_interrupt (void)
 Interrupt handling.
UINT32 clockb (void)
 Determines the processor time used by a program since the program began running.

Variables

static UINT32 Clock_ticks
 Carry for software clock.
UINT8 flag_Clock_ticks_carry


Define Documentation

#define TICKS_PER_SEC   ( 9416 )

Definition at line 34 of file timerB.c.

Referenced by time().

#define TIMER_B_LIMIT   0xFFFF

Definition at line 35 of file timerB.c.

Referenced by clock_init().


Function Documentation

void clock_init ( void   ) 

Initializes clock function.

Note:
The clock_init function is target-system specific. We use timer B of MSP430F1612.
Returns:
Current time represented in ticks.
Note:
1 tick is about 100 micro-secondes

Definition at line 84 of file timerB.c.

Referenced by init().

Here is the caller graph for this function:

__interrupt void clock_interrupt ( void   ) 

Interrupt handling.

Note:
Update clock ticks count.

Definition at line 107 of file timerB.c.

References _DINT, and _EINT.

UINT32 clockb ( void   ) 

Determines the processor time used by a program since the program began running.

Note:
The clock function is target-system specific. You must call clock_init before using clock function.
Returns:
Current time represented in ticks.

Definition at line 60 of file timerB.c.

Referenced by main(), PT_THREAD(), RecepFrame(), serveur_reprog(), and time().

Here is the caller graph for this function:


Variable Documentation

UINT32 Clock_ticks [static]

Carry for software clock.

Number of clock ticks

Definition at line 42 of file timerB.c.

Referenced by clock_init(), and clockb().

Definition at line 78 of file Bootloader/CONFIG/VG.C.


Generated on Wed Jun 3 12:06:08 2009 for PowWow v1.0 by  doxygen 1.5.6