/* * Copyright (C) 2016 Kees Bakker, SODAQ * * 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. */ /** * @ingroup boards_common_sodaq * @{ * * @file * @brief Default RTT configuration for SODAQ boards * * @author Kees Bakker */ #ifndef CFG_RTT_DEFAULT_H #define CFG_RTT_DEFAULT_H #include #include "cpu.h" #include "periph_cpu.h" #ifdef __cplusplus extern "C" { #endif /** * @name RTT configuration * @{ */ #define RTT_DEV RTC->MODE0 #define RTT_IRQ RTC_IRQn #define RTT_IRQ_PRIO 10 #define RTT_ISR isr_rtc #define RTT_MAX_VALUE (0xffffffff) #define RTT_FREQUENCY (32768U) /* in Hz. For changes see `rtt.c` */ #define RTT_RUNSTDBY (1) /* Keep RTT running in sleep states */ /** @} */ #ifdef __cplusplus } #endif #endif /* CFG_RTT_DEFAULT_H */ /** @} */