Skip to content

Commit

Permalink
board/telosb: added (x)timer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Sep 2, 2015
1 parent 929a38c commit a053716
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
1 change: 1 addition & 0 deletions boards/telosb/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
FEATURES_PROVIDED += periph_timer
FEATURES_MCU_GROUP = msp430
17 changes: 17 additions & 0 deletions boards/telosb/include/board.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013, 2014 INRIA
* 2015 Freie Universität Berlin
*
* 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
Expand All @@ -21,6 +22,7 @@
* @brief Basic definitions for the TelosB board
*
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef TELOSB_BOARD_H_
Expand All @@ -35,6 +37,21 @@ extern "C" {
#define __MSP430F1611__
#endif

/**
* @brief Xtimer configuration
* @{
*/
#define XTIMER (0)
#define XTIMER_CHAN (0)
#define XTIMER_MASK (0xffff0000)
/** @} */

/**
* @brief Defines for compatibility with hwtimer
* @deprecated
*/
#define HW_TIMER (0)

/* TelosB core */
#define MSP430_INITIAL_CPU_SPEED 2457600uL
#define F_CPU MSP430_INITIAL_CPU_SPEED
Expand Down
26 changes: 22 additions & 4 deletions boards/telosb/include/periph_conf.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2014 INRIA
* 2015 Freie Universität Berlin
*
* 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
Expand All @@ -14,11 +15,28 @@
* @brief TelosB peripheral configuration
*
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/

#ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H_
#ifndef PERIPH_CONF_H
#define PERIPH_CONF_H

/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#ifdef __cplusplus
extern "C" {
#endif

#endif /* PERIPH_CONF_H_ */
/**
* @brief Timer configuration
* @{
*/
#define TIMER_DEV (TIMER_A)
#define TIMER_CHAN (3)
#define TIMER_ISR_CC0 (TIMERA0_VECTOR)
#define TIMER_ISR_CCX (TIMERA1_VECTOR)
/** @} */

#ifdef __cplusplus
}
#endif

#endif /* PERIPH_CONF_H */

0 comments on commit a053716

Please sign in to comment.