ztimer default configuration More...

Detailed Description

ztimer default configuration

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file config.h.

#include "board.h"
#include "periph_conf.h"
#include "ztimer.h"
+ Include dependency graph for config.h:

Go to the source code of this file.

#define CONFIG_ZTIMER_USEC_TYPE_PERIPH_TIMER   (1)
 
#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))
 Default timer device for ZTIMER_USEC.
 
#define CONFIG_ZTIMER_USEC_MIN   (10)
 ZTIMER_USEC optimal minimum value for ztimer_set() More...
 
#define CONFIG_ZTIMER_USEC_WIDTH   (32)
 ZTIMER_USEC counter object width.
 
#define CONFIG_ZTIMER_USEC_BASE_FREQ   (1000000LU)
 The frequency of ZTIMER_USEC_BASE (base ztimer for ZTIMER_USEC)
 
#define CONFIG_ZTIMER_MSEC_BASE_FREQ   (CONFIG_ZTIMER_USEC_BASE_FREQ)
 The frequency of ZTIMER_MSEC_BASE (base ztimer for ZTIMER_MSEC)
 
#define CONFIG_ZTIMER_USEC_REQUIRED_PM_MODE   ZTIMER_CLOCK_NO_REQUIRED_PM_MODE
 The minimum pm mode required for ZTIMER_USEC to run.
 
#define CONFIG_ZTIMER_MSEC_REQUIRED_PM_MODE   ZTIMER_CLOCK_NO_REQUIRED_PM_MODE
 The minimum pm mode required for ZTIMER_MSEC to run.
 

Macro Definition Documentation

◆ CONFIG_ZTIMER_USEC_MIN

#define CONFIG_ZTIMER_USEC_MIN   (10)

ZTIMER_USEC optimal minimum value for ztimer_set()

When scheduling an ISR every timer will be set to: max(CONFIG_ZTIMER_USEC_MIN, value).

This value only applies if the counter object used for ZTIMER_USEC is periph_timer. This is supposed to be defined per-device in e.g., board.h.

Definition at line 74 of file config.h.