From 842aa5a842e117b7b00e49258ca0bde44dc0c789 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Tue, 22 Dec 2020 15:56:00 +0000 Subject: refactor: replace filename hyphens with underscores Aligns *.h and *.c to underscore naming convention. These were kept (with warnings) for backwards compatibility with external boards/shields: - kscan-mock.h - matrix-transform.h They should be removed in the future. PR: #523 --- app/include/zmk/events/sensor_event.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/include/zmk/events/sensor_event.h (limited to 'app/include/zmk/events/sensor_event.h') diff --git a/app/include/zmk/events/sensor_event.h b/app/include/zmk/events/sensor_event.h new file mode 100644 index 0000000..14fb2d3 --- /dev/null +++ b/app/include/zmk/events/sensor_event.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#pragma once + +#include +#include +#include + +struct sensor_event { + struct zmk_event_header header; + uint8_t sensor_number; + const struct device *sensor; + int64_t timestamp; +}; + +ZMK_EVENT_DECLARE(sensor_event); \ No newline at end of file -- cgit v1.2.3