rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
687 stars 149 forks source link

max cluster size #649

Closed burrbull closed 2 years ago

rust-highfive commented 2 years ago

r? @therealprof

(rust-highfive has picked a reviewer for you, use r? to override)

adamgreig commented 2 years ago

Code changes LGTM, what's the use of the max_cluster_size option?

burrbull commented 2 years ago

Code changes LGTM, what's the use of the max_cluster_size option?

When cluster has hole in the end it can be used to extend it size and collect clusters to array: изображение

But you need to check there are no intersections with other registers.

bors[bot] commented 2 years ago

Build succeeded:

allexoll commented 1 year ago

FIY this pr seems to be breaking some things over at lpc-rs/lpc-pac, i still need to investigate what's precisely the issue.