Skip to content

Split serial RX and TX clients #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Courtney3141
Copy link
Contributor

@Courtney3141 Courtney3141 commented Jan 13, 2025

For the serial subsystem, it makes sense to have a different number of clients capable of input and output: not all clients which are capable of output will need input. Prior to this PR, there was a SERIAL_NUM_CLIENTS macro, as well as a SERIAL_TX_ONLY macro which indicated whether or not serial input was required (e.g. whether the driver enabled RX IRQs, or if an RX virtualiser is necessary).

I believe it makes more sense to instead have a separate count for each functionality, as for example it is plausible that a system may have only 1 client with input enabled, and more than 1 with output enabled.

This PR essentially turns the SERIAL_NUM_CLIENTS and SERIAL_TX_ONLY macros into the SERIAL_NUM_TX_CLIENTS and SERIAL_NUM_RX_CLIENTS macros, in preparation for the tooling supporting specification for each client whether TX and/or RX are enabled.

Merge after #301.

@Courtney3141 Courtney3141 force-pushed the split_serial_rx_tx_clients branch from b9d9794 to 594fd86 Compare January 13, 2025 03:51
@Courtney3141 Courtney3141 force-pushed the split_serial_rx_tx_clients branch from 594fd86 to 196f206 Compare January 13, 2025 04:22
@JE-Archer JE-Archer changed the base branch from main to simplify_serial_queue_interface January 14, 2025 07:12
@Courtney3141 Courtney3141 force-pushed the simplify_serial_queue_interface branch 3 times, most recently from 32a4bb8 to 524ca66 Compare January 15, 2025 06:16
@Courtney3141 Courtney3141 reopened this Jan 15, 2025
@Courtney3141 Courtney3141 marked this pull request as draft January 15, 2025 06:46
@Courtney3141 Courtney3141 force-pushed the simplify_serial_queue_interface branch 2 times, most recently from 41b35a2 to d8bed51 Compare January 17, 2025 06:58
@Courtney3141 Courtney3141 force-pushed the simplify_serial_queue_interface branch from d52a7d8 to bdb9b0b Compare January 25, 2025 02:07
Base automatically changed from simplify_serial_queue_interface to main January 30, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant