You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
321 B

  1. #include "zstm32uart_irq_rx_service.h"
  2. static zstm32uart_t* s_table;
  3. static int s_table_size;
  4. void uart_service_start_all_uart_rx(zstm32uart_t* table, int size) {
  5. s_table = table;
  6. s_table_size = size;
  7. for (size_t i = 0; i < s_table_size; i++) {
  8. HAL_UART_Receive_IT(s_table[i].huart, &s_table->rxbuf, 1);
  9. }
  10. }