2014-08-27 18:47:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
#ifndef __HWTIMER_CPU_H
|
|
|
|
#define __HWTIMER_CPU_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-12-09 11:12:39 +01:00
|
|
|
#include "cpu.h"
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#ifdef __MSP430_HAS_TA2__
|
2014-03-21 17:31:55 +01:00
|
|
|
#define HWTIMER_MAXTIMERS 2
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif
|
|
|
|
#ifdef __MSP430_HAS_TA3__
|
2014-03-21 17:31:55 +01:00
|
|
|
#define HWTIMER_MAXTIMERS 3
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif
|
2010-12-08 12:16:49 +01:00
|
|
|
#ifdef __MSP430_HAS_T0A5__
|
2014-03-21 17:31:55 +01:00
|
|
|
#define HWTIMER_MAXTIMERS 5
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif
|
2010-12-08 12:16:49 +01:00
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2014-03-21 17:31:55 +01:00
|
|
|
#ifndef HWTIMER_MAXTIMERS
|
|
|
|
#warning "HWTIMER_MAXTIMERS UNSET!"
|
|
|
|
#define HWTIMER_MAXTIMERS 0
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif
|
|
|
|
|
2013-08-19 19:00:09 +02:00
|
|
|
#define HWTIMER_SPEED (F_RC_OSCILLATOR)
|
2013-05-24 02:20:54 +02:00
|
|
|
#define HWTIMER_MAXTICKS (0xFFFFFFFF)
|
2010-09-22 15:10:42 +02:00
|
|
|
|
|
|
|
#endif // __HWTIMER_CPU_H
|