diff options
-rw-r--r-- | FT245.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -6,11 +6,21 @@ #include <stdbool.h> #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; |