~ruther/avr-device

c041f10aadd9480feff253980de930b7943be46a — Rahix 6 years ago 0806f41
Add _write_constraint to README

Signed-off-by: Rahix <rahix@rahix.de>
1 files changed, 14 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +14 -0
@@ 49,6 49,20 @@ If patches need to be applied, create a `<chipname>.yaml` in `patch/`. The patch
```yaml
PERIPHERIAL:
    REGISTER:
        _modify:
          FIELD:
            # If a field already contains a write-constraint, you can
            # change it using the _write_constraint modifier.  The
            # following values are allowed:

            # "enum": Only allow enumerated values (<useEnumeratedValues>)
            _write_constraint: "enum"

            # Remove any existing writeConstraint tag
            _write_constraint: "none"

            # Constrain to a range of values (<range>)
            _write_constraint: [min, max]
        FIELD:
            # Replaces the enumeratedValues definition for this field.
            # If it does not exist yet, it is created.

Do not follow this link