Duplicate struct in header files #640

Closed
opened 2021-10-29 11:40:29 -05:00 by lurch · 1 comment
lurch commented 2021-10-29 11:40:29 -05:00 (Migrated from github.com)

hardware/structs/iobank0.h and hardware/structs/ioqspi.h (which are autogenerated) both contain a struct named io_status_ctrl_hw_t. This means if you try #include-ing both of these headers as the same time, the compilation fails with:

error: conflicting types for 'io_status_ctrl_hw_t'

I guess this is something that we should try to fix for SDK 1.3.0 ?

[`hardware/structs/iobank0.h`](https://github.com/raspberrypi/pico-sdk/blob/develop/src/rp2040/hardware_structs/include/hardware/structs/iobank0.h) and [`hardware/structs/ioqspi.h`](https://github.com/raspberrypi/pico-sdk/blob/develop/src/rp2040/hardware_structs/include/hardware/structs/ioqspi.h) (which are autogenerated) both contain a struct named `io_status_ctrl_hw_t`. This means if you try `#include`-ing both of these headers as the same time, the compilation fails with: ``` error: conflicting types for 'io_status_ctrl_hw_t' ``` I guess this is something that we should try to fix for SDK 1.3.0 ?
kilograham commented 2021-11-01 08:11:47 -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#640
No description provided.