mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-18 07:55:06 +00:00
- Added kernel base drivers for: display, pointer (touch, mouse, etc.), keyboard, adc, power supply and backlight - Implement new kernel driver modules: `st7789-module` and `gt911-module` - Implement ESP32 ADC "oneshot" kernel driver - Implement ESP32 backlight kernel driver with ledc API - Implemented `battery-sense` driver that allows for voltage measurement and creates a power supply child device - Updated github actions - Updated flash scripts - Fix for esp32 legacy driver conflict with ADC - Created separate `lilygo-tdeck` and `lilygo-tdeck-plus` devices - Created `lilygo-module` with LilyGO kernel drivers - Fix for intermittent errors in build related to code generation of `devicetree.c` - `lvgl-module` can now map kernel drivers onto LVGL devices - Created `KernelDisplayApp` as a mirror of `HalDisplayApp` (formerly `DisplayApp`) - Removed `struct` and `enum` prefix in a lot of kernel driver cpp source files - `lilygo-tdeck` and `lilygo-tdeck-plus` are now fully relying on kernel drivers and don't use any of the old HAL
31 lines
646 B
C
31 lines
646 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
struct Device;
|
|
|
|
#define ADC_CHANNEL_SPEC_NONE ((struct AdcChannelSpec) { NULL, 0 })
|
|
|
|
/** The index of a channel on an ADC controller */
|
|
typedef uint8_t adc_channel_index_t;
|
|
|
|
/**
|
|
* Specifies a channel on a specific ADC controller.
|
|
* Used by the devicetree, drivers and application code to refer to ADC channels.
|
|
*/
|
|
struct AdcChannelSpec {
|
|
/** ADC device controlling the channel */
|
|
struct Device* adc_controller;
|
|
/** The channel's index on the device */
|
|
adc_channel_index_t channel;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|