Hello:

There has been some discussion in the larger community regarding the proper 
place for the MYNEWT definitions for peripheral existence. For example, these 
are definitions such as I2C_0, UART_0, etc.

In the past, these definitions were placed in hw/bsp/syscfg.yml. At some point 
some of these were defined in hw/mcu/syscfg.yml.

My vote would be to place them in the MCU as it is the MCU that “defines” the 
existence of these peripherals and that duplicating them in each bsp that 
points to a speciifc MCU is redundant. Of course, the BSP can override the MCU 
if desired.

Another side point: should the default definition define these settings to be 0 
or 1 by default? My vote, although I do not feel strongly about this, would be 
to set them to 0 by default and let the bsp or target set the appropriate 
values. My reasoning behind the bsp actually setting them is that it is the bsp 
which actually “defines” which peripherals are used (ie the particular board 
may not use any SPI or I2C and thus no need to set them to 1).

Thanks!

Reply via email to