From f2c4b15c72a2fa89caed5d8a11a4ea9832c48be6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 22:44:37 +0530 Subject: feat: add AXS15231B touch driver with coordinate parsing tests --- tests/unit/stubs/driver/i2c_master.h | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/unit/stubs/driver/i2c_master.h (limited to 'tests/unit/stubs/driver/i2c_master.h') diff --git a/tests/unit/stubs/driver/i2c_master.h b/tests/unit/stubs/driver/i2c_master.h new file mode 100644 index 0000000..f49eaad --- /dev/null +++ b/tests/unit/stubs/driver/i2c_master.h @@ -0,0 +1,39 @@ +#ifndef STUBS_DRIVER_I2C_MASTER_H +#define STUBS_DRIVER_I2C_MASTER_H + +#include "driver/i2c_types.h" +#include "esp_err.h" +#include +#include + +static inline esp_err_t i2c_new_master_bus(const i2c_master_bus_config_t *cfg, i2c_master_bus_handle_t *ret) { + (void)cfg; (void)ret; + return ESP_OK; +} + +static inline esp_err_t i2c_master_bus_add_device(i2c_master_bus_handle_t bus, const i2c_device_config_t *cfg, i2c_master_dev_handle_t *ret) { + (void)bus; (void)cfg; (void)ret; + return ESP_OK; +} + +static inline esp_err_t i2c_master_transmit(i2c_master_dev_handle_t dev, const uint8_t *buf, size_t len, int timeout_ms) { + (void)dev; (void)buf; (void)len; (void)timeout_ms; + return ESP_OK; +} + +static inline esp_err_t i2c_master_receive(i2c_master_dev_handle_t dev, uint8_t *buf, size_t len, int timeout_ms) { + (void)dev; (void)buf; (void)len; (void)timeout_ms; + return ESP_OK; +} + +static inline esp_err_t i2c_master_bus_rm_device(i2c_master_dev_handle_t dev) { + (void)dev; + return ESP_OK; +} + +static inline esp_err_t i2c_del_master_bus(i2c_master_bus_handle_t bus) { + (void)bus; + return ESP_OK; +} + +#endif -- cgit v1.2.3