From b0356477bb99ce627e21091445fe0cd3fb8025d5 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Wed, 22 May 2024 02:32:12 +0200 Subject: FT245_read_buffered now returning actual number of bytes read. --- FT245.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FT245.h') diff --git a/FT245.h b/FT245.h index 03280d1..fdaabf6 100644 --- a/FT245.h +++ b/FT245.h @@ -7,11 +7,11 @@ #include "circular_buffer.h" #ifndef FT245_DRIVER_MODE_DYNAMIC -#define FT245_DRIVER_MODE_DYNAMIC 1 +#define FT245_DRIVER_MODE_DYNAMIC 0 #endif #ifndef FT245_DRIVER_MODE_STATIC -#define FT245_DRIVER_MODE_STATIC 0 +#define FT245_DRIVER_MODE_STATIC 1 #endif #ifndef FT245_BUFFER_SIZE_TX @@ -444,7 +444,7 @@ extern uint32_t FT245_BE3_read(void); void FT245_init(ft245_t *ft245); void FT245_periodic(ft245_t *ft245); bool FT245_write_buffered(ft245_t *ft245, uint8_t *data, size_t size); -bool FT245_read_buffered(ft245_t *ft245, uint8_t *data, size_t size); +size_t FT245_read_buffered(ft245_t *ft245, uint8_t *data, size_t size); bool FT245_write_word_buffered(ft245_t *ft245, uint32_t word); bool FT245_read_word_buffered(ft245_t *ft245, uint32_t *word); size_t FT245_available_read(ft245_t *ft245); -- cgit v1.2.1