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:
Ruibin Chang 2021-10-19 18:33:38 +08:00 committed by Anas Nashif
commit fad78a2c07
12 changed files with 399 additions and 0 deletions

View 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_ */