mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-06-19 20:35:06 +00:00
25 lines
457 B
C
25 lines
457 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <driver/uart.h>
|
|
#include <hal/i2c_types.h>
|
|
#include <tactility/drivers/gpio.h>
|
|
#include <tactility/drivers/grove.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Esp32GroveConfig {
|
|
enum GroveMode defaultMode;
|
|
struct GpioPinSpec pinSdaRx;
|
|
struct GpioPinSpec pinSclTx;
|
|
uart_port_t uartPort;
|
|
i2c_port_t i2cPort;
|
|
uint32_t i2cClockFrequency;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|