gpio.h should include iobank0.h #733

Closed
opened 2022-02-19 18:03:22 -06:00 by WestfW · 1 comment
WestfW commented 2022-02-19 18:03:22 -06:00 (Migrated from github.com)

If the intention is that #include <hardware/periph.h> should end up including all of the info to access periph at any of sdk, structure, or individual register level (as mentioned here: https://forums.raspberrypi.com/viewtopic.php?t=329937#p1975241 ), then hardware/gpio.h needs to include the hardware/structs/iobank0.h and hardware/regs/io_bank0.h to be able to reference things like iobank0_hw->intr[0]

https://forums.raspberrypi.com/viewtopic.php?p=1974871#p1974871
https://forums.raspberrypi.com/viewtopic.php?p=1975914#p1975814

(and why does one of those filenames have an underscore, and one not?)

If the intention is that `#include <hardware/periph.h>` should end up including all of the info to access `periph` at any of sdk, structure, or individual register level (as mentioned here: https://forums.raspberrypi.com/viewtopic.php?t=329937#p1975241 ), then **hardware/gpio.h** needs to **include the hardware/structs/iobank0.h** and **hardware/regs/io_bank0.h** to be able to reference things like `iobank0_hw->intr[0]` https://forums.raspberrypi.com/viewtopic.php?p=1974871#p1974871 https://forums.raspberrypi.com/viewtopic.php?p=1975914#p1975814 (and why does one of those filenames have an underscore, and one not?)
kilograham commented 2022-05-04 16:34:21 -05:00 (Migrated from github.com)

merged into develop

merged into develop
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#733
No description provided.