- 06 May, 2017 1 commit
-
-
Damien George authored
-
- 02 Mar, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
The renames are: HAL_Delay -> mp_hal_delay_ms sys_tick_udelay -> mp_hal_delay_us sys_tick_get_microseconds -> mp_hal_ticks_us And mp_hal_ticks_ms is added to provide the full set of timing functions. Also, a separate HAL_Delay function is added which differs slightly from mp_hal_delay_ms and is intended for use only by the ST HAL functions.
-
- 06 Feb, 2017 1 commit
-
-
Damien George authored
This new function controls what happens on a hard-fault: - debugging disabled: board will do a reset - debugging enabled: board will print registers and stack and flash LEDs The default is disabled, ie to do a reset. This is different to previous behaviour which flashed the LEDs and waited indefinitely.
-
- 27 Jan, 2017 1 commit
-
-
Damien George authored
This patch makes the following configuration changes: - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure - MICROPY_VFS is enabled, giving new VFS sub-system - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b User facing API should be almost unchanged. Most notable changes are removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't allow unmounting by passing None as the device.
-
- 21 Oct, 2016 1 commit
-
-
Damien George authored
In order to have more fine-grained control over how builtin functions are constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific, with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now match the MP_DEFINE_CONST_FUN_OBJ macros.
-
- 14 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
This includes making sure that utime_mphal's sleep_ms() and sleep_us() don't sleep on negative arguments.
-
- 21 Sep, 2016 1 commit
-
-
Damien George authored
One can instead lookup __name__ in the modules dict to get the value.
-
- 10 Feb, 2016 1 commit
-
-
Damien George authored
You can now create (singleton) objects representing the flash and SD card, using: flash = pyb.Flash() sdcard = pyb.SDCard() These objects provide the block protocol.
-
- 09 Feb, 2016 1 commit
-
-
Paul Sokolovsky authored
Per the previously discussed plan. mount() still stays backward-compatible, and new mkfs() is rought and takes more args than needed. But is a step in a forward direction.
-
- 22 Dec, 2015 1 commit
-
-
Damien George authored
Adds a lot of code, makes IRQs a bit less efficient, but is very useful for debugging. Usage: pyb.irq_stats() returns a memory view that can be read and written, eg: list(pyb.irq_stats()) pyb.irq_stats()[0] pyb.irq_stats()[0] = 0 The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be modified to provide further IRQ statistics if desired.
-
- 25 Nov, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 09 Nov, 2015 1 commit
-
-
Damien George authored
-
- 19 Oct, 2015 3 commits
-
-
Damien George authored
pyb.repl_uart still exists but points to os.dupterm.
-
Damien George authored
pyb module still has pyb.delay and pyb.udelay, but these now point to time.sleep_ms and time.sleep_us respectively.
-
Dave Hylands authored
-
- 07 Aug, 2015 1 commit
-
-
Dave Hylands authored
-
- 05 Aug, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 29 Jul, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 22 Mar, 2015 2 commits
-
-
Damien George authored
-
Damien George authored
This can get PYBv1.0 stop current down to around 290uA.
-
- 04 Mar, 2015 2 commits
-
-
Damien George authored
-
Damien George authored
This helps make files reusable across other ports.
-
- 13 Feb, 2015 2 commits
-
-
Damien George authored
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
-
Damien George authored
Different HID modes can be configured in Python. You can either use predefined mouse or keyboard, or write your own report descriptor.
-
- 21 Jan, 2015 1 commit
-
-
Dave Hylands authored
-
- 07 Jan, 2015 1 commit
-
-
Damien George authored
A GC in stmhal port now only scans true root pointers, not entire BSS. This reduces base GC time from 1700ms to 900ms.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 27 Dec, 2014 1 commit
-
-
Damien George authored
-
- 08 Dec, 2014 1 commit
-
-
Damien George authored
This is useful if you need precise control over the speed of peripherals (eg SPI clock).
-
- 30 Nov, 2014 1 commit
-
-
Damien George authored
pyb.delay and pyb.udelay now use systick if IRQs are enabled, otherwise they use a busy loop. Thus they work correctly when IRQs are disabled. The busy loop is computed from the current CPU frequency, so works no matter the CPU frequency.
-
- 29 Nov, 2014 1 commit
-
-
Damien George authored
This is just a clean-up of the code. Generated code is exactly the same.
-
- 02 Nov, 2014 1 commit
-
-
Damien George authored
Also restrict higher frequencies to have a VCO_OUT frequency below 432MHz, as specified in the datasheet. Docs improved to list allowed frequencies, and explain about USB stability.
-
- 22 Oct, 2014 1 commit
-
-
Dave Hylands authored
-
- 09 Oct, 2014 1 commit
-
-
Damien George authored
-
- 05 Oct, 2014 2 commits
-
-
Damien George authored
Found these by compiling stmhal with mp_uint_t of type uint32_t instead of unsigned int. This actually makes a difference to the code, but just a curiosity.
-
Damien George authored
-
- 04 Oct, 2014 1 commit
-
-
Damien George authored
Eg pyb.freq(120000000) sets the CPU to 120MHz. The frequency can be set at any point in the code, and can be changed as many times as you like. Note that any active timers will need to be reconfigured after a freq change. Valid range is 24MHz to 168MHz (but not all freqs are supported). The code maintains a 48MHz clock for the USB at all times and it's possible to change the frequency at a USB REPL and keep the REPL alive (well, most of the time it stays, sometimes it resets the USB for some reason). Note that USB does not work with pyb.freq of 24MHz.
-