Damien George
f555d5deca
stmhal: Set SysTick priority to highest level.
11 years ago
Damien George
4ef1dbcbf6
stmhal: Get SysTick and HSE working.
11 years ago
Damien George
8854e1fa05
py: Add expm1 to math module.
11 years ago
mux
8782676514
Fix realloc
11 years ago
Damien George
8cc50d348d
Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
11 years ago
Damien George
b068b21742
Add more tests for multi-precision integers.
11 years ago
Damien George
9d68e9ccdd
py: Implement integer overflow checking for * and << ops.
If operation will overflow, a multi-precision integer is created.
11 years ago
Damien George
bb4a43f35c
py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll.
A couple of bugs in mpn_shl, and overflow bug in mpz_set_from_int.
11 years ago
Dave Hylands
dd38d90724
Initial checkin with STM HAL
This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.
11 years ago
Damien George
8bfec2b538
Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h.
MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL
is set to a non-zero value.
11 years ago
Damien George
0a8458c353
Merge branch 'format-float' of github.com:dhylands/micropython into dhylands-format-float
11 years ago
Damien George
0527f0c338
Merge pull request #335 from dhylands/fix-makeqstrdata
Fix makeqstrdata.py to work in Python 2.7
11 years ago
Dave Hylands
ca5a241e48
Add proper floating point printing support.
11 years ago
Dave Hylands
0308f964a0
Fix makeqstrdata.py to work in Python 2.7
11 years ago
Damien George
5322ec0962
stm: Add DMA support to Audio object.
11 years ago
Damien George
2da9830b92
py: Make objstr support buffer protocol (read only).
11 years ago
Damien George
0ec6bd47cb
py: Fix printing of type name.
11 years ago
Damien George
5e34909a12
unix: Make usage info reflect actual usage of -X option.
11 years ago
Damien George
c3d35c6ac7
stm: Put pyb module in ROM.
11 years ago
Damien George
01d50d0d58
stm: Wrap some functions in MICROPY_ENABLE_FLOAT.
11 years ago
Damien George
0c36da0b59
Implement ROMable modules. Add math module.
mp_module_obj_t can now be put in ROM.
Configuration of float type is now similar to longint: can now choose
none, float or double as the implementation.
math module has basic math functions. For STM port, these are not yet
implemented (they are just stub functions).
11 years ago
Damien George
8fd7d7e102
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
360b25ab0f
stm: Add udelay (delay in microseconds).
11 years ago
Damien George
cd000645f8
stm: Improve DAC (audio) bindings.
11 years ago
Damien George
5260810d70
py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT.
11 years ago
Damien George
fdf0da5436
makeqstrdata: print error to stderr.
11 years ago
Damien George
6fc765c928
py: Revert to old gc_realloc for now.
11 years ago
Damien George
f08ddef676
py: Add comments to new gc_realloc, it has some bugs.
11 years ago
Damien George
73d579354b
py: Small cosmetic changes to gc_realloc.
11 years ago
Damien George
7bf724da21
Merge pull request #334 from iabdalkader/realloc
Fix gc_realloc to expand in place
11 years ago
mux
fbaa1479f4
Fix gc_realloc to expand in place
* Issue #322
11 years ago
Damien George
635927bbce
unix: Add to usage print-out telling about -X option.
11 years ago
Damien George
a11906d03b
Merge pull request #333 from pfalcon/heapsize-cmdline
unix: Allow to set heap size using "-X heapsize=N" option.
11 years ago
Paul Sokolovsky
a374d9c860
unix: Allow to set heap size using "-X heapsize=N" option.
11 years ago
Damien George
25f5a30e73
py: Fix overriding of default arguments.
Addresses issue #327 .
11 years ago
Damien George
f41fdd05b0
py: Unify syntax error handling in compiler; check defualt arg syntax.
Checks for non-default args following default args, and errors out.
Addresses issue #328 .
11 years ago
Damien George
715101580b
py: Factor and improve issubclass.
11 years ago
Damien George
2ab1797d1d
Merge pull request #332 from pfalcon/namedtuple
Implement collections.namedtuple
11 years ago
Paul Sokolovsky
e74f52b76c
namedtuple: Inherit unary/binary ops from tuple base class.
11 years ago
Paul Sokolovsky
d86d22e1e7
Add mp_obj_is_subclass_fast() - intended for fast argument checking.
I.e. as replacement of MP_OBJ_IS_TYPE(), which takes into account subclassing.
11 years ago
Paul Sokolovsky
d08fd68664
Add basic collections.namedtuple implementation.
11 years ago
Paul Sokolovsky
61f9b1c621
unix: Add GC support for ARM architecture.
11 years ago
Damien George
86227ce7b0
Merge pull request #331 from iabdalkader/master
Implement machine_sqrt using VSQRT
11 years ago
mux
6882dbd9f8
Implement machine_sqrt using VSQRT
11 years ago
Damien George
75a35c496d
Merge pull request #330 from pfalcon/cortex-a
Support building "unix" port for ARM
11 years ago
Damien George
06201ff3d6
py: Implement bit-shift and not operations for mpz.
Implement not, shl and shr in mpz library. Add function to create mpzs
on the stack, used for memory efficiency when rhs is a small int.
Factor out code to parse base-prefix of number into a dedicated function.
11 years ago
Paul Sokolovsky
9c7e984a05
nlrthumb.S: Comment out ".cpu cortex-m4", it causes problems on Cortex-A.
11 years ago
Paul Sokolovsky
82a165d9be
nlr.h: Do proper arch selection, using the same tests as nlr*.S .
11 years ago
Paul Sokolovsky
793838a919
MICROPY_USE_READLINE: Selects link lib, so should be defined in mpconfigport.mk
This change allows to build unix version without libreadline installed.
11 years ago
Damien George
7ae69c6dc4
Merge pull request #329 from dhylands/exti-cleanup
Remove param from python API of ext_register
11 years ago