chiptool icon indicating copy to clipboard operation
chiptool copied to clipboard

Add `AddPeripherals` transform

Open decaday opened this issue 4 months ago • 0 comments

Adds the AddPeripherals transform, allowing peripherals to be appended to matching devices.

Example:


  - !AddPeripherals
      devices: .*
      peripherals:
        - name: MAILBOX1
          base_address: 0x50082000
          block: mailbox::Mailbox

This follows the same motivation as the AddInterrupts transform.

The generic Add transform merges data at the top-level IR level. If Add were used to add a peripheral to an existing device, the IR::merge logic (or BTreeMap::extend) could cause the entire device entry to be replaced, overwriting the original lists of peripherals and interrupts for that device.

decaday avatar Nov 08 '25 03:11 decaday