cfg_rtt_default.h File Reference

Common configuration for STM32 RTT. More...

Detailed Description

Common configuration for STM32 RTT.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file cfg_rtt_default.h.

#include "periph_cpu.h"
+ Include dependency graph for cfg_rtt_default.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

RTT configuration

On the STM32Lx platforms, we always utilize the LPTIM1.

#define RTT_CLOCK_FREQUENCY   (32768U) /* in Hz */
 
#define RTT_MAX_VALUE   (0x0000ffff) /* 16-bit timer */
 
#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* 32768Hz at @32768Hz */
 
#define RTT_MIN_FREQUENCY   (RTT_CLOCK_FREQUENCY / 128) /* 256Hz at @32768Hz */
 
#define RTT_FREQUENCY   (RTT_MAX_FREQUENCY) /* in Hz */