input: kbd_matrix: move the header to the project wide include directory
Move the input_kbd_matrix.h header out of drivers/ and into include/, this allows external drivers to use it and doxygen to pick it up. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
297c41031b
commit
be5cb7af7c
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include <zephyr/device.h>
|
#include <zephyr/device.h>
|
||||||
#include <zephyr/input/input.h>
|
#include <zephyr/input/input.h>
|
||||||
|
#include <zephyr/input/input_kbd_matrix.h>
|
||||||
#include <zephyr/kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
|
@ -15,8 +16,6 @@
|
||||||
#define LOG_LEVEL CONFIG_INPUT_LOG_LEVEL
|
#define LOG_LEVEL CONFIG_INPUT_LOG_LEVEL
|
||||||
LOG_MODULE_REGISTER(input_kbd_matrix);
|
LOG_MODULE_REGISTER(input_kbd_matrix);
|
||||||
|
|
||||||
#include "input_kbd_matrix.h"
|
|
||||||
|
|
||||||
#define INPUT_KBD_MATRIX_ROW_MASK UINT8_MAX
|
#define INPUT_KBD_MATRIX_ROW_MASK UINT8_MAX
|
||||||
|
|
||||||
void input_kbd_matrix_poll_start(const struct device *dev)
|
void input_kbd_matrix_poll_start(const struct device *dev)
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
#define DT_DRV_COMPAT nuvoton_npcx_kbd
|
#define DT_DRV_COMPAT nuvoton_npcx_kbd
|
||||||
|
|
||||||
#include "soc_miwu.h"
|
#include "soc_miwu.h"
|
||||||
#include "input_kbd_matrix.h"
|
|
||||||
|
|
||||||
#include <zephyr/drivers/clock_control.h>
|
#include <zephyr/drivers/clock_control.h>
|
||||||
#include <zephyr/drivers/pinctrl.h>
|
#include <zephyr/drivers/pinctrl.h>
|
||||||
|
#include <zephyr/input/input_kbd_matrix.h>
|
||||||
#include <zephyr/kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <zephyr/logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <zephyr/sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef ZEPHYR_INCLUDE_INPUT_KBD_MATRIX_H_
|
||||||
|
#define ZEPHYR_INCLUDE_INPUT_KBD_MATRIX_H_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Keyboard Matrix API
|
* @brief Keyboard Matrix API
|
||||||
* @defgroup input_kbd_matrix Keyboard Matrix API
|
* @defgroup input_kbd_matrix Keyboard Matrix API
|
||||||
|
@ -238,3 +241,5 @@ void input_kbd_matrix_poll_start(const struct device *dev);
|
||||||
int input_kbd_matrix_common_init(const struct device *dev);
|
int input_kbd_matrix_common_init(const struct device *dev);
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
#endif /* ZEPHYR_INCLUDE_INPUT_KBD_MATRIX_H_ */
|
Loading…
Reference in a new issue