mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Implement SPI devices in dts files for all devices - Removed `tt::hal::spi` HAL and its configurations - Fix for devicetree generator "boolean" support - Remove unused custom locks in all `DisplayDevice` implementations - Fixed some bugs with devices - Updated XPT2046 driver - Fix for `WifiEsp` deadlock - Export a lot of new `math.h` symbols with `tt_init.cpp` - Created `SpiDeviceLock` in `TactilityCore` as a wrapper for kernel SPI locking - Improved `TactilityKernel` SPI driver.
30 lines
563 B
C
30 lines
563 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <driver/spi_common.h>
|
|
#include <tactility/drivers/spi_controller.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Esp32SpiConfig {
|
|
spi_host_device_t host;
|
|
/** Data 0 pin */
|
|
int pin_mosi;
|
|
/** Data 1 pin */
|
|
int pin_miso;
|
|
/** Clock pin */
|
|
int pin_sclk;
|
|
/** Data 2 pin */
|
|
int pin_wp;
|
|
/** Data 3 pin */
|
|
int pin_hd;
|
|
/** Data transfer size limit in bytes. 0 means the platform decides the limit. */
|
|
int max_transfer_size;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|