Functions

timerhs_drv.c File Reference

This file contains the low level functions (drivers) of 10-bit High Speed timer. More...

#include "config.h"
#include "timerhs_drv.h"
Include dependency graph for timerhs_drv.c:

Go to the source code of this file.

Functions

U16 timerhs_get_counter (void)
 This function READ the hs-bit TIMER counter.

Detailed Description

This file contains the low level functions (drivers) of 10-bit High Speed timer.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file timerhs_drv.c.


Function Documentation

U16 timerhs_get_counter ( void   )

This function READ the hs-bit TIMER counter.

This function READ the 16-bit TIMER counter.

Warning:
Parameters:
Returns:
hs-bit counter value

Definition at line 65 of file timerhs_drv.c.

References Timerhs_get_counter_high, and Timerhs_get_counter_low.

{
    U16 u16_temp;

    u16_temp  =  Timerhs_get_counter_low();
    u16_temp |= (Timerhs_get_counter_high() << 8 );

    return u16_temp;
}