mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
board/pca10000: enabled RTT timer in periph_conf.h
This commit is contained in:
parent
744ce78e12
commit
af78ba287b
@ -15,12 +15,12 @@
|
|||||||
*
|
*
|
||||||
* @author Christian Kühling <kuehling@zedat.fu-berlin.de>
|
* @author Christian Kühling <kuehling@zedat.fu-berlin.de>
|
||||||
* @author Timo Ziegler <timo.ziegler@fu-berlin.de>
|
* @author Timo Ziegler <timo.ziegler@fu-berlin.de>
|
||||||
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PERIPH_CONF_H
|
#ifndef __PERIPH_CONF_H
|
||||||
#define __PERIPH_CONF_H
|
#define __PERIPH_CONF_H
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Timer configuration
|
* @name Timer configuration
|
||||||
* @{
|
* @{
|
||||||
@ -53,6 +53,20 @@
|
|||||||
#define TIMER_2_IRQ TIMER2_IRQn
|
#define TIMER_2_IRQ TIMER2_IRQn
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Real time counter configuration
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define RTT_NUMOF (1U)
|
||||||
|
#define RTT_IRQ_PRIO 1
|
||||||
|
|
||||||
|
#define RTT_DEV NRF_RTC0
|
||||||
|
#define RTT_IRQ RTC0_IRQn
|
||||||
|
#define RTT_ISR isr_rtc0
|
||||||
|
#define RTT_MAX_VALUE (0xffffff)
|
||||||
|
#define RTT_FREQUENCY (10) /* in Hz */
|
||||||
|
#define RTT_PRESCALER (3275U) /* run with 10 Hz */
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name UART configuration
|
* @name UART configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user