periph_cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef PERIPH_F1_PERIPH_CPU_H
20 #define PERIPH_F1_PERIPH_CPU_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #ifndef DOXYGEN
27 
32 #if defined(CPU_LINE_STM32F103xB) || defined(CPU_LINE_STM32F103xE)
33 #define STM32_BOOTLOADER_ADDR (0x1FFFF000)
34 #endif
35 
36 #endif /* ndef DOXYGEN */
37 
42 #define RTT_IRQ_PRIO 1
43 
44 #define RTT_DEV RTC
45 #define RTT_IRQ RTC_IRQn
46 #define RTT_ISR isr_rtc
47 
48 #define RTT_MAX_VALUE (0xffffffff)
49 #define RTT_CLOCK_FREQUENCY (32768U) /* in Hz */
50 #define RTT_MIN_FREQUENCY (1U) /* in Hz */
51 /* RTC frequency of 32kHz is not recommended, see RM0008 Rev 20, p490 */
52 #define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY / 2) /* in Hz */
53 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* PERIPH_F1_PERIPH_CPU_H */
60