2014-06-11 14:59:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
2014-07-03 10:36:46 +02:00
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
2014-06-11 14:59:24 +02:00
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-07-03 10:36:46 +02:00
|
|
|
* @ingroup cpu_stm32f1
|
2014-06-11 14:59:24 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-06-11 14:59:24 +02:00
|
|
|
* @brief CPU specific hwtimer configuration options
|
|
|
|
*
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HWTIMER_CPU_H_
|
|
|
|
#define HWTIMER_CPU_H_
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-06-11 14:59:24 +02:00
|
|
|
/**
|
|
|
|
* @name Hardware timer configuration
|
|
|
|
* @{
|
|
|
|
*/
|
2014-09-29 10:16:31 +02:00
|
|
|
#define HWTIMER_MAXTIMERS (4) /**< the CPU implementation supports 4 HW timers */
|
|
|
|
#define HWTIMER_SPEED (1000000U) /**< the HW timer runs with 1MHz */
|
|
|
|
#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */
|
2014-10-08 16:27:33 +02:00
|
|
|
#define HWTIMER_WAIT_OVERHEAD (3)
|
2014-06-11 14:59:24 +02:00
|
|
|
/** @} */
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-06-11 14:59:24 +02:00
|
|
|
#endif /* HWTIMER_CPU_H_ */
|
|
|
|
/** @} */
|