px-fwlib
0.10.0
Cross-platform embedded library and documentation for 8/16/32-bit microcontrollers
generated with
Doxygen
1.9.2
px_async_tmr_cfg_template.h
1
#ifndef __PX_ASYNC_TMR_CFG_H__
2
#define __PX_ASYNC_TMR_CFG_H__
3
/* =============================================================================
4
____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM
5
| _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ /
6
| |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ /
7
| __/ | | | |___ | |_| | | |\ | | |_| | | | | | | | / \
8
|_| |___| \____| \___/ |_| \_| \___/ |_| |_| |___| /_/\_\
9
10
Copyright (c) 2014 Pieter Conradie <https://piconomix.com>
11
12
License: MIT
13
https://github.com/piconomix/px-fwlib/blob/master/LICENSE.md
14
15
Title: px_async_tmr_cfg.h : Asynchronous TMR configuration
16
Author(s): Pieter Conradie
17
Creation Date: 2014-06-23
18
19
============================================================================= */
20
21
/**
22
* @addtogroup AVR_ASYNC_TMR
23
*
24
* @{
25
*/
26
27
/* _____STANDARD INCLUDES____________________________________________________ */
28
29
/* _____PROJECT INCLUDES_____________________________________________________ */
30
#include "px_defs.h"
31
#include "px_rtc.h"
32
33
/* _____DEFINITIONS__________________________________________________________ */
34
35
/// Define timeout period
36
#define ASYNC_TMR_CFG_PERIOD_MS 1000
37
38
/// Define handler function to call when timeout interrupt occurs
39
#define ASYNC_TMR_CFG_ON_TICK() px_rtc_on_tick()
40
41
/// @}
42
#endif