include: dt-bindings: timer: add stm32 timer constants

Adds timer countermode constants.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
This commit is contained in:
Georgij Cernysiov 2022-03-22 10:32:53 +01:00 committed by Marti Bolivar
parent 442e477116
commit fcab131279

View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2022 Georgij Cernysiov
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_STM32_TIMER_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_STM32_TIMER_H_
/* Timer countermode values */
#define STM32_TIM_COUNTERMODE_UP 0x00000000U
#define STM32_TIM_COUNTERMODE_DOWN 0x00000010U
#define STM32_TIM_COUNTERMODE_CENTER_DOWN 0x00000020U
#define STM32_TIM_COUNTERMODE_CENTER_UP 0x00000040U
#define STM32_TIM_COUNTERMODE_CENTER_UP_DOWN 0x00000060U
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_STM32_TIMER_H_ */