Hi,
As you see most of the file is actually the same.
Even the STM32F050 and the STM32F051 files share a lot of common lines. (check the files with meld or something similar which shows much better than diff how much of the file is similar).
Currently, the algorithm only works on an entire GPIO, so even small differences in AF are seen as a completely different GPIO. Having a "second layer" of differences within one GPIO, will require some changes to the way the generator stores the differences. It might be interesting to create a generic solution for this problem, but for now it is simpler to merge this by hand. The DFG is supposed to be a starting point for further manual optimisation, not a finished solution. I have committed a hand-optimized file for the 050/051 combination.
I think for the sake of disk space and readability it might be a good idea to try and improve the merging algorithm before we check in these files. For the STM32F0 I think a common file for STM32F050 and STM32F051 should be possible. This should still be easy for humans to read.
Hm, currently the devices are not even merged by name. For example the 405 and 407 are also not merged. This was probably because the previous algorithm messed up there, I will have a look at it. Cheers, Niklas