Skip to content

Commit 829cca5

Browse files
committed
FIXME: set RTT_FREQUENCY to 32768hz for stm32f1 boards
1 parent bc3b543 commit 829cca5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boards/common/iotlab/include/periph_conf_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ static const uart_conf_t uart_config[] = {
159159
#define RTT_IRQ RTC_IRQn
160160
#define RTT_ISR isr_rtc
161161
#define RTT_MAX_VALUE (0xffffffff)
162-
#define RTT_FREQUENCY (1) /* in Hz */
163-
#define RTT_PRESCALER (0x7fff) /* run with 1 Hz */
162+
#define RTT_FREQUENCY (32768U) /* in Hz */
163+
#define RTT_PRESCALER (0x0) /* run with ~32 kHz */
164164
/** @} */
165165

166166
/**

boards/nucleo-f103rb/include/periph_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ static const uart_conf_t uart_config[] = {
129129
#define RTT_IRQ RTC_IRQn
130130
#define RTT_ISR isr_rtc
131131
#define RTT_MAX_VALUE (0xffffffff)
132-
#define RTT_FREQUENCY (16384) /* in Hz */
133-
#define RTT_PRESCALER (0x1) /* run with ~16 kHz Hz */
132+
#define RTT_FREQUENCY (32768U) /* in Hz */
133+
#define RTT_PRESCALER (0x0) /* run with ~32 kHz */
134134
/** @} */
135135

136136
/**

0 commit comments

Comments
 (0)