v01d commented on issue #1020:
URL: 
https://github.com/apache/incubator-nuttx/issues/1020#issuecomment-628896656


   I started a mockup of how a devicetree could be used for NuttX (for now only 
for I2C/SPI device initialization). I created a repository, you can try it out 
here: https://github.com/v01d/nuttx-devtree
   For now I'm using the tools I'm comfortable with (C++11 and CMake). Using 
Make is no problem, CMake just integrates better with QtCreator. As for the 
language, if C++ is acceptable, great. Otherwise, I can eventually translate it 
into C.
   
   The idea is to call into functions with well defined interface (for now, I 
assumed the interface I adopted for sensors defined in board common code). As 
more things are moved into board common logic this could be used aswell for 
those.


----------------------------------------------------------------
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.

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


Reply via email to