Open windoze opened 3 years ago
Until a guide comes along the best thing to do is to take the lib.rs
file of an existing board support crate and start from there. You'll want to generate a peripheral access crate from an SVD file if at all possible to use rather than direct register manipulation.
atsamd-rs has PAC crates for SAMD chips already, so should be able to start from there rather than do the SVD generation again
@jamesmunns added a section on adding new chips recently https://github.com/embassy-rs/embassy/pull/2952
I briefly looked into the source code but failed to find a clear path to add support for new boards (namely Seeedstudio XIAO, which is a tiny SAMD21 based MCU). Would you like to provide some documents or sketch about adding a new board?
Thanks, Chen