Hi Giovanni,
I seem to get the right events when using chEvtGetAndClearFlagsI - Thanks.
The issue I am having is that I am sending a lot of data over the serial port and it just stops working after a while. The code gets stuck when sending data (not receiving).
My code has some proprietary stuff ...
Search found 3 matches
- Sun Dec 02, 2012 11:35 pm
- Forum: General Support
- Topic: Issues with Serial and Event
- Replies: 6
- Views: 5138
- Sun Dec 02, 2012 10:06 pm
- Forum: General Support
- Topic: Issues with Serial and Event
- Replies: 6
- Views: 5138
Re: Issues with Serial and Event
Thank you both for your prompt response. I am using 2.5.1 and flagmask_t does not seem to be supported anymore.
So I have adjust the code to get the eventmask_t with
eventmask_t m = chEvtWaitOne(ALL_EVENTS);
Doing this, I get the UART sending me many events even what seems to be non documented ...
So I have adjust the code to get the eventmask_t with
eventmask_t m = chEvtWaitOne(ALL_EVENTS);
Doing this, I get the UART sending me many events even what seems to be non documented ...
- Sun Dec 02, 2012 9:09 pm
- Forum: General Support
- Topic: Issues with Serial and Event
- Replies: 6
- Views: 5138
Issues with Serial and Event
I am having issues with the serial buffer and event listening. There are not many examples on either topics. So I am not sure what is going wrong.
I am trying to monitor the events of the SerialDriver SD2. I have created a thread with the code below:
static msg_t Uart1EVT_Thread(void *p) {
char ...
I am trying to monitor the events of the SerialDriver SD2. I have created a thread with the code below:
static msg_t Uart1EVT_Thread(void *p) {
char ...