=
5008972fef
py/inlinethumb: Support for core floating point instructions.
Adds support for the following Thumb2 VFP instructions, via the option
MICROPY_EMIT_INLINE_THUMB_FLOAT:
vcmp
vsqrt
vneg
vcvt_f32_to_s32
vcvt_s32_to_f32
vmrs
vmov
vldr
vstr
vadd
vsub
vmul
vdiv
10 years ago
Damien George
d8cbbcaa9d
py: Fix builtin ord so that it can handle bytes values >= 0x80.
Addresses issue #1188 .
10 years ago
Henrik
e3cd154317
stmhal: Add support for sending and receiving CAN RTR messages.
10 years ago
Damien George
7d5e34287c
stmhal: Allow sending CAN messages with timeout=0.
Thanks to Henrik Sölver for this patch.
10 years ago
Damien George
90aa7595b4
tests: Convert line endings in fun_name.py from CRLF to LF.
10 years ago
Damien George
044c473de2
py: Add %q format support to mp_[v]printf, and use it.
10 years ago
Paul Sokolovsky
56beb01724
objarray: Support assignment of bytes to bytearray slice.
10 years ago
Paul Sokolovsky
8b7faa31e1
objstr: split(None): Fix whitespace properly.
10 years ago
Damien George
7a6dbaa89b
stmhal: Make LED object print LED(x) for consistency with constructor.
10 years ago
Damien George
9988618e0e
py: Implement full func arg passing for native emitter.
This patch gets full function argument passing working with native
emitter. Includes named args, keyword args, default args, var args
and var keyword args. Fully Python compliant.
It reuses the bytecode mp_setup_code_state function to do all the hard
work. This function is slightly adjusted to accommodate native calls,
and the native emitter is forced a bit to emit similar prelude and
code-info as bytecode.
10 years ago
Damien George
c9aa1883ed
py: Simplify bytecode prelude when encoding closed over variables.
10 years ago
Damien George
78772ada0d
py: Implement calling functions with *args in native emitter.
10 years ago
Damien George
e5c4362a98
tests: Add some more tests to improve code coverage of corner cases.
10 years ago
Damien George
97abe22963
tests: Add tests to exercise lexer; and some more complex number tests.
10 years ago
Damien George
9dd3640464
tests: Add missing tests for builtins, and many other things.
10 years ago
Paul Sokolovsky
620058cc57
tests: Add test for str.splitlines().
10 years ago
Damien George
82f37bf0d1
tests: Add specific test for closures in native emitter.
10 years ago
Damien George
4cd9ced8dc
py: Implement closures in native code generator.
Currently supports only x64 and Thumb2 archs.
10 years ago
Paul Sokolovsky
ad038ca101
tests/class_descriptor.py: Fix line-endings (were CRLF).
10 years ago
stijn
28fa84b445
py: Add optional support for descriptors' __get__ and __set__ methods.
Disabled by default. Enabled on unix and windows ports.
10 years ago
Damien George
23d7fd526d
tests: Skip some new tests when testing native emitter.
10 years ago
Damien George
214179b430
tests: Add tests for SyntaxError, TypeError, and other missing things.
This is intended to improve coverage of the test suite.
10 years ago
Damien George
db80b65402
tests: Make pyb/timer test check callback timing properly.
10 years ago
stijn
3cc17c69ff
py: Allow retrieving a function's __name__.
Disabled by default. Enabled on unix and stmhal ports.
10 years ago
Damien George
d478fc75b3
tests: Adjust expected output, since Travis can't do git describe.
10 years ago
Paul Sokolovsky
d48035b06b
tests: Add basic test for OrderedDict.
Mostly to have coverage of newly added code in map.c.
10 years ago
Damien George
1004535237
tests: Make cmdline tests more stable by using regex for matching.
10 years ago
Damien George
f256cfef4f
tests: Add some more tests for complex numbers and ure module.
10 years ago
Damien George
6837d46c1d
py: Fix builtin abs so it works for bools and bignum.
10 years ago
Damien George
26a9975fba
tests: Add some more tests for bytes, bignum, string and ujson.
10 years ago
Damien George
0683c1ceef
tests: Don't try to verify amount of memory used in cmd_showbc test.
10 years ago
Damien George
703c009681
tests: Add cmdline test to test showbc code.
10 years ago
Damien George
ac4f6b804f
stmhal: Fix adc.read_timed so buffer store respects element size.
Addresses issue #1154 .
10 years ago
Damien George
143c34109c
tests: Add ability to test uPy cmdline executable.
This allows to test options passed to cmdline executable, as well as the
behaviour of the REPL.
10 years ago
Damien George
af43565322
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
10 years ago
Damien George
c832bde05f
tests: Add zlib test for decompressing uncompressed data.
10 years ago
Peter D. Gray
b2a237d337
py: Add support for start/stop/step attributes of builtin range object.
10 years ago
Damien George
55278dcc76
tests: Add test for modure when regex has errors.
10 years ago
Damien George
6cb6947b99
extmod/ure: Correctly return None when a group has no match.
See issue #1122 .
10 years ago
Damien George
72ddcfd9ff
tests: Skip basics/boundmeth1.py for native emitter.
10 years ago
Damien George
086a7616dd
tests: Add tests for boundmeth; and bignum cmp, unary, float, error.
10 years ago
stijn
25f1264699
tests: Skip special math fun tests when math module exists but not funs.
10 years ago
Damien George
f2a889564b
tests: Add basics test for gc module.
10 years ago
Damien George
fe3da09fa0
tests: Use range as iterable instead of list comprehension.
So that navite emitter passes (comprehensions use yield which is not yet
supported by native emitter).
10 years ago
Damien George
24ffb8e876
tests: Add tests for builtins: all, any, sum, abs.
10 years ago
Damien George
96e37d3bb8
tests: Add tests for inline assembler beq_n and beq_w ops.
10 years ago
Damien George
2af921fb51
tests: Add tests for op special meths, ubinascii, complex.
10 years ago
Damien George
47538cc880
tests: Add test for micropython const feature when it has a SyntaxError.
10 years ago
Paul Sokolovsky
992284be39
tests: Add test for array slice assignment.
10 years ago
Damien George
b67253e96f
tests: Update pyb/uart.py test since baudrate of 1200 is too low.
10 years ago