Hi,
I am having trouble with reading data from the serial port. I initially followed the RT Serial example from captain. I changed the read task to a periodic 20ms task, from which I read from the serial port (rtser0). This is all that the rt_task is doing. The serial port config is:
static const struct rtser_config read_config = {
.config_mask = 0xFFFF,
.baud_rate = 57600,
.parity = RTSER_NO_PARITY,
.data_bits = RTSER_8_BITS,
.stop_bits = RTSER_1_STOPB,
.handshake = RTSER_NO_HAND,
.fifo_depth = RTSER_DEF_FIFO_DEPTH,
.rx_timeout = RTSER_DEF_TIMEOUT,
.tx_timeout = RTSER_DEF_TIMEOUT,
.event_timeout = RTSER_DEF_TIMEOUT,
.timestamp_history = RTSER_RX_TIMESTAMP_HISTORY,
.event_mask = RTSER_EVENT_RXPEND,
};