Atmel Software Framework

common_hw_timer.h File Reference

Copyright (c) 2014-2015 Atmel Corporation.

All rights reserved.

#include <stdint.h>
#include "hw_timer.h"

Macros

#define DEF_1MHZ   (1000000)
 
#define TIMER_PERIOD   UINT16_MAX
 

Functions

void common_tc_compare_stop (void)
 To disable timer compare interrupt. More...
 
void common_tc_delay (uint16_t value)
 To create a non blocking delay. More...
 
void common_tc_init (void)
 To initialize common hw timer. More...
 
void common_tc_overflow_stop (void)
 To disable timer overflow interrupt. More...
 
uint16_t common_tc_read_count (void)
 To read current count of the timer after issuing common tc delay. More...
 
void common_tc_stop (void)
 To disable timer. More...
 
void hw_expiry_cb (void)
 
void hw_overflow_cb (void)
 
void set_common_tc_expiry_callback (tmr_callback_t callback)
 to set common hw timer compare callback More...
 
void set_common_tc_overflow_callback (tmr_callback_t callback)
 to set common hw timer overflow callback More...
 
void tmr_cca_callback (void)
 timer compare interrupt callback More...
 
void tmr_ovf_callback (void)
 timer overflow interrupt callback More...