zephyr/scripts/dts
Ulf Magnusson 045c809561 scripts/dts: Make extract/flash.py easier to read
Clean up the code a bit:

 - Simplify the loops over the flash 'reg' properties by using range()

 - Build identifier names with a plain .format() where possible. This
   makes them stand out better in the code.

 - Remove redundant variables

 - Move variables close to where they're used

 - Misc. other minor improvements

generated_dts_board.conf and generated_dts_board_unfixed.h were verified
to be identical for disco_l475_iot1 and frdm_kw41z before and after the
cleanup.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-06-16 10:10:06 -04:00
..
extract scripts/dts: Make extract/flash.py easier to read 2019-06-16 10:10:06 -04:00
devicetree.py scripts/dts: Fix bug in dead /memreserve/ code 2019-03-28 11:11:13 -05:00
extract_dts_includes.py scripts/dts: Change DT_<COMPAT>_<INSTANCE>_<PROP> define 2019-06-14 08:02:15 -05:00