summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.h
Commit message (Collapse)AuthorAge
* stmhal: Allow ADC.read_timed to take Timer object in place of freq.Damien George2015-07-22
| | | | | | | This allows a user-specified Timer for the triggering of the ADC read, mirroring the new behaviour of DAC.write_timed. Addresses issue #1129.
* stmhal: Allow DAC.write_timed to take Timer object in place of freq.Damien George2015-07-21
| | | | | | | | This allows the DAC to use a user-specified Timer for the triggering (instead of the default Timer(6)), while still supporting original behaviour. Addresses issues #1129 and #1388.
* Add timer_deinit and call it just before doing a soft-restartDave Hylands2014-06-30
| | | | This fixes #733.
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* stmhal: Add Timer class: simple TIM control, incl callback on IRQ.Damien George2014-04-21
| | | | | | | Simple but functional timer control. More sophistication will eventually be added, or for now just use direct register access :) Also added pyb.freq() function to get MCU clock frequencies.
* stmhal: Add ADC function to read data at a given frequency.Damien George2014-04-15
| | | | | | Reads ADC values into a bytearray (or similar) at a fixed rate. Needs a better name and improved API. Also fix up DAC dma function (which also needs a better name and API).
* stmhal: Add timer module; move servo PWM from TIM2 to TIM5.Damien George2014-04-02
As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.