Daniel Campora
5225e29ce7
cc3200: Remove unneeded -lgcc in Makefile.
2015-04-29 00:03:58 +02:00
Daniel Campora
f81684141e
cc3200: Implement os.uname() to get details of the OS and hardware.
2015-04-29 00:03:56 +02:00
Daniel Campora
6fefd5d330
cc3200: Move telnet_process_credential with the other private functions.
...
Just for consistency.
2015-04-29 00:03:54 +02:00
Damien George
6bbbb1ab41
unix/modffi: Support passing float/double args.
2015-04-28 19:40:34 +01:00
Daniel Campora
f1ed8c8a2e
cc3200: Improve telnet_parse_input() in case of an incomplete option.
2015-04-28 16:48:33 +02:00
Matt Anderson
0458833072
cc3200: Make telnet login procedure work with Tera Term.
...
This is actually a workaround Ter Term's issue of not obeying to the
telnet options that the server is sending. Therefore, we must buffer
chars until either a '\r' or the max length of the username/password
is received.
2015-04-28 16:48:26 +02:00
Daniel Campora
abea1c38a9
lib/libc: Add memchr. We already have strchr, but memchr is useful too.
2015-04-28 16:48:20 +02:00
Daniel Campora
9fbc265eb8
cc3200: Add delays to allow the servers to start and stop properly.
2015-04-28 15:16:33 +02:00
Daniel Campora
d34c4784a5
cc3200: Select NIC when the socket is created.
...
This makes sense since only WLAN is supported here.
2015-04-28 15:14:36 +02:00
Dave Hylands
fdcb3b7ebb
stmhal: Actually disable unhandled timer interrupts.
2015-04-28 00:17:05 -07:00
Damien George
9472907ae1
py: Fix handling of negative numbers in struct.pack of q/Q.
2015-04-25 23:51:14 +01:00
Paul Sokolovsky
ae2c81ff38
vm: On exiting except block, clear sys.exc_info() value.
...
This doesn't handle case fo enclosed except blocks, but once again,
sys.exc_info() support is a workaround for software which uses it
instead of properly catching exceptions via variable in except clause.
2015-04-26 01:40:37 +03:00
Damien George
0f553fe10b
py: Implement power op for long-long implementation of bignum.
2015-04-25 23:28:10 +01:00
Damien George
271d18eb08
py: Support conversion of bignum to bytes.
...
This gets int.to_bytes working for bignum, and also struct.pack with 'q'
and 'Q' args on 32-bit machines.
Addresses issue #1155 .
2015-04-25 23:16:39 +01:00
Daniel Campora
7c8b4c1a8b
cc3200: Correct MAKE_SOCKADDR and UNPACK_SOCKADDR byte order.
2015-04-25 23:36:45 +02:00
Paul Sokolovsky
8b85d14b92
modsys: Add basic sys.exc_info() implementation.
...
The implementation is very basic and non-compliant and provided solely for
CPython compatibility. The function itself is bad Python2 heritage, its
usage is discouraged.
2015-04-25 03:49:23 +03:00
Paul Sokolovsky
cf5b6f6974
objfun: Fix to stackless mode after recent refactor.
2015-04-25 01:43:45 +03:00
Damien George
8c1d23a0e2
py: Modify bytecode "with" behaviour so it doesn't use any heap.
...
Before this patch a "with" block needed to create a bound method object
on the heap for the __exit__ call. Now it doesn't because we use
load_method instead of load_attr, and save the method+self on the stack.
2015-04-24 01:52:28 +01:00
Damien George
ede0f3ab3d
py: Add optional code to check bytes constructor values are in range.
...
Compiled in only if MICROPY_CPYTHON_COMPAT is set.
Addresses issue #1093 .
2015-04-23 15:28:18 +01:00
Dave Hylands
fd787c5e4e
stmhal: Reset the timer counter to zero after changing the auto reload.
...
Because if the counter is above the new value of the auto-reload register
then it may be a long time until the timer wraps around.
2015-04-22 23:31:56 +01:00
Damien George
40d43ea88d
tests: Add more tests for viper, including tests for ViperTypeError's.
2015-04-22 23:18:28 +01:00
Damien George
5e9810396f
py/objint_mpz.c: Make int_from_uint actually return uint.
2015-04-22 23:17:34 +01:00
Damien George
f66ee4dfd7
py/mpz.c: Fix bug with shl not truncating zero digits correctly.
2015-04-22 23:16:49 +01:00
Damien George
8f6aad2f48
py/emitnative.c: Fix stack adjustment when erroring on binary op.
2015-04-22 23:16:03 +01:00
Daniel Campora
eaefc8b9d6
cc3200: Add WiPy specific information to README.md
2015-04-22 21:03:10 +02:00