Andy's Workshop Forums

General Category => stm32plus C++ library => Topic started by: randy.glenn on October 26, 2016, 11:06:32 am

Title: STM32F072 port
Post by: randy.glenn on October 26, 2016, 11:06:32 am
Hi,

I'd like to port the library to the STM32F072 - it should be similar enough to the STM32F051 to make it easy. Any pointers on where to start?

Thanks,

-Randy
Title: Re: STM32F072 port
Post by: Andy Brown on October 30, 2016, 03:06:55 pm
Hi Randy,

Creating an 072-specific build should be quite straightforward because it is supported by the standard peripheral library and is quite similar to the other supported F0 builds. I actually considered doing an F072 build for the nanocounter (http://andybrown.me.uk/2016/02/21/nanocounter/) project but in the end didn't bother because the F051 build was close enough to work.

To get started, search the source code for all occurrences of something like 'STM32PLUS_F0_51'. You'll be creating a similar macro 'STM32PLUS_F0_72' and using it wherever it's appropriate.