mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-25 07:18:08 +00:00
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:
parent
14247f51e7
commit
747edc5cb6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue