zephyr/cmake
Martí Bolívar 77a403cf6e cmake: extensions: add NAME parameter to DT register helpers
Allow register address and size access by name.

Example devicetree fragment:

  / {
          foo@deadbeef {
                  reg = <0xdeadbeef 0x1000>, <0xfeedface 0x2000>;
                  reg-names = "bar", "baz";
          };
  };

Example usage:

  dt_reg_addr(bar_addr PATH "/foo@deadbeef" NAME bar)
  dt_reg_size(bar_size PATH "/foo@deadbeef" NAME bar)

  dt_reg_addr(baz_addr PATH "/foo@deadbeef" NAME baz)
  dt_reg_size(baz_size PATH "/foo@deadbeef" NAME baz)

Results:

  - bar_addr is 0xdeadbeef
  - bar_size is 0x1000
  - baz_addr is 0xfeedface
  - baz_size is 0x2000

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-12-07 20:25:40 -06:00
..
app scripts: support compile_commands.json in gen_app_partitions.py 2021-11-25 10:41:28 -05:00
bintools cmake: gnu: Fix debugging when GDB fails to load because of Python 2021-09-23 12:47:39 +02:00
compiler cmake: CMake compile features support 2021-10-01 14:40:33 -04:00
emu cmake: support multiple entries in board.cmake 2021-11-12 21:33:42 -05:00
flash cmake: support multiple entries in board.cmake 2021-11-12 21:33:42 -05:00
ide
linker cmake: CMake linker script generator pass handling 2021-11-08 20:45:07 +01:00
linker_script cmake: rework linker script generation and linker prebuilt stages 2021-11-16 10:41:59 +01:00
makefile_exports
reports build: reports: publish all reports 2021-07-21 14:54:30 +03:00
toolchain toolchain: esp32: define target toolchain 2021-09-28 20:06:25 -04:00
usage
util
boards.cmake cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
ccache.cmake
cfb.cmake
dts.cmake cmake: re-work devicetree preprocessing steps 2021-12-07 13:39:37 -05:00
extensions.cmake cmake: extensions: add NAME parameter to DT register helpers 2021-12-07 20:25:40 -06:00
extra_flags.cmake
gcc-m-cpu.cmake cmake: add the gcc -mcpu parameter value for the Cortex-A9 CPU 2021-10-28 15:26:50 +02:00
generic_toolchain.cmake
git.cmake cmake: cleanup version printing during CMake configure time 2021-05-07 20:50:02 -04:00
hex.cmake
host-tools.cmake cmake: expand DTC version regex 2021-11-17 11:14:31 -05:00
kconfig.cmake cmake: fix multiple shield parsing 2021-12-06 08:12:18 -05:00
kobj.cmake
mcuboot.cmake kconfig: Add option for encryption of binaries 2021-08-26 21:15:54 -04:00
pristine.cmake
python.cmake cmake: use WEST_PYTHON as a preferred python installation if defined. 2021-04-27 13:31:23 -04:00
shields.cmake
target_toolchain_flags.cmake cmake: CMake compile features support 2021-10-01 14:40:33 -04:00
target_toolchain.cmake scripts: gen_handles.py: take device start symbol as argument. 2021-08-30 08:54:23 -04:00
verify-toolchain.cmake cmake: Set minimum required Zephyr SDK version to 0.13.1 2021-09-24 07:35:40 -04:00
version.cmake cmake: cleanup version printing during CMake configure time 2021-05-07 20:50:02 -04:00
west.cmake
zephyr_module.cmake cmake: ZEPHYR_MODULES_NAMES list created before ext-root 2021-11-27 13:07:09 +01:00