2010-09-22 15:10:42 +02:00
|
|
|
/******************************************************************************
|
2013-06-18 17:21:38 +02:00
|
|
|
Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
|
2010-09-22 15:10:42 +02:00
|
|
|
|
|
|
|
These sources were developed at the Freie Universitaet Berlin, Computer Systems
|
|
|
|
and Telematics group (http://cst.mi.fu-berlin.de).
|
|
|
|
-------------------------------------------------------------------------------
|
2013-03-07 20:51:26 +01:00
|
|
|
This file is part of RIOT.
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-11-22 20:47:05 +01:00
|
|
|
This file is subject to the terms and conditions of the GNU Lesser General Public
|
2013-06-18 17:21:38 +02:00
|
|
|
License. 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
|
|
|
|
|
2013-11-14 12:44:10 +01:00
|
|
|
#include "cpu.h"
|
|
|
|
|
2013-03-30 21:44:16 +01:00
|
|
|
#ifdef CC430
|
2013-06-21 03:52:57 +02:00
|
|
|
#include <cc430f6137.h>
|
2013-03-30 21:44:16 +01:00
|
|
|
#else
|
2013-06-21 03:52:57 +02:00
|
|
|
#include <msp430x16x.h>
|
2013-03-30 21:44:16 +01:00
|
|
|
#endif
|
2013-10-01 15:30:08 +02:00
|
|
|
#include <cpu.h>
|
2010-09-22 15:10:42 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __MSP430_HAS_TA2__
|
|
|
|
#define ARCH_MAXTIMERS 2
|
|
|
|
#endif
|
|
|
|
#ifdef __MSP430_HAS_TA3__
|
|
|
|
#define ARCH_MAXTIMERS 3
|
|
|
|
#endif
|
2010-12-08 12:16:49 +01:00
|
|
|
#ifdef __MSP430_HAS_T0A5__
|
2010-09-22 15:10:42 +02:00
|
|
|
#define ARCH_MAXTIMERS 5
|
|
|
|
#endif
|
2010-12-08 12:16:49 +01:00
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
|
|
|
|
#ifndef ARCH_MAXTIMERS
|
|
|
|
#warning "ARCH_MAXTIMERS UNSET!"
|
|
|
|
#define ARCH_MAXTIMERS 0
|
|
|
|
#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
|