From b823a00f8ecd449871079501bfcc43f2102ac414 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 25 Mar 2019 15:50:14 -0400 Subject: [PATCH] we need TLE8888 driver #714 --- firmware/hw_layer/drivers/gpio/tle8888.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/drivers/gpio/tle8888.cpp b/firmware/hw_layer/drivers/gpio/tle8888.cpp index 9e8acc05e5..d99fb0daed 100644 --- a/firmware/hw_layer/drivers/gpio/tle8888.cpp +++ b/firmware/hw_layer/drivers/gpio/tle8888.cpp @@ -3,11 +3,19 @@ * @author Andrey Belomutskiy, (c) 2012-2019 */ -#define TLE8888_CmdOE 0x1C - #include "engine.h" #include "tle8888.h" +/** + * 15.2 SPI Frame Definition + * + */ +#define Cmd_write_access 1 +#define CmdOE 0x1C +#define DATA_OE_ENABLE 00000010b + +static unsigned char tx_buff[2]; + EXTERN_ENGINE; static SPIDriver *driver;