- 26 Nov, 2015 3 commits
-
-
Dave Hylands authored
The STMCube examples define both USE_USB_HS and USE_USB_HS_IN_FS when they use the HS in FS mode. The STM32F401 doesn't have a USB_HS at all, so the USB_OTG_HS instance doesn't even exist.
-
Paul Sokolovsky authored
-
Dave Hylands authored
-
- 25 Nov, 2015 5 commits
-
-
Tobias Badertscher authored
-
Paul Sokolovsky authored
Define MICROPY_NO_ALLOCA=1 and memory will be allocated from heap instead and freed by garbage collection.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Dave Hylands authored
The UARTs have no FIFOs, so if interrupts are disabled for more than a character time (10 usec at 1 Mbit/sec) then characters get dropped. The overhead for handling a UART ISR is about 0.5 usec, so even at baud rates of 1 Mbit/sec this only corresponds to about 5% of the CPU. Lower baud rates will have less of an impact.
-
- 24 Nov, 2015 16 commits
-
-
Paul Sokolovsky authored
Based on vendor API documentation, untested on real hardware.
-
Paul Sokolovsky authored
Unconditionally wait for MicroPython banner. On overloaded systems, when using emulators, etc. initial executable startup may take more than 20ms.
-
Damien George authored
-
Damien George authored
uwTick can only change in the SysTick IRQ so this IRQ function does not need to take special care with this variable. It's important to make this IRQ function as efficient as possible.
-
Damien George authored
Using SysTick to do the counting and dispatch of the flash storage idle handler is more efficient than requiring a dedicated hardware timer. No new counter is needed, just the existing uwTick variable. The processing is not actually done in the SysTick IRQ, it is deferred to the flash IRQ (which runs at lower priority).
-
Damien George authored
-
Damien George authored
-
Damien George authored
This can be generalised if/when more processing is needed by SysTick. Thanks to @chuckbook for the idea.
-
Damien George authored
-
Damien George authored
-
stijn authored
- add mp_int_t/mp_uint_t typedefs in mpconfigport.h - fix integer suffixes/formatting in mpconfig.h and mpz.h - use MICROPY_NLR_SETJMP=1 in Makefile since the current nlrx64.S implementation causes segfaults in gc_free() - update README
-
stijn authored
The BSD stuff is a copy from the unix makefile but at least there it makes some sense, a windows makefile on BSD doesn't. The -lmman flag is probably for mmap functions but there is no other build support for it on windows so just that flag won't cut it anyway.
-
stijn authored
-
Dave Hylands authored
This started out using IgorLektorovEpam work in PR #1389 and reworked it.
-
Dave Hylands authored
Turning on each DMA block increases the current consumption by about 8 mA. This code adds an idle timer for each DMA block and turns off the clocks when no streams are in use for 128 msec. Having a small timeout allows for improved performance when back-to-back transfers are being performed. The 128 msec is basically a guess.
-
Dave Hylands authored
- added some comments to explain the priority/sub-priority. - adds an entry for SDIO (to be used in a later patch) - increases DMA priority above USB so that DMA can be used for sdcard I/O when using USB Mass Storage.
-
- 23 Nov, 2015 9 commits
-
-
Damien George authored
-
T S authored
If RTC is already running at boot then it's left alone. Otherwise, RTC is started at boot but startup function returns straight away. RTC startup is then finished the first time it is used. Fallback to LSI if LSE fails to start in a certain time. Also included: MICROPY_HW_CLK_LAST_FREQ hold pyb.freq() parameters in RTC backup reg MICROPY_HW_RTC_USE_US option to present datetime sub-seconds in microseconds MICROPY_HW_RTC_USE_CALOUT option to enable RTC calibration output CLK_LAST_FREQ and RTC_USE_CALOUT are enabled for PYBv1.0.
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
This patch checks that there is only one *, and that ** is last in the arg list.
-
Damien George authored
Fixes issue #1623.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Loading .mpy files will now check to make sure that the target VM can support the bytecode.
-
- 22 Nov, 2015 7 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Tested by comparability to small int/casting to bool.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
And thus can be successfully used in comparisons, etc.
-
Paul Sokolovsky authored
%f prints true integer digit, so its calculation should happen before any exponential scaling.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-