CLEON  Version 1
Cloud-Offloaded GPS Receiver
hal_timer.c File Reference

timer configuration More...

#include "cleon_conf.h"
#include "app_define.h"
#include "sys_define.h"
#include "hal_define.h"
#include "fs_define.h"
Include dependency graph for hal_timer.c:

Go to the source code of this file.

Functions

void HAL_TIMER_Init ()
 Initializing timer.
 
void HAL_TIMER_TimerA1Init ()
 Initializing timerA1.
 
__interrupt void TIMER1_A0_VECTOR_ISR (void)
 

Variables

milliseoncd_time_tick_u uniMillisecondTimeTick
 
seoncd_time_tick_u uniSecondTimeTick
 

Detailed Description

timer configuration

Definition in file hal_timer.c.

Function Documentation

void HAL_TIMER_Init ( void  )

Initializing timer.

Returns
void
Parameters
void

Definition at line 25 of file hal_timer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void HAL_TIMER_TimerA1Init ( void  )

Initializing timerA1.

Returns
void
Parameters
void

Definition at line 38 of file hal_timer.c.

{
TA1CCTL0 = CCIE; // CCR0 toggle mode
TA1CCR0 = 12000; // Set it to 12000 to generate 1ms tick with 12MHz clock source
TA1CTL = TASSEL_2 + MC_1 + TACLR; // SMCLK, up mode, clear TAR
}

Here is the caller graph for this function:

__interrupt void TIMER1_A0_VECTOR_ISR ( void  )

Definition at line 49 of file hal_timer.c.

Variable Documentation

milliseoncd_time_tick_u uniMillisecondTimeTick

Definition at line 40 of file hal_rtc.c.

seoncd_time_tick_u uniSecondTimeTick

Definition at line 41 of file hal_rtc.c.