Reminds of the old adage - You never code in plain C, you need to first #define some macros and then you can proceed with metaprogramming
You think those GPIO registers are going to encode themselves?