- 28 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Dave Hylands authored
When using newer glibc's the compiler automatically sets _FORTIFY_SOURCE when building with -O1 and this causes a special inlined version of printf to be declared which then bypasses our version of printf.
-
Damien George authored
MP_BC_NOT was removed and the "not" operation made a proper unary operator, and the opcode format table needs to be updated to reflect this change (but actually the change is only cosmetic).
-
- 27 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Supported return types are: object, bool, int, uint. For example: @micropython.asm_thumb def foo(r0, r1) -> uint: add(r0, r0, r1)
-
Carmine Noviello authored
Includes full version of pins.csv file with correct mapping of the Nucleo STM32F401RE chip (LQFP64 package).
-
- 26 Jan, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Functions added are: - randint - randrange - choice - random - uniform They are enabled with configuration variable MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default. It is enabled for unix coverage build and stmhal.
-
- 24 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
SHA1 is used in a number of protocols and algorithm originated 5 years ago or so, in other words, it's in "wide use", and only newer protocols use SHA2. The implementation depends on axTLS enabled. TODO: Make separate config option specifically for sha1().
-
Damien George authored
micropython.stack_use() returns an integer being the number of bytes used on the stack. micropython.heap_lock() and heap_unlock() can be used to prevent the memory manager from allocating anything on the heap. Calls to these are allowed to be nested.
-
- 23 Jan, 2016 2 commits
-
-
Dave Hylands authored
This allows FROZEN_DIR=some-directory to be specified on the make command line, which will then add all of the files contained within the indicated frozen directory as frozen files in the image. There is no change in flash/ram usage if not using the feature. This is especially useful on smaller MCUs (like the 401) which only has 64K flash file system.
-
Paul Sokolovsky authored
-
- 21 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
By reserving enough space for peer address.
-
- 19 Jan, 2016 2 commits
-
-
Dave Hylands authored
Implement enough of statvfs to determine the amount of free space on a volume.
-
Dave Hylands authored
-
- 17 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
This allows to cut number of packages installed from 3rd-party package repos, and otherwise cut number of overrides and hacks.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang
-
- 16 Jan, 2016 1 commit
-
-
Damien George authored
-
- 15 Jan, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
This will help make sure new commits work with OBJ_REPR_D.
-
Damien George authored
Build using: make nanbox
-
Damien George authored
-
- 14 Jan, 2016 2 commits
-
-
chrysn authored
this allows python code to use property(lambda:..., doc=...) idiom. named versions for the fget, fset and fdel arguments are left out in the interest of saving space; they are rarely used and easy to enable when actually needed. a test case is included.
-
stijn authored
This is essentially a duplicate of obj_dict.py
-
- 13 Jan, 2016 3 commits
-
-
Peter Hinch authored
-
Damien George authored
Makes code easier to read and more maintainable.
-
Damien George authored
-
- 12 Jan, 2016 1 commit
-
-
Antonin ENFRUN authored
-
- 11 Jan, 2016 5 commits
-
-
Damien George authored
-
Dave Hylands authored
-
Damien George authored
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
-
Damien George authored
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
-
Damien George authored
This patch changes the type signature of .make_new and .call object method slots to use size_t for n_args and n_kw (was mp_uint_t. Makes code more efficient when mp_uint_t is larger than a machine word. Doesn't affect ports when size_t and mp_uint_t have the same size.
-
- 10 Jan, 2016 1 commit
-
-
Dave Hylands authored
-