I don't like this style.  I prefer checking for the existance of the GPIO_PORT_XX_BASE rather than a specific chip define.  The L1 has portH and portI too for instance.

I personally would rather see the file just stay as common_f24 rather than yet another name, but that's just me.