Update down-the-stack/solutions/src/bin/uarte_enable.rs

Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
This commit is contained in:
Tanks Transfeld 2023-03-21 18:13:45 +01:00 committed by GitHub
parent 14247f51e7
commit 747edc5cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ fn main() -> ! {
// disable the UART0 peripheral by writing 0 directly into the register -- the unsafe way
unsafe {
uarte.enable.write(|w| w.bits(0x00 as u32));
uarte.enable.write(|w| w.bits(0x00u32));
}
is_uarte_enabled(&uarte);