kasjer opened a new pull request #2445:
URL: https://github.com/apache/mynewt-core/pull/2445


   This solves the problem of sensor_creator usage along with SPI flash that is 
present in flash map.
   
   If BSP uses SPI flash and sensor creator with SPI devices that are connected 
to the same
   SPI bus as flash, not initializing chip select pin for those other devices 
may lead to wrong
   reads from flash.
   It happens when uninitialized yet GPIO is still perceived by sensor as 
active and sensor responds
   to requests that should be answered by flash.
   
   This adds sensor_dev_init() that has initialization code taken from 
sensor_dev_create().
   Thai also changes flash_map initialization stage to accommodate for other 
initialization that
   could be needed before flash_map can be initialized.


----------------------------------------------------------------
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:
[email protected]


Reply via email to