mlyszczek opened a new pull request, #6537:
URL: https://github.com/apache/incubator-nuttx/pull/6537

   This is proposal of new driver for IPCC (inter processor communication 
controller).
   
   This is still work in progress but I would like to request small review now. 
Mainly I would like you to review interfaces as this is common code for all 
architectures.
   
   The only test I did was to properly compile it.
   
   I will be implementing lower half of the driver now, and it would be cool to 
have at least interfaces reviewed before I do all the stuff and will have to 
change half of the code :)
   
   
   I've implemented IPCC as character device, very similar to ordinary UART 
with separate tx and rx (full duplex). It's interrupt driven - lower half 
driver will clear/fill buffers (if buffering is enabled) and notify 
blocked/polling threads. It should be enough to simply call ipcc_register(0); 
to register single full duplex /dev/ipcc0 device. Then simple open/read/write 
to get/send data.
   
   It's a lower half driver responsibility to prepare (reserve) memory for 
IPCC. arch/ part will also have to take IPCC into account when passing heap 
memory for OS - reserved memory should not be exposed to OS as it's shared 
between CPUs which can have different OSes on them. Lower layer will also be 
responsible to send message in proper format, like
   struct { uint32_t buflen; unsigned char buf[] };


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to