While looking through the examples in the Keil directory of my installation, I discovered that they all use a file called STM32_init.c to set the chip up. I like this approach, having all the configurations in one place, but how does it work? There appears to be a numbe rof #defines for all the peripheral setups, but I cannot see where these are referenced as they are not in the STM32_reg.h file, or used in the source code either. --dave
Thanks for putting me right st7. It seems that using that functionality would put any portability out the window if you needed to use a different compiler other than Keil.