mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-19 16:35:05 +00:00
Add cs_gpios to esp32_spi driver
This commit is contained in:
parent
394b1e1957
commit
9872825f6f
@ -34,5 +34,9 @@ properties:
|
|||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
description: |
|
description: |
|
||||||
Data transfer size limit in bytes.
|
Data transfer size limit in bytes.
|
||||||
0 means the platform decides the limit.
|
0 means the platform decides the limit.
|
||||||
|
cs-gpios:
|
||||||
|
type: phandle-array
|
||||||
|
default: { 0 }
|
||||||
|
description: Null-terminated array of chip select GPIO pin specs for peripherals on this bus
|
||||||
|
|||||||
@ -23,6 +23,8 @@ struct Esp32SpiConfig {
|
|||||||
struct GpioPinSpec pin_hd;
|
struct GpioPinSpec pin_hd;
|
||||||
/** Data transfer size limit in bytes. 0 means the platform decides the limit. */
|
/** Data transfer size limit in bytes. 0 means the platform decides the limit. */
|
||||||
int max_transfer_size;
|
int max_transfer_size;
|
||||||
|
/** Null-terminated array of chip select GPIO pin specs */
|
||||||
|
struct GpioPinSpec cs_gpios[];
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user