Tools: DFG: Sort stm32 afs by id.
Add type only when it is not 'io'.
Write peripherals sorted by name.
Platform: XML: Add STM32F407 device file.
Scons: Platform Tools: Add new STM32F device file parsing method.