Commit Graph

1024 Commits

Author SHA1 Message Date
Damien George df02aaee4f Merge pull request #340 from iabdalkader/realloc
Fix realloc
2014-03-12 22:42:33 +00:00
Damien George 849a0dda86 stm: Add some floating-point math functions.
These have been taken from the musl library.  It's a bit of a hack for
now, just to get math functions working.
2014-03-12 22:33:22 +00:00
Damien George f555d5deca stmhal: Set SysTick priority to highest level. 2014-03-12 22:08:19 +00:00
Damien George 4ef1dbcbf6 stmhal: Get SysTick and HSE working. 2014-03-12 21:59:33 +00:00
Damien George 8854e1fa05 py: Add expm1 to math module. 2014-03-12 21:31:41 +00:00
mux 8782676514 Fix realloc 2014-03-12 21:00:23 +02:00
Damien George 8cc50d348d Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
2014-03-12 15:43:42 +00:00
Damien George b068b21742 Add more tests for multi-precision integers. 2014-03-12 15:39:51 +00:00
Damien George 9d68e9ccdd py: Implement integer overflow checking for * and << ops.
If operation will overflow, a multi-precision integer is created.
2014-03-12 15:38:15 +00:00
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.
2014-03-12 15:36:06 +00:00
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.
2014-03-11 23:55:41 -07:00
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.
2014-03-10 13:27:02 +00:00
Damien George 0a8458c353 Merge branch 'format-float' of github.com:dhylands/micropython into dhylands-format-float 2014-03-10 13:19:55 +00:00
Damien George 0527f0c338 Merge pull request #335 from dhylands/fix-makeqstrdata
Fix makeqstrdata.py to work in Python 2.7
2014-03-10 13:16:54 +00:00
Dave Hylands ca5a241e48 Add proper floating point printing support. 2014-03-10 00:10:01 -07:00
Dave Hylands 0308f964a0 Fix makeqstrdata.py to work in Python 2.7 2014-03-10 00:07:35 -07:00
Damien George 5322ec0962 stm: Add DMA support to Audio object. 2014-03-09 19:59:17 +00:00
Damien George 2da9830b92 py: Make objstr support buffer protocol (read only). 2014-03-09 19:58:18 +00:00
Damien George 0ec6bd47cb py: Fix printing of type name. 2014-03-09 16:29:36 +00:00
Damien George 5e34909a12 unix: Make usage info reflect actual usage of -X option. 2014-03-08 19:04:47 +00:00
Damien George c3d35c6ac7 stm: Put pyb module in ROM. 2014-03-08 16:40:08 +00:00
Damien George 01d50d0d58 stm: Wrap some functions in MICROPY_ENABLE_FLOAT. 2014-03-08 15:28:51 +00:00
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).
2014-03-08 15:24:39 +00:00
Damien George 8fd7d7e102 Merge branch 'master' of github.com:micropython/micropython 2014-03-08 15:20:36 +00:00
Damien George 360b25ab0f stm: Add udelay (delay in microseconds). 2014-03-08 15:17:10 +00:00