Results 451 comments of Rahix

> There is also an issue that module list contain the caption attribute of that module, but the instances of that module does not contain the caption attribute. Currently atdf2svd...

Let's make a list of necessary work in `atdf2svd`: - [x] Fix `signals_to_port_fields` patch: Rahix/atdf2svd#6 - [x] Fall back to caption from module if instance caption is missing: Rahix/atdf2svd#5 -...

I now released version [0.2.0](https://github.com/Rahix/atdf2svd/releases/tag/v0.2.0) of `atdf2svd` with lots of improvements related to this issue. Thanks a lot to @trembel and @explicite who did most of the work!

Actually, just noticed something: ```rust interrupt::free(|cs1| { interrupt::free(|cs2| { interrupt::hypothetical_enable(cs1); some_mutex.lock(&cs2); }); }); ``` I don't think this is going to work unfortunately ...

Yeah, different kinds of tokens was also what I was thinking about but not sure if that's a good idea ... Also, it really feels like `Deref`-abuse to do that...

Actually, no: ```rust fn main(other_cs: CriticalPrologue) { interrupt::free(|cs| { interrupt::enable(other_cs); // now what }); } ```

When commenting out the bad main in your example, it still does not compile? TBH, I don't see how there even _could_ be a borrow-checker based solution here, I think...

Can you paste the full error log please?

Okay, from a quick glance it looks like this chip will need a few changed in [`atdf2svd`](https://github.com/Rahix/atdf2svd) ... There's some differences in the XML compared to the other files we've...

The _missing "caption"_ error should be easy to fix. The _size not found_ ones are a bit more difficult. It looks like the structure in your ATDF file is different...