Skip to main content

Shell-like interface to devicetree

Project description

Author:

Chris Duf

dtsh is an interactive shell-like interface with a devicetree and its bindings:

  • browse the devicetree through a familiar hierarchical file-system metaphor

  • retrieve nodes and bindings with accustomed command names and command line syntax

  • generate simple documentation artifacts by redirecting commands output to files (text, HTML, SVG)

  • common command line interface paradigms (auto-completion, history) and keybindings

$ dtsh build/gzephyr/zephyr.dts
dtsh (0.1.0a2): Shell-like interface to a devicetree
Help: man dtsh
How to exit: q, or quit, or exit, or press Ctrl-D

/
❯ tree -L 1 -l
/
├──  chosen
├──  aliases
├──  soc
├──  pin-controller   The nRF pin controller is a singleton node responsible for controlling…
├──  entropy_bt_hci   Bluetooth module that uses Zephyr's Bluetooth Host Controller Interface as…
├──  cpus
├──  sw-pwm           nRFx S/W PWM
├──  leds             This allows you to define a group of LEDs. Each LED in the group is…
├──  pwmleds          PWM LEDs parent node
├──  buttons          GPIO KEYS parent node
├──  connector        GPIO pins exposed on Arduino Uno (R3) headers…
└──  analog-connector ADC channels exposed on Arduino Uno (R3) headers…

This software was created as a Proof of Concept for a simple tool that could assist newcomers to Zephyr in understanding what a devicetree is, and how bindings describe and constrain its content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dtsh-0.1.0a2.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

dtsh-0.1.0a2-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file dtsh-0.1.0a2.tar.gz.

File metadata

  • Download URL: dtsh-0.1.0a2.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for dtsh-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 517f3373da78ba43c6f933d8976d7ca5e07c221a2026b7ae6b9709849853d017
MD5 ad48aa82bc065293441743b0ccf77ed3
BLAKE2b-256 d81dfb9372f8f8327e4032b70040ef82d8cc35d76ae9b597d0c37f4f920ddde9

See more details on using hashes here.

File details

Details for the file dtsh-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: dtsh-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for dtsh-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 508a467bae14ad558eafb3643d29d0044779d175bc42555c17eebc083207894d
MD5 7445b9ad13729a57e48b6f35934e430c
BLAKE2b-256 16af7fc0570239017013e07c14c9b772634717ba2a05d33111b7311921858967

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page