Is there an elegant way of using CubeMX to generate code for two very different configurations in the same program?
The program is alternating between two modes, one is high performance and the second is low power. For perfomance mode the ADC is used with a timer triggering and DMA+interrupt at fast rate. In the low power mode it is intended to make a single conversion triggered by software on a very slow pace. The clocking is also different. Now I am using custom code to switch peripheral configuration between the two modes. I Would like to use CubeMX for both, in the cleanest possible way. Any good experience to share? Thanks!
