@Victor, if you do get a chance to get something working for ADC – DMA transfer using one of the timers that would be perfect. It would give us full speed on the ADC too I suspect. Currently I’m only polling the ADC, but if we can use DMA and the timer to to precise ADC conversions we will get more accurate timings (although even polling gives some pretty accurate results so far as I can tell).
I must admit I’m quite enjoying messing about with this, what actually sparked my interest in the STM32F103 was the built in RTC, but that has taken a back seat for the time being, and this little project has taken over.
One thing I did discover is that the PWM frequency is actually not 1100 Hz as stated by Leaflabs, but actually 550 Hz – on the PWM pin I am using, seems the pre-scaler value they used for timer 3 is out (I’m using PB1 for my test output pin).
It was pretty obvious something was wrong, when I looked at it on the STM32-O-Scope screen, and when I compared the results on my office scope it showed the STM32-O-Scope was measuring the period correctly. I though I had a bug in my code. I then checked and there is some info about this on the leaflabs forum. I’m going to mess with the timers next if I get a chance, and see if I can set up some control over the output frequency using serial port commands.
I’ve pushed my latest code to git if anybody else wants to play. 
I am wasting most of my time with the bootloader the usb enumeration stuff, but if I get a minute I’ll try to see if I can test ADC DMA captures.
If that worked fine, all you would need would be 2 buttons or a touch screen to adjust the capture frequency
I have a bunch of serial commands configured, including one to increase/decrease the timebase, so I can just hook in to those.
I have a touch screen, but I haven’t started to play with the touch library yet.