ITE drivers/sensor: add tachometer driver for it8xxx2_evb
Add tachometer driver for it8xxx2_evb. Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
This commit is contained in:
parent
0a4708cd2b
commit
fad78a2c07
12 changed files with 399 additions and 0 deletions
20
include/dt-bindings/sensor/it8xxx2_tach.h
Normal file
20
include/dt-bindings/sensor/it8xxx2_tach.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2021 ITE Technology Corporation.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_
|
||||
|
||||
/**
|
||||
* @name Tachometer channels
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** Tachometer channel A */
|
||||
#define IT8XXX2_TACH_CHANNEL_A 0
|
||||
/** Tachometer channel B */
|
||||
#define IT8XXX2_TACH_CHANNEL_B 1
|
||||
|
||||
/** @} */
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue