summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.c
Commit message (Collapse)AuthorAge
* Change some parts of the core API to use mp_uint_t instead of uint/int.Damien George2014-08-30
| | | | Addressing issue #50, still some way to go yet.
* stmhal: Resolve question in comment about timer clock.Damien George2014-08-14
|
* Rename machine_(u)int_t to mp_(u)int_t.Damien George2014-07-03
| | | | See discussion in issue #50.
* stmhal: Some reordering of code/functions.Damien George2014-07-02
|
* Add timer_deinit and call it just before doing a soft-restartDave Hylands2014-06-30
| | | | This fixes #733.
* Prefix ARRAY_SIZE with micropython prefix MP_Emmanuel Blot2014-06-19
|
* 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: Remove #include <stdint.h> from mpconfigport.h.Damien George2014-05-03
| | | | | Make include dependencies neater, and adheres to the coding convention that headers should not include headers.
* stmhal: Add documentation for DAC and Timer classes.Damien George2014-05-02
|
* Simplify names for argcheck.c / arg parsing.Damien George2014-04-26
|
* Add ARRAY_SIZE macro, and use it where possible.Damien George2014-04-26
|
* stmhal, timer: Remove obsolete global variable.Damien George2014-04-21
|
* 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: Improve flash storage cache management.Damien George2014-04-16
| | | | | | | | | | | | | | | | Internal flash used for the filesystem is now written (from the cache) only after a 5s delay, or when a file is closed, or when the drive is unmounted from the host. This delay means that multiple writes can accumulate in the cache, and leads to less writes to the flash, making it last longer. It's implemented by a high-priority interrupt that takes care of flash erase and write, and flushing the cache. This is still only an interim solution for the flash filesystem. It eventually needs to be replaced with something that uses less RAM for the cache, something that can use more of the flash, and something that does proper wear levelling.
* 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).
* py: Change nlr_jump to nlr_raise, to aid in debugging.Damien George2014-04-05
| | | | | | This does not affect code size or performance when debugging turned off. To address issue #420.
* 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.