- 29 Sep, 2014 1 commit
-
-
Damien George authored
Also improve precision of calculating PWM percent in integer mode. Also update teensy with edge case fix.
-
- 28 Sep, 2014 1 commit
-
-
Dave Hylands authored
Teensy doesn't need to worry about overflows since all of its timers are only 16-bit. For PWM, the pulse width needs to be able to vary from 0..period+1 (pulse-width == period+1 corresponds to 100% PWM) I couldn't test the 0xffffffff cases since we can't currently get a period that big in python. With a prescaler of 0, that corresponds to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't set that using freq or period. I also tested both stmhal and teensy with floats disabled, which required a few other code changes to compile.
-
- 25 Sep, 2014 1 commit
-
-
Damien George authored
Also do the same for teensy timer code.
-
- 24 Sep, 2014 1 commit
-
-
Dave Hylands authored
Fix stmhal and teensy print routines to report actual prescaler an period. Fix teensy build to use soft-float Add USE_ARDUINO_TOOLCHAIN option to teensy build
-
- 21 Sep, 2014 1 commit
-
-
Damien George authored
This allows to set the pulse width (for PWM mode) as a ratio relative to the period of the timer. Eg, 0.5 is a 50% duty cycle. You can set the ratio in the channel init, or using channel.pulse_width_ratio; the latter can also read the pulse width as a ratio.
-
- 19 Sep, 2014 1 commit
-
-
Dave Hylands authored
-
- 29 Aug, 2014 1 commit
-
-
Damien George authored
Addressing issue #50, still some way to go yet.
-
- 13 Aug, 2014 1 commit
-
-
Damien George authored
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
See discussion in issue #50.
-
- 02 Jul, 2014 1 commit
-
-
Damien George authored
-
- 30 Jun, 2014 1 commit
-
-
Dave Hylands authored
This fixes #733.
-
- 19 Jun, 2014 1 commit
-
-
Emmanuel Blot authored
-
- 03 May, 2014 2 commits
-
-
Damien George authored
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/.
-
Damien George authored
Make include dependencies neater, and adheres to the coding convention that headers should not include headers.
-
- 02 May, 2014 1 commit
-
-
Damien George authored
-
- 26 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 21 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
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.
-
- 16 Apr, 2014 1 commit
-
-
Damien George authored
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.
-
- 15 Apr, 2014 1 commit
-
-
Damien George authored
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).
-
- 05 Apr, 2014 1 commit
-
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
- 02 Apr, 2014 1 commit
-
-
Damien George authored
As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.
-