From 09c02c202337f6651447b45de021097c234d5297 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Wed, 15 May 2024 22:13:54 +0200 Subject: FT245.h: Made compile time switches configurable from outside. --- FT245.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'FT245.h') diff --git a/FT245.h b/FT245.h index b5438d3..03280d1 100644 --- a/FT245.h +++ b/FT245.h @@ -6,11 +6,21 @@ #include #include "circular_buffer.h" +#ifndef FT245_DRIVER_MODE_DYNAMIC #define FT245_DRIVER_MODE_DYNAMIC 1 +#endif + +#ifndef FT245_DRIVER_MODE_STATIC #define FT245_DRIVER_MODE_STATIC 0 +#endif +#ifndef FT245_BUFFER_SIZE_TX #define FT245_BUFFER_SIZE_TX 64 +#endif + +#ifndef FT245_BUFFER_SIZE_RX #define FT245_BUFFER_SIZE_RX 64 +#endif typedef circular_buffer_struct(uint8_t, FT245_BUFFER_SIZE_TX) buffer_tx_t; typedef circular_buffer_struct(uint8_t, FT245_BUFFER_SIZE_RX) buffer_rx_t; -- cgit v1.2.1