Damien George
2459162599
lib/utils/interrupt_char: Invalidate interrupt char at start up.
...
Otherwise mp_interrupt_char will have a value of zero on start up (because
it's in the BSS) and a KeyboardInterrupt may be raised during start up.
For example this can occur if there is a UART attached to the REPL which
sends spurious null bytes when the device turns on.
2019-05-01 12:41:07 +10:00
Andrew Leech
859596ce25
lib/utils: Make pyexec_file_if_exists run frozen scripts if they exist.
...
So that boot.py and/or main.py can be frozen (either as STR or MPY) in the
same way that other scripts are frozen. Frozen scripts have preference to
scripts in the VFS.
2019-05-01 11:27:51 +10:00
Damien George
06a532c227
lib/utils/pyexec: Add pyexec_file_if_exists() helper function.
...
It will only execute the script if it can be stat'd and is a file.
2019-04-26 15:21:09 +10:00
Damien George
ca5f8975fa
lib/stm32lib: Update library to fix F7 MMC capacity calculation.
2019-04-01 17:04:43 +11:00
Damien George
350dbb89e6
lib/oofatfs: Update oofatfs library to fix issue with logic not.
...
From https://github.com/micropython/oofatfs , branch work-R0.13c,
commit 3b4ee5a646af2769b3dddfe17d5d866233c1e45b.
2019-03-07 15:03:09 +11:00
Damien George
7eadcaa8c6
lib/oofatfs: Update ffconf.h config for new oofatfs version.
2019-03-05 15:56:39 +11:00
Damien George
1a24bac6cb
lib/oofatfs: Update oofatfs library to R0.13c working branch.
...
From https://github.com/micropython/oofatfs , branch work-R0.13c,
commit cb05c9486d3b48ffd6bd7542d8dbbab4b1caf790.
Large code pages (932, 936, 949, 950) have been removed from ffunicode.c
because they were not included in previous versions here.
2019-03-05 15:56:39 +11:00
Damien George
b6791ffbbe
lib/netutils: Add function to print tracing info for Ethernet frames.
2019-02-26 23:32:19 +11:00
Mike Causer
812969d615
all: Change PYB message prefix to MPY.
...
Replaces "PYB: soft reboot" with "MPY: soft reboot", etc.
Having a consistent prefix across ports reduces the difference between
ports, which is a general goal. And this change won't break pyboard.py
because that tool only looks for "soft reboot".
2019-02-12 15:18:33 +11:00
Damien George
8d1275ec0f
lib/utils/gchelper: Add gchelper.h header file for assembler functions.
2019-02-12 14:37:41 +11:00
Damien George
f608f54ab0
lib/utils/gchelper_m3: Add gc_helper_get_sp() function.
2019-02-12 14:37:01 +11:00
Damien George
90e1303b2d
lib/utils/gchelper_m3: Add license header and clean up code.
...
This file generates the same code with the cortex-m3 and cortex-m4
assembler directive, so use cortex-m3 to support more CPUs.
2019-02-12 14:16:24 +11:00
Damien George
e6d97e8a0b
stm32: Move gchelper assembler code to lib/utils for use by other ports.
2019-02-12 14:11:21 +11:00
Damien George
7bbde67cb2
lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and above.
...
See issue #4457 .
2019-02-06 01:12:51 +11:00
Damien George
8faf17b93c
lib/nrfx: Upgrade to nrfx v1.3.1.
2019-01-31 17:38:13 +11:00
Damien George
1fa8f977f5
lib/utils/pyexec: Implement paste mode with event driven REPL.
2019-01-28 23:00:19 +11:00
Damien George
f874e8184c
lib/stm32lib: Update library to get F413 BOR defs and fix gcc 8 warning.
2019-01-24 11:33:59 +11:00
Tobias Badertscher
06236bf28e
lib/utils: Add generic MicroPython IRQ helper functions.
...
Initial implementation of this is taken from the cc3200 port.
2018-12-29 17:08:55 +11:00
Damien George
f5d46a88aa
lib/utils/pyexec: Forcefully unlock the heap if locked and REPL active.
...
Otherwise there is really nothing that can be done, it can't be unlocked by
the user because there is no way to allocate memory to execute the unlock.
See issue #4205 and #4209 .
2018-10-13 16:21:08 +11:00
Damien George
8960a28238
lib/libm/math: Add implementation of __signbitf, if needed by a port.
2018-09-27 15:21:04 +10:00
Damien George
4c08932e73
lib/libm/math: Fix int type in float union, uint64_t should be uint32_t.
...
A float is 32-bits wide.
2018-09-27 15:19:53 +10:00
Damien George
5f92756c2c
lib/stm32lib: Update library to fix issue with filling USB TX FIFO.
2018-09-26 12:00:25 +10:00
Andrew Leech
57a73973ad
lib/libm_dbl: Add implementation of copysign() for DEBUG builds.
...
This provides a double variant of the float copysignf from libm/math.c
which is required for DEBUG=1 builds when MICROPY_FLOAT_IMPL=double
2018-09-20 16:46:19 +10:00
Damien George
b9a133e5ad
lib/libm/wf_tgamma: Fix tgammaf handling of -inf, should return nan.
2018-09-04 17:00:35 +10:00
Damien George
afc7ddca31
lib/libm/math: Make tanhf more efficient and handle large numbers.
...
Prior to this patch tanhf(large number) would return nan due to inf/inf.
2018-09-04 17:00:30 +10:00