summaryrefslogtreecommitdiff
path: root/yocto/esp32d/spi.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2026-01-08 01:00:36 +0100
committerUros Majstorovic <majstor@majstor.org>2026-01-08 01:00:36 +0100
commitb9a36b4bcc6ba144c8376172083e00bbdfa9ec78 (patch)
tree23c70f409e6ed2858f0bfd3d01e2b0fff660e11f /yocto/esp32d/spi.h
parent46b08fc235f3f068034355970697acc0956e5c99 (diff)
removed obsolete
Diffstat (limited to 'yocto/esp32d/spi.h')
-rw-r--r--yocto/esp32d/spi.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/yocto/esp32d/spi.h b/yocto/esp32d/spi.h
deleted file mode 100644
index 4d9ff86..0000000
--- a/yocto/esp32d/spi.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdint.h>
-
-#define SPI_DEV "/dev/spidev0"
-#define SPI_SPEED 10000000
-
-#define SPI_TUN_NAME "tun0"
-
-#define SPI_GPIO_DEV "/dev/gpiochip3"
-#define SPI_GPIO_CTS 28
-#define SPI_GPIO_RTS 25
-
-#define SPI_MTU 1500
-#define SPI_SIZE_HDR 3
-#define SPI_SIZE_BUF (SPI_MTU + SPI_SIZE_HDR)
-#define SPI_SIZE_RECEIVE 16 /* guestimate on number of bytes for transaction initiated by falling RTS */
-
-#define SPI_SIZE_BUFQ 64
-#define SPI_SIZE_MSGQ_IN 32
-#define SPI_SIZE_MSGQ_OUT 32
-
-#define SPI_MTYPE_TUN 1
-
-#define SPI_OK 0
-#define SPI_ERR -1
-#define SPI_ERR_OPEN -10
-#define SPI_ERR_MSG -11
-
-unsigned char *spi_alloc(void);
-void spi_free(unsigned char *buffer);
-int spi_xchg(unsigned char mtype, unsigned char *buffer, uint16_t len);
-int spi_init(void); \ No newline at end of file