mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Ensure linear stride
This commit is contained in:
parent
701dd9fa36
commit
14aa4265db
@ -415,6 +415,7 @@ pub fn gen(options: Options) {
|
||||
match bi.module.as_str() {
|
||||
"gpio" => {
|
||||
let port_letter = name.chars().skip(4).next().unwrap();
|
||||
assert_eq!(0, (p.address as u32 - gpio_base) % gpio_stride);
|
||||
let port_num = (p.address as u32 - gpio_base) / gpio_stride;
|
||||
|
||||
for pin_num in 0..16 {
|
||||
|
Loading…
Reference in New Issue
Block a user