zephyr/scripts/dts/extract
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
..
__init__.py
clocks.py
compatible.py
default.py scripts/dts: Add support for enum's 2019-05-17 09:53:20 -05:00
directive.py
flash.py scripts/dts: Make extract/flash.py easier to read 2019-06-16 10:10:06 -04:00
globals.py scripts/dts: generate DT_ALIAS_<ALIAS>_<PROP> defines 2019-06-15 11:15:26 -05:00
interrupts.py
reg.py scripts/dts: Fix issue in label generation of registers 2019-05-22 17:27:53 -05:00