google / cyanobyte

Machine-readable datasheets
https://cyanobyte.dev
Apache License 2.0
80 stars 31 forks source link

Migration of peripheral files: objects versus arrays #122

Closed Fleker closed 4 years ago

Fleker commented 4 years ago

Right now all of the peripheral files are setup in having both arrays and objects.

registers:
    - registerName:
        address: 0x60

This is unnecessary, as YAML files can contain an array or contain objects. The proper way to do this is by using object keys directly.

registers:
    registerName:
        address: 0x60

Cleaning this up will be a large refactor but will improve the codebase quite a bit and serve as more idiomatic YAML.