2014-08-27 18:47:31 +02:00
|
|
|
/*
|
2015-08-26 18:41:22 +02:00
|
|
|
* Copyright (C) 2014 INRIA
|
|
|
|
* 2014, 2015 Freie Universität Berlin
|
2014-08-27 18:47:31 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-04-28 14:28:34 +02:00
|
|
|
/**
|
2015-08-26 18:41:22 +02:00
|
|
|
* @ingroup cpu_msp430-common
|
2014-04-28 14:28:34 +02:00
|
|
|
* @{
|
2015-08-26 18:41:22 +02:00
|
|
|
*
|
2014-04-28 14:28:34 +02:00
|
|
|
* @file
|
2015-08-26 18:41:22 +02:00
|
|
|
* @brief Hardware timer configuration for MSP430 based CPUs
|
2014-04-28 14:28:34 +02:00
|
|
|
*
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
* @author Kévin Roussel <Kevin.Roussel@inria.fr>
|
2015-08-26 18:41:22 +02:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2014-04-28 14:28:34 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-07-06 01:17:05 +02:00
|
|
|
#ifndef HWTIMER_CPU_H_
|
|
|
|
#define HWTIMER_CPU_H_
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2015-08-26 18:41:22 +02:00
|
|
|
#include "board.h"
|
|
|
|
#include "periph_conf.h"
|
2013-12-09 11:12:39 +01:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-08-26 18:41:22 +02:00
|
|
|
/**
|
|
|
|
* @brief Hardware timer configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define HWTIMER_MAXTIMERS (TIMER_CHAN)
|
|
|
|
#define HWTIMER_SPEED (F_RC_OSCILLATOR)
|
|
|
|
#define HWTIMER_MAXTICKS (0x0000FFFF)
|
|
|
|
/** @} */
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-07-06 01:17:05 +02:00
|
|
|
#endif /* HWTIMER_CPU_H_ */
|