Zephyr API Documentation
4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
it8xxx2_pwm.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 ITE Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PWM_IT8XXX2_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PWM_IT8XXX2_H_
8
9
#include <
zephyr/dt-bindings/dt-util.h
>
10
11
/* PWM prescaler references */
12
#define PWM_PRESCALER_C4 1
13
#define PWM_PRESCALER_C6 2
14
#define PWM_PRESCALER_C7 3
15
16
/* PWM channel references */
17
#define PWM_CHANNEL_0 0
18
#define PWM_CHANNEL_1 1
19
#define PWM_CHANNEL_2 2
20
#define PWM_CHANNEL_3 3
21
#define PWM_CHANNEL_4 4
22
#define PWM_CHANNEL_5 5
23
#define PWM_CHANNEL_6 6
24
#define PWM_CHANNEL_7 7
25
26
/*
27
* Provides a type to hold PWM configuration flags.
28
*
29
* The upper 8 bits are reserved for SoC specific flags.
30
* Output onpe-drain flag [ 8 ]
31
*/
32
#define PWM_IT8XXX2_OPEN_DRAIN BIT(8)
33
34
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PWM_IT8XXX2_H_ */
dt-util.h
zephyr
dt-bindings
pwm
it8xxx2_pwm.h
Generated on Sat Nov 9 2024 00:03:13 for Zephyr API Documentation by
1.12.0