PY32F002A pac generated by svd2rust follow the doc.
In your Cargo.toml:
toml
[dependencies.py32f002a-pac]
version = "0.1.0"
features=["rt", "critical-section"]
In your code:
```rust use py32f002a_pac as pac;
let dp = pac::Peripherals::take().unwrap(); dp.RCC.iopenr.write(|w| w.gpioaen().set_bit());
let gpioa = dp.GPIOA; gpioa.otyper.write(|w| w.ot5().clearbit()); gpioa.odr.write(|w| w.od5().setbit()); ```
For more api info read the doc