Open fangjim opened 1 month ago
Make sure you know that the RX queue exists in the user code so that the user can allocate according to their needs and size of buffer. The RX queue will not be in the BSP layer itself (I know you may not have meant that by your diagram, just want to reiterate). I'd also make sure you know the specific UART interrupt handlers you will need to use. Otherwise block diagram looks good.
can you check to see if the queue is full (for adding) or empty (for popping) before you do any queue accesses.
Key considerations: Data in UART should be tied with a Bus since UART doesn't use 'id's like other peripherals do. Would also need to include error handling, e.g. dropped frames for UART RX