You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/06/23 14:06:46 UTC

[GitHub] [mynewt-core] kasjer opened a new pull request #2626: hal/flash: Relax flash id number restriction

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


   So far flash ids needed to start from 0 to some number.
   It was not possible to have only some numbers.
   If BSP specified flash areas that belonged to 3 devices.
   Device ID would be 0,1,2.
   If bootloader (or some application configuration) was not
   to touch some of the devices hal_bsp_flash_dev() function
   would just return NULL to end flash device enumeration.
   If bsp.yml contained flash areas belonging to 3 flash devices,
   application (bootloader) could have access to 0, or 0,1 or 0,1,2
   devices. It could not access only 0 and 2.
   
   This change introduces HAL_FLASH_MAX_DEVICE_COUNT that when specified
   allows to not have driver present for some of the flash devices.
   
   Default value (0) keeps old behavior.


-- 
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:
users@infra.apache.org



[GitHub] [mynewt-core] kasjer merged pull request #2626: hal/flash: Relax flash id number restriction

Posted by GitBox <gi...@apache.org>.
kasjer merged pull request #2626:
URL: https://github.com/apache/mynewt-core/pull/2626


   


-- 
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-unsubscribe@mynewt.apache.org

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