- 17 Dec, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
The GC should search for pointers within the heap. This patch makes a difference when an object is larger than a pointer (eg 64-bit NaN boxing).
-
Damien George authored
-
- 16 Dec, 2015 7 commits
-
-
danicampora authored
-
Damien George authored
-
pohmelie authored
-
Damien George authored
-
Damien George authored
Ports will need to #define _DIRENT_HAVE_D_INO (0) to disable d_ino use.
-
Paul Sokolovsky authored
Similar to recently added feature in unix port: if event triggers for an objects, its polling flags are automatically reset, so it won't be polled until they are set again explicitly.
-
Tobias Badertscher authored
This includes SPI4, SPI5 and SPI6.
-
- 15 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Dec, 2015 3 commits
-
-
stijn authored
-
Paul Sokolovsky authored
ilistdir() returns iterator which yields triples of (name, type, ino) where ino is inode number for entry's data, type of entry (file/dir/etc.), and name of file/dir. listdir() can be easily implemented in terms of this iterator (which is otherwise more efficient in terms of memory use and may save expensive call to stat() for each returned entry). CPython has os.scandir() which also returns an iterator, but it yields more complex objects of DirEntry type. scandir() can also be easily implemented in terms of ilistdir().
-
Paul Sokolovsky authored
This allows to have single itertaor type for various internal iterator types (save rodata space by not having repeating almost-empty type structures). It works by looking "iternext" method stored in particular object instance (should be first object field after "base").
-
- 13 Dec, 2015 2 commits
-
-
Paul Sokolovsky authored
Following "don't rely on FFI for basic functionality" approach.
-
Paul Sokolovsky authored
-
- 12 Dec, 2015 6 commits
-
-
Dave Hylands authored
This leaves behind the common functionality in extmod/machine_mem.c which can be used by all ports.
-
Paul Sokolovsky authored
Was reported to break MacOSX build.
-
Damien George authored
This makes it much easier to understand which arg is which, less error prone, and simpler to add a new arg.
-
Michael Buesch authored
These functions will raise 'ValueError: math domain error' on invalid input.
-
Damien George authored
Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx to 0 or 1. Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI and NSS. This makes it the same as how I2C is configured.
-
Damien George authored
Addresses issue #1709.
-
- 11 Dec, 2015 4 commits
-
-
Paul Sokolovsky authored
Updated for _os -> uos builtin module rename.
-
Paul Sokolovsky authored
-
stijn authored
This allows multiple versions (e.g. Debug/Release, x86/x64) of micropython.exe to co-exist instead and also solves potential problems where msbuild does not completely rebuild the output and/or pdb files when switching between builds, which in turn can cause linker errors in dependent projects. By default exe/map/... files go in windows/build/$(Configuration)$(Platform) After each build micropython.exe is still copied from the above directory to the windows directory though, as that is consistent with the other ports and the test runner by default uses that location as well. Also rename env.props -> path.props which is a clearer name, and add ample documentation in the affected build files. (also see discussion in #1538)
-
Paul Sokolovsky authored
After an I/O event is triggered for fd, event flags are automatically reset, so no further events are reported until new event flags are set. This is an optimization for uasyncio, required to account for coroutine semantics: each coroutine issues explicit read/write async call, and once that trigger, no events should be reported to coroutine, unless it again explicitly requests it. One-shot mode saves one linear scan over the poll array.
-
- 10 Dec, 2015 5 commits
-
-
Sven Wegener authored
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
-
Damien George authored
-
Damien George authored
Fixes #1684 and makes "not" match Python semantics. The code is also simplified (the separate MP_BC_NOT opcode is removed) and the patch saves 68 bytes for bare-arm/ and 52 bytes for minimal/. Previously "not x" was implemented as !mp_unary_op(x, MP_UNARY_OP_BOOL), so any given object only needs to implement MP_UNARY_OP_BOOL (and the VM had a special opcode to do the ! bit). With this patch "not x" is implemented as mp_unary_op(x, MP_UNARY_OP_NOT), but this operation is caught at the start of mp_unary_op and dispatched as !mp_obj_is_true(x). mp_obj_is_true has special logic to test for truthness, and is the correct way to handle the not operation.
-
Henrik Sölver authored
Only IPSR and BASEPRI special registers supported at the moment, but easy to extend in the future.
-
Paul Sokolovsky authored
uclibc objects call __GI_vsnprintf().
-
- 09 Dec, 2015 9 commits
-
-
Paul Sokolovsky authored
Oftentimes, libc, libm, etc. don't come compiled with CPU compressed code option (Thumb, MIPS16, etc.), but we may still want to use such compressed code for MicroPython itself.
-
Paul Sokolovsky authored
At least it's defined as "unsiged". We don't try to support unicode still, but at least apply workaround for DJGPP build.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Previously, sizeof() blindly assumed LAYOUT_NATIVE and tried to align size even for packed LAYOUT_LITTLE_ENDIAN & LAYOUT_BIG_ENDIAN. As sizeof() is implemented on a strucuture descriptor dictionary (not an structure object), resolving this required passing layout type around.
-
Dave Hylands authored
-
Damien George authored
-
Damien George authored
This way mp_float_t can be changed to, eg, double.
-
Damien George authored
Addresses issue #1697.
-
neilh10 authored
This is refactoring to enable support for the two USB PHYs available on some STM32F4 processors to be used at the same time. The F405/7 & F429 have two USB PHYs, others such as the F411 only have one PHY. This has been tested separately on a pyb10 (USB_FS PHY) and F429DISC (USB_HS PHY) to be able to invoke a REPL/USB. I have modified a PYBV10 to support two PHYs. The long term objective is to support a 2nd USB PHY to be brought up as a USB HOST, and possibly a single USB PHY to be OTG.
-