From bb361cbb899c4a916100689f24f4d871f8cf2f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Raz=20Guzm=C3=A1n=20Macedo?= Date: Mon, 4 Mar 2024 10:09:26 -0600 Subject: [PATCH] make Uart struct repr(C) --- training-slides/src/pac-svd2rust.md | 1 + 1 file changed, 1 insertion(+) diff --git a/training-slides/src/pac-svd2rust.md b/training-slides/src/pac-svd2rust.md index 65f647d5..022fadbe 100644 --- a/training-slides/src/pac-svd2rust.md +++ b/training-slides/src/pac-svd2rust.md @@ -81,6 +81,7 @@ uart0_reg_t* const p_uart = (uart0_reg_t*) 0x40002000; ## Structures in Rust ```rust [] ignore +#[repr(C)] pub struct Uart0 { pub tasks_startrx: VolatileCell, // @ 0x000 pub tasks_stoprx: VolatileCell, // @ 0x004