Skip to content

Commit

Permalink
make Uart struct repr(C)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Mar 4, 2024
1 parent 4a5b5a5 commit bb361cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions training-slides/src/pac-svd2rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32>, // @ 0x000
pub tasks_stoprx: VolatileCell<u32>, // @ 0x004
Expand Down

0 comments on commit bb361cb

Please sign in to comment.