I'm extremely new to the STM32F103 (just received it in the post today) and would like to know how (the best way) to set up one of its pins as a clock source for an external circuit.
Ideally, I would like it to be able to produce a 2, 4 or 8 MHz (software selectable) clock signal suitable to run an external microprocessor.
Can anyone point me in the right direction with some example code?
EDIT: Oops. Missed out an important part of the question - I need TWO clock sources - one as described above and the other fixed at 2 MHz (but synched with the first clock signal.) Is this possible using one or two of the Timers?