Skip to content

Commit

Permalink
Removed send buffer from GEA2 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Dec 15, 2024
1 parent 4acaf1d commit f6a42d5
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 189 deletions.
14 changes: 5 additions & 9 deletions include/tiny_gea2_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,16 @@ typedef struct
struct
{
tiny_queue_t queue;
tiny_timer_group_t* queue_timer_group;
tiny_timer_t queue_timer;
uint8_t* buffer;
uint8_t buffer_size;
uint8_t state;
uint8_t offset;
uint16_t crc;
bool escaped;
volatile bool active;
volatile bool packet_queued_in_background;
bool in_progress;
volatile bool completed; // Set by ISR, cleared by background
volatile bool packet_queued_in_background; // Set by ISR, cleared by background
uint8_t expected_reflection;
uint8_t retries;
uint8_t data_length;
} send;

struct
Expand All @@ -76,11 +74,9 @@ typedef struct
void tiny_gea2_interface_init(
tiny_gea2_interface_t* self,
i_tiny_uart_t* uart,
tiny_timer_group_t* timer_group,
i_tiny_time_source_t* time_source,
i_tiny_event_t* msec_interrupt,
uint8_t address,
uint8_t* send_buffer,
uint8_t send_buffer_size,
uint8_t* receive_buffer,
uint8_t receive_buffer_size,
uint8_t* send_queue_buffer,
Expand Down
Loading

0 comments on commit f6a42d5

Please sign in to comment.