This project contains a C header file that can be parsed by IDA to define the structures of the STM32F2xx HW registers, as well as a tool to generate an IDC script that creates segments for these HW registers and sets their type to the appropriate struct. The addresses are derived from the official CMSIS header files and the whole project should be easily adaptable to other Cortex-M class MCUs.
structs.h
file using (File -> Load File -> Parse C header file)