2026-03-19 7:30 AM - edited 2026-03-20 6:25 AM
Split from Inconsistent pin naming - this is a separate suggestion.
I would like the option to have the define of a particular GPIO port, or all defines, not typecasted to a pointer. So only the base address as an uint32_t (or uintptr_t). This would make using it in C++ in constexpr easier. Because reinterpret_cast and pointer comparison is not allowed in a constant expression. This should be an additional define for backwards compatibility.
#define CLK_A_GPIO_PIN GPIO_PIN_0
#define CLK_A_GPIO_PORT GPIOF
#define CLK_A_GPIO_PORT_BASE GPIOF_BASE // <- for use in constexpr
In C++ it would be much easier to do things at compile time using templates and constexpr this way. Example:
Solved! Go to Solution.
2026-03-24 12:23 AM
Hello @unsigned_char_array
A change request #0060932 has been raised to dev team for feasibility check.
I will keep you posted with updates.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-24 12:23 AM
Hello @unsigned_char_array
A change request #0060932 has been raised to dev team for feasibility check.
I will keep you posted with updates.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.