Paul Sokolovsky
1818da2ef3
lib/utils/printf: Fix issue with putchar define for some ports.
2015-11-22 02:46:32 +02:00
Paul Sokolovsky
8ee43e24f3
lib/utils/printf: Add extra prototypes.
2015-11-22 00:59:24 +02:00
Paul Sokolovsky
c3280d83e7
unix: Use printf() implementation in terms of mp_printf().
...
In other words, unix port now uses overriden printf(), instead of using
libc's. This should remove almost all dependency on libc stdio (which
is bloated).
2015-11-22 00:44:41 +02:00
Paul Sokolovsky
ede1f547e7
unix/modsocket: Use snprintf(), as defined by lib/utils/printf.c.
2015-11-21 17:21:49 +02:00
Paul Sokolovsky
295ea12411
py/emitglue: Host definition of mp_verbose_flag.
...
This may not seem like the ideal place, but is actually the only place
in py/ where it gets referenced, so is just right.
2015-11-21 16:54:15 +02:00
Paul Sokolovsky
72bd172b30
py/modsys: Consistently use indented #if's.
2015-11-21 16:03:37 +02:00
Paul Sokolovsky
3ba61656bd
unix/modsocket: Implement sockaddr() function to decode raw socket address.
...
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).
2015-11-21 01:38:59 +02:00
Paul Sokolovsky
2ae7ced721
unix/modsocket: Removed dangling references to sockaddr_in_type.
2015-11-20 21:32:27 +02:00
Paul Sokolovsky
acb743da64
unix/modffi: Mark 'O' type specifier as implemented.
2015-11-20 17:51:37 +02:00
Damien George
83229d3ffe
py: Use MP_OBJ_NULL instead of NULL when appropriate.
2015-11-20 14:09:20 +00:00
Damien George
54df549b5f
unix/moduselect: Initialise variable so can compile in non-debug mode.
2015-11-20 12:51:00 +00:00
Damien George
b5b1f2c527
py/emitglue: Add mp_raw_code_load_mem to load raw-code from memory.
2015-11-20 12:44:20 +00:00
Damien George
f148727b78
py/emitglue: Only compile raw-code fatfs loader when on thumb2 platform.
...
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.
2015-11-20 12:42:26 +00:00
Damien George
d4dba88236
py/compile: Add mp_compile_to_raw_code() to return raw code object.
...
This can then be passed to mp_raw_code_save_file to save a .mpy file.
2015-11-20 12:30:37 +00:00
Igor Gatis
f5c554dfe3
py: Added Cygwin support to py/nlrx86.S.
2015-11-19 20:23:43 +02:00
Damien George
593faf14c4
py/map: Store key/value in earliest possible slot in hash table.
...
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.
2015-11-19 01:27:28 +00:00
danicampora
db0a5aed39
cc3200: Bump version to 1.1.1.
2015-11-18 23:45:24 +01:00
danicampora
efc4da4be9
cc3200/README.md: Correct cc3200's update file name.
2015-11-18 20:10:19 +01:00
Chris Liechti
426f326d35
docs/wipy: Make wifi/wlan naming consistent with tutorial.rst.
2015-11-18 20:02:07 +01:00
Jason Hildebrand
9142179f81
docs/wipy: Add warning about losing wlan connection when changing mode.
...
Also provide workarounds, link to other revelant sections,
and fix some typos.
2015-11-18 19:55:55 +01:00
Gary Ashton-Jones
7080e9632c
cc3200/appsign.sh: Use md5 if running under Darwin.
2015-11-18 19:50:28 +01:00
Noah
00960133c2
docs: Update docs for WiPy wlan.connect().
...
- The link establishment timeout is infinite by default
- Fix typo in notes about the auth kwarg
2015-11-18 19:47:40 +01:00
Dave Hylands
f3308daa6f
docs/wipy: Fixed some typos in the WiPy's tutorials.
2015-11-18 19:40:29 +01:00
Damien George
994ff738c8
py/mpstate: Make mp_pending_exception volatile.
...
It can change asynchronously.
2015-11-17 14:27:21 +00:00
Damien George
a24eafacc9
py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.
...
Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled.
Also covers cmath module (but only log10 is there at the moment).
2015-11-17 14:10:13 +00:00