incubator-nuttx/drivers/can
dongjiuzhu d452a05910 pollnotify: we should send poll events before semaphore incrementes.
There is a good case on sim platform:
When we input some cmd and click enter key to start application in terminal,
this context will change to application from IDLE loop. Althrough entey key '\r'
has been received to recv buffer and complete post semaphore of reader, but
pollnotify may not be called because context change. So when application run
poll function, because no events happend and poll enter wait, context will
again change to IDLE loop, this pollnotify of IDLE loop will run to send poll
events, poll function of applicaton will wake up. It's wrong!

Change-Id: I812a889f2e90781a9c3cb4b0251cccc4d32bebd1
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-26 08:27:09 -03:00
..
Kconfig stm32f7: Add the option to include RTR in CAN header 2020-06-29 09:05:44 -03:00
Make.defs build: Move INCDIROPT to common place 2020-05-18 15:02:55 -06:00
can.c pollnotify: we should send poll events before semaphore incrementes. 2020-10-26 08:27:09 -03:00
mcp2515.c Check return from nxsem_wait_uninterruptible 2020-03-31 14:58:09 -06:00
mcp2515.h drivers/can: fixed nxstyle warnings 2020-04-01 08:03:50 +02:00