Loading...
Searching...
No Matches
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:

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 */
 

Macro Definition Documentation

◆ RTT_CLOCK_FREQUENCY

#define RTT_CLOCK_FREQUENCY   (32768U) /* in Hz */

Definition at line 34 of file cfg_rtt_default.h.

◆ RTT_FREQUENCY

#define RTT_FREQUENCY   (RTT_MAX_FREQUENCY) /* in Hz */

Definition at line 41 of file cfg_rtt_default.h.

◆ RTT_MAX_FREQUENCY

#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* 32768Hz at @32768Hz */

Definition at line 37 of file cfg_rtt_default.h.

◆ RTT_MAX_VALUE

#define RTT_MAX_VALUE   (0x0000ffff) /* 16-bit timer */

Definition at line 36 of file cfg_rtt_default.h.

◆ RTT_MIN_FREQUENCY

#define RTT_MIN_FREQUENCY   (RTT_CLOCK_FREQUENCY / 128) /* 256Hz at @32768Hz */

Definition at line 38 of file cfg_rtt_default.h.