- 19 Oct, 2015 2 commits
-
-
Dave Hylands authored
-
Paul Sokolovsky authored
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
-
- 17 Oct, 2015 1 commit
-
-
Dave Hylands authored
-
- 13 Oct, 2015 1 commit
-
-
Damien George authored
This patch allows to configure the DAC resolution in the constructor and in the init function, eg: dac = DAC(1, bits=12). The default resolution is 8 bits for backwards compatibility. The bits sets the maximum value accepted by write and write_timed methods, being 2**bits - 1. When using write_timed with 12-bit resolution, the input buffer is treated as an unsigned half-word array, typecode 'H'. See PR #1130 for discussion.
-
- 11 Oct, 2015 4 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history.
-
Paul Sokolovsky authored
-
- 08 Oct, 2015 2 commits
-
-
Dave Hylands authored
This fix adds PIDs 9801 and 9802 to the pybcdc.inf file. When in CDC only mode, it presents itself as a Communcations device rather than as a composite device. Presenting as a composite device with only the CDC interface seems to confuse windows. To test and make sure that the correct pybcdc.inf was being used, I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html to uninstall any old pyboard drivers (Use Control-F and search for pyboard). I found running USBDeview as administrator worked best. Installing the driver in CDC+MSC mode first is recommended (since the pybcdc.inf file in on the internal flash drive). Then when you switch modes everything seems to work properly. I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py to easily switch the pyboard between the various USB modes for testing.
-
Damien George authored
Thanks to Peter Hinch. Addresses issue #1488.
-
- 06 Oct, 2015 1 commit
-
-
Damien George authored
Thanks to Peter Hinch. See issue #1490.
-
- 01 Oct, 2015 1 commit
-
-
Damien George authored
With this patch parse nodes are allocated sequentially in chunks. This reduces fragmentation of the heap and prevents waste at the end of individually allocated parse nodes. Saves roughly 20% of RAM during parse stage.
-
- 15 Sep, 2015 2 commits
-
-
Tom Soulanille authored
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
-
Damien George authored
There is an issue sending 1 byte on the SPI bus using DMA, but it only occurs when the transmit is done for the first time after initialising the SPI and DMA peripherals. All other cases (sending 2 or more bytes, doing send_recv, doing recv first) work okay. We sidestep this issue by using polling (not DMA) for all 1 byte transfers. This is fine because a 1 byte transfer can't be interrupted and doesn't need the benefits of DMA (and using polling for this case is more efficient). Resolves #1456.
-
- 12 Sep, 2015 1 commit
-
-
Tom Soulanille authored
Use this to set the global optimisation value when executing the main script (and all scripts it imports).
-
- 03 Sep, 2015 1 commit
-
-
Tony Abboud authored
Fetch the current usb mode and return a string representation when pyb.usb_mode() is called with no args. The possible string values are interned as qstr's. None will be returned if an incorrect mode is set.
-
- 29 Aug, 2015 1 commit
-
-
Bob Clough authored
-
- 17 Aug, 2015 1 commit
-
-
tobbad authored
-
- 15 Aug, 2015 1 commit
-
-
Dave Hylands authored
-
- 13 Aug, 2015 1 commit
-
-
blmorris authored
-
- 07 Aug, 2015 4 commits
-
-
Dave Hylands authored
This needs to land afte #1407 lands, since #1407 is where the CMSIS_MCU was defined.
-
Dave Hylands authored
-
Dave Hylands authored
This causes unnecessary constants to no longer be generated. Some constants (like UART_BRR) are different between the F4 and F7
-
Damien George authored
-
- 05 Aug, 2015 3 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
Dave Hylands authored
-
- 02 Aug, 2015 12 commits
-
-
Damien George authored
This file should be kept up to date with list of hal commits.
-
Dave Hylands authored
-
Dave Hylands authored
-
Dave Hylands authored
-
Dave Hylands authored
The DFU bootloader on the ST32F7 chip changes the clocksource for various possible boot sources (UART1, UART3, I2C1-3). This commit resets those clock sources back to their cold reset values.
-
Dave Hylands authored
USB serial is now working for F7. Internal file storage is now working for F7. The flash is laid out a bit differently to the F4 - 4 x 32K, 1 x 128K with the rest 256K, so the internal storage is 96K. Added more pind definitions for STM32F7DISC board. Made USART1 be the default HWUART repl. The STLINK usb connector also looks like a USB serial port which is attached to USART1 on the STM32F7DISC.
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
Damien George authored
Capability is #if'd off by default. Thanks to Dave Hylands for the patch.
-
Damien George authored
Extracted GPIO clock enable logic into mp_hal_gpio_clock_enable and called from anyplace which might need to use GPIO functions on ports other than A-D. Thanks to Dave Hylands for the patch.
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
- 29 Jul, 2015 1 commit
-
-
Dave Hylands authored
-