I am writing FLASH code that will work on both a medium and high density STM32 chip. Is there a simple way of selecting the FLASH and PAGE size in my code with out me having two versions of a header file. In other words are there processor configuration #defines that tell me the processor type or better still the flash and page sizes that I can access at compile time.
I'm using Uvision 3 and the two processors I m targetting are STM32F101VB and ..103VE
Thanks