aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-07stmhal: uart ioctl uses EINVAL, and checks TXE bit for write-ability.Damien George
2014-09-07Remove skeletal modselect from extmod and just put it in stmhal.Damien George
2014-09-07stmhal: Fix modselect so non-hashable objects can be polled.Damien George
2014-09-07py: Rename mp_builtin_id to mp_obj_id and make it public.Damien George
2014-09-07stmhal: Add polling ability to UART object.Damien George
2014-09-07stmhal: Implement generic select.select and select.poll.Damien George
2014-09-07py: Add ioctl method to stream protocol; add initial modselect.Damien George
2014-09-07py: Clean up x86-64 native assembler; allow use of extended regs.Damien George
Native x86-64 now has 3 locals in registers.
2014-09-06py: Adjust regs for x86 so that 1 more local can live in a reg.Damien George
2014-09-06unix: Fix modffi to be able to return double on x86 machines.Damien George
2014-09-06py: Allow x86 native functions to take arguments.Damien George
Fix some bugs with x86 stack and saving registers correctly.
2014-09-06py: Add support for emitting native x86 machine code.Damien George
2014-09-06Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-09-06tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm.Damien George
2014-09-06py: Native emitter now supports delete name & global, and end finally.Damien George
2014-09-06modstruct: Implement 'O', 'P', 's' types for packed structs.Paul Sokolovsky
This is required to deal with, well, packed C structs containing pointers.
2014-09-06py: Correctly set sys.maxsize value for 64-bit.Paul Sokolovsky
Type representing signed size doesn't have to be int, so use special value which defaults to SSIZE_MAX, but as it's not defined by C standard (but rather by POSIX), allow ports to set it.
2014-09-06unix: Don't use -Wno-error=cpp or #warning; fix strict alias warning.Damien George
For the sake of older versions of gcc (and other compilers), don't use the #warning CPP directive, nor the -Wno-error=cpp option. Also, fix a strict alias warning in modffi.c for older compilers, and add a test for ffi module. Addresses issue #847.
2014-09-06py: Fix definition of sys.maxsize with mpz changes.Damien George
2014-09-06py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch.Damien George
Previously, mpz was restricted to using at most 15 bits in each digit, where a digit was a uint16_t. With this patch, mpz can use all 16 bits in the uint16_t (improvement to mpn_div was required). This gives small inprovements in speed and RAM usage. It also yields savings in ROM code size because all of the digit masking operations become no-ops. Also, mpz can now use a uint32_t as the digit type, and hence use 32 bits per digit. This will give decent improvements in mpz speed on 64-bit machines. Test for big integer division added.
2014-09-05py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function.Damien George
2014-09-05py: Use % str formatting instead of {} in makeqstrdata.py.Damien George
Script is equivalent, but now also runs under ancient Python 2.6. Goes part way to addressing issue #847.
2014-09-04py: Use variable length encoded uints in more places in bytecode.Damien George
Code-info size, block name, source name, n_state and n_exc_stack now use variable length encoded uints. This saves 7-9 bytes per bytecode function for most functions.
2014-09-03Code style/whitespace cleanup; remove obsolete headers.Damien George
And move the MAP_ANON redefinition from py/asmx64.c to unix/alloc.c.
2014-09-03unix: Auto-detect MICROPY_EMIT_X64 and MICROPY_GCREGS_SETJMP.Damien George
If not set, MICROPY_EMIT_X64 is set only if on x86-64 machine. If not set, MICROPY_GCREGS_SETJMP is set when on MIPS.
2014-09-03Merge pull request #845 from Vogtinator/masterDamien George
Add allocation macros (per platform) and ARM cache flush
2014-09-03Add cache flush in py/asmarm.c and add new MP_PLAT_ALLOC_EXEC and ↵Fabian Vogt
MP_PLAT_FREE_EXEC macros Fixes issue #840
2014-09-03Merge pull request #844 from chrisdearman/do_strDamien George
Declare do_str() function before the implementation
2014-09-02Merge branch 'stinos-msvc-extmod'Damien George
2014-09-02extmod: Fix type-punned-ptr error.Damien George
2014-09-02Merge branch 'msvc-extmod' of github.com:stinos/micropython into ↵Damien George
stinos-msvc-extmod
2014-09-02msvc: Exclude modtermios, include extmod and fix compilation errorstijn
2014-09-01Declare do_str() function before the implementationChris Dearman
This ensures that GCC does not discard the do_str implementation in some cases eg when compiling tests with debug enabled: make RUN_TESTS=1 DEBUG=1
2014-09-01stmhal, modwiznet5k: Add very minimal documentation.Damien George
2014-09-01stmhal: Add wiznet5k module, to control WIZnet ethernet adaptor.Damien George
Allows to create socket objects that support TCP and UDP in server and client mode. Interface is very close to standard Python socket class, except bind and accept do not work the same (due to hardware not supporting them in the usual way). Not compiled by default. To compile this module, use: make MICROPY_PY_WIZNET5K=1
2014-09-01drivers, wiznet5k: Make DNS service use HAL sys tick.Damien George
2014-09-01drivers, wiznet5k: Add HAL_Delay(1) to "infinite" loops.Damien George
2014-09-01drivers, wiznet5k: Properly fix ARP bug with W5200 chipset.Damien George
2014-09-01drivers, wiznet5k: Add W5200 support.Damien George
2014-09-01drivers, wiznet5k: Change SPI interface to read/write multiple bytes.Damien George
2014-09-01drivers, wiznet5k: Fix IP addr verification.Damien George
2014-09-01drivers: Initial import of WIZnet5x000 driver.Damien George
2014-09-01Added 'drivers' directory, intended to hold code for specific hardware.Damien George
2014-08-31Merge pull request #841 from dhylands/teensy-READMEDamien George
Update teensy README.md file
2014-08-30Update teensy README.md fileDave Hylands
Thanks to Artur Wroblewski for some suggested changes. I also added the TIPs section at the end while I was updating.
2014-08-30py: Small simplifications in tuple and list accessors.Damien George
2014-08-30py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Remove use of int type in obj.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Change all uint to mp_uint_t in obj.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Make tuple and list use mp_int_t/mp_uint_t.Damien George
Part of code cleanup, to resolve issue #50.