summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py/emitglue: Host definition of mp_verbose_flag.Paul Sokolovsky2015-11-21
| | | | | This may not seem like the ideal place, but is actually the only place in py/ where it gets referenced, so is just right.
* py/modsys: Consistently use indented #if's.Paul Sokolovsky2015-11-21
|
* unix/modsocket: Implement sockaddr() function to decode raw socket address.Paul Sokolovsky2015-11-21
| | | | | | | | Return tuple of (address_family, net_addr, [port, [extra_data]]). net_addr is still raw network address as bytes object, but suitable for passing to inet_ntop() function. At the very least, sockaddr() will separate address family value from binary socket address (and currently, only AF_INET family is decoded).
* unix/modsocket: Removed dangling references to sockaddr_in_type.Paul Sokolovsky2015-11-20
|
* unix/modffi: Mark 'O' type specifier as implemented.Paul Sokolovsky2015-11-20
|
* py: Use MP_OBJ_NULL instead of NULL when appropriate.Damien George2015-11-20
|
* unix/moduselect: Initialise variable so can compile in non-debug mode.Damien George2015-11-20
|
* py/emitglue: Add mp_raw_code_load_mem to load raw-code from memory.Damien George2015-11-20
|
* py/emitglue: Only compile raw-code fatfs loader when on thumb2 platform.Damien George2015-11-20
| | | | | | Here we are assuming that a thumb2 port will have fatfs, which is only roughly true. We need a better way of enabling specific raw-code file readers.
* py/compile: Add mp_compile_to_raw_code() to return raw code object.Damien George2015-11-20
| | | | This can then be passed to mp_raw_code_save_file to save a .mpy file.
* py: Added Cygwin support to py/nlrx86.S.Igor Gatis2015-11-19
|
* py/map: Store key/value in earliest possible slot in hash table.Damien George2015-11-19
| | | | | | | | This change makes the code behave how it was supposed to work when first written. The avail_slot variable is set to the first free slot when looking for a key (which would come from deleting an entry). So it's more efficient (for subsequent lookups) to insert a new key into such a slot, rather than the very last slot that was searched.
* cc3200: Bump version to 1.1.1.danicampora2015-11-18
|
* cc3200/README.md: Correct cc3200's update file name.danicampora2015-11-18
|
* docs/wipy: Make wifi/wlan naming consistent with tutorial.rst.Chris Liechti2015-11-18
|
* docs/wipy: Add warning about losing wlan connection when changing mode.Jason Hildebrand2015-11-18
| | | | | Also provide workarounds, link to other revelant sections, and fix some typos.
* cc3200/appsign.sh: Use md5 if running under Darwin.Gary Ashton-Jones2015-11-18
|
* docs: Update docs for WiPy wlan.connect().Noah2015-11-18
| | | | | - The link establishment timeout is infinite by default - Fix typo in notes about the auth kwarg
* docs/wipy: Fixed some typos in the WiPy's tutorials.Dave Hylands2015-11-18
|
* py/mpstate: Make mp_pending_exception volatile.Damien George2015-11-17
| | | | It can change asynchronously.
* py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.Damien George2015-11-17
| | | | | | Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled. Also covers cmath module (but only log10 is there at the moment).
* py: Implement default and star args for lambdas.Damien George2015-11-17
|
* py/compile: Don't unnecessarily save state when compiling param list.Damien George2015-11-17
| | | | | Parameter lists can't be nested so there is no need to save the global state when compiling them.
* cc3200: Unmount all user file systems after a soft reset.danicampora2015-11-16
|
* unix: Add "uselect" module, with poll() function.Paul Sokolovsky2015-11-17
| | | | Underlyingly, uses standard POSIX poll() for portability.
* unix/input: Switch to POSIX I/O for history reading/writing.Paul Sokolovsky2015-11-16
|
* tools: Update to upip 0.6.2. Fixes issue due to MacOSX undocumented behavior.Paul Sokolovsky2015-11-15
|
* tools: Update upip to 0.6.1. Fixes normal installs without -p switch.Paul Sokolovsky2015-11-14
|
* unix/modos: getenv(): Handle non-existing envvar correctly.Paul Sokolovsky2015-11-14
|
* stmhal/modmachine: Initial attempt to add I2C & SPI classes.Paul Sokolovsky2015-11-14
| | | | | | | | | | | | | | In new hardware API, these classes implement master modes of interfaces, and "mode" parameter is not accepted. Trying to implement new HW API in terms of older pyb module leaves variuos corner cases: In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on interpretation), while in old API, it means "I2C #1, with no settings changes". For I2C class, it's easy to make mode optional, because that's last positional param, but for SPI, there's "baudrate" after it (which is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
* unix/modos: Add Windows workaround for mkdir().Paul Sokolovsky2015-11-14
|
* windows: Define ssize_t and use renamed mphal headerstijn2015-11-14
| | | | This fixes the build after changes in [66fd3e4] and [3a6b3d2]
* py/modmath: Don't create symbol entry for expm1() if not needed.Paul Sokolovsky2015-11-14
|
* py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS.Paul Sokolovsky2015-11-14
|
* tools: Update upip to 0.6.Paul Sokolovsky2015-11-14
| | | | | Removes FFI dependency, instead uses builtin os module. Thus can work on systems where dynamic library loading is not available.
* unix/modos: Add mkdir().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/modos: Add getenv().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/main: Remove stray mp_printf() from previous commit.Paul Sokolovsky2015-11-13
|
* unix: Use standard mphalport.h header.Paul Sokolovsky2015-11-13
| | | | This also unbreaks "make minimal".
* main.c: Switch stderr printing from ANSI C to native POSIX.Paul Sokolovsky2015-11-13
|
* unix: Allow to override MICROPY_PY_MATH_SPECIAL_FUNCTIONS from command-line.Paul Sokolovsky2015-11-13
|
* unix/mpconfigport: Move log2() definition to modmath.c.Paul Sokolovsky2015-11-13
| | | | | It's safer to define it where it's used, defining it for all source files may lead to hard to diagnose conflicts in corner cases.
* py: Allow to import compiled bytecode files.Damien George2015-11-13
|
* py: Add MICROPY_PERSISTENT_CODE_LOAD/SAVE to load/save bytecode.Damien George2015-11-13
| | | | | | MICROPY_PERSISTENT_CODE must be enabled, and then enabling MICROPY_PERSISTENT_CODE_LOAD/SAVE (either or both) will allow loading and/or saving of code (at the moment just bytecode) from/to a .mpy file.
* py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime.Damien George2015-11-13
| | | | | | | | | | | Main changes when MICROPY_PERSISTENT_CODE is enabled are: - qstrs are encoded as 2-byte fixed width in the bytecode - all pointers are removed from bytecode and put in const_table (this includes const objects and raw code pointers) Ultimately this option will enable persistence for not just bytecode but also native code.
* py: Add constant table to bytecode.Damien George2015-11-13
| | | | | Contains just argument names at the moment but makes it easy to add arbitrary constants.
* py: Put all bytecode state (arg count, etc) in bytecode.Damien George2015-11-13
|
* py: Reorganise bytecode layout so it's more structured, easier to edit.Damien George2015-11-13
|
* unix/main: Use builtin unichar_isdigit() in preference if libc's.Paul Sokolovsky2015-11-13
| | | | Less dependencies.
* tests/jni: Add test for working with container of List interface.Paul Sokolovsky2015-11-13
|