mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
board/chronos: added timer and xtimer configuration
This commit is contained in:
parent
fd8c0de3d2
commit
812b33fb17
@ -1,2 +1,3 @@
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_MCU_GROUP = msp430
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Freie Universität Berlin
|
||||
* Copyright (C) 2013,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
|
||||
@ -32,6 +32,21 @@ extern "C" {
|
||||
#define __CC430F6137__
|
||||
#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)
|
||||
|
||||
#define MSP430_INITIAL_CPU_SPEED 7372800uL
|
||||
#define F_CPU MSP430_INITIAL_CPU_SPEED
|
||||
#define F_RC_OSCILLATOR 32768
|
||||
|
||||
@ -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
|
||||
@ -14,17 +15,28 @@
|
||||
* @brief Chronos 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
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Real Time Clock configuration
|
||||
* @brief Timer configuration
|
||||
* @{
|
||||
*/
|
||||
#define TIMER_DEV (TIMER_A0)
|
||||
#define TIMER_CHAN (5)
|
||||
#define TIMER_ISR_CC0 (TIMER0_A0_VECTOR)
|
||||
#define TIMER_ISR_CCX (TIMER0_A1_VECTOR)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Real Time Clock configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
|
||||
@ -32,4 +44,4 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PERIPH_CONF_H_ */
|
||||
#endif /* PERIPH_CONF_H */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user