Closed thejpster closed 5 years ago
Interesting problem while making the serial code shared...
https://docs.rs/tm4c129x/0.7.0/tm4c129x/uart0/dr/struct._DATAW.html is safe. https://docs.rs/tm4c123x/0.7.0/tm4c123x/uart0/dr/struct._DATAW.html is unsafe.
I either get "need unsafe to call this function" or "unnecessary unsafe block".
Same with
https://docs.rs/tm4c123x/0.7.0/tm4c123x/uart0/ibrd/struct._DIVINTW.html and https://docs.rs/tm4c129x/0.7.0/tm4c129x/uart0/ibrd/struct._DIVINTW.html
Hmm, actually, it seems OK with the unsafe block regardless.
Interesting problem while making the serial code shared...
https://docs.rs/tm4c129x/0.7.0/tm4c129x/uart0/dr/struct._DATAW.html is safe. https://docs.rs/tm4c123x/0.7.0/tm4c123x/uart0/dr/struct._DATAW.html is unsafe.
I either get "need unsafe to call this function" or "unnecessary unsafe block".