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:
parent
442e477116
commit
fcab131279
17
include/dt-bindings/timer/stm32-timer.h
Normal file
17
include/dt-bindings/timer/stm32-timer.h
Normal 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_ */
|
Loading…
Reference in a new issue