Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Flags used by @ref counter_top_cfg.

Macros

#define COUNTER_TOP_CFG_DONT_RESET   BIT(0)
 Flag preventing counter reset when top value is changed. More...
 
#define COUNTER_TOP_CFG_RESET_WHEN_LATE   BIT(1)
 Flag instructing counter to reset itself if changing top value results in counter going out of new top value bound. More...
 

Detailed Description

Macro Definition Documentation

◆ COUNTER_TOP_CFG_DONT_RESET

#define COUNTER_TOP_CFG_DONT_RESET   BIT(0)

#include <include/drivers/counter.h>

Flag preventing counter reset when top value is changed.

If flags is set then counter is free running while top value is updated, otherwise counter is reset (see counter_set_top_value()).

◆ COUNTER_TOP_CFG_RESET_WHEN_LATE

#define COUNTER_TOP_CFG_RESET_WHEN_LATE   BIT(1)

#include <include/drivers/counter.h>

Flag instructing counter to reset itself if changing top value results in counter going out of new top value bound.

See COUNTER_TOP_CFG_DONT_RESET.