Conversation
Anyone else picked up some older Arduino code written in kernel-like C, which doesn’t compile anymore due to use of non-trivial designated intializers, and had to rewrite the code with C++ objects?
2
0
1

I’d consider rewriting it with Rust and adr-hal.

1
0
1
@jarkko Interesting, does this allow use of existing Arduino libraries?
1
0
0
I now have a LOVELY combination of C and C++ to clean up one day.
0
0
3

Jarkko Sakkinen

Edited 1 year ago

@jmorris given that this is possible i would give it a shot in the similar situation. there’s lot of nostd stuff that you can probably easily adapt to this framework like my go-to rust library heapless.

i’ve taken practice even in non-embedded (user space) rust that i prefer nostd and heapless structures to the max over features when picking dependencies for a rust program. sort of addition of minimizing the number of unsafe regions is to minimize the number of heapful regions.

0
0
0