Daniel Campora
e282884e54
cc3200: When requesting safe boot, blink the led 3 times, not 4.
2015-04-29 15:27:21 +02:00
Daniel Campora
dbb4aef5e3
cc3200: Make WLAN.isconnected() also work in AP mode.
...
While in STA mode isconnected() returns True when connected to an AP
and the IP has been acquired. In AP mode, WLAN.isconnected() returns
True if at least one connected station is present.
2015-04-29 15:26:21 +02:00
Daniel Campora
bf4576dc91
cc3200: Clean-up servers enable/disable algorithm.
2015-04-29 14:25:44 +02:00
Dave Hylands
c3e37a0cde
stmhal: Automatically re-enable IRQs on the USB REPL.
...
This allows errors to be seen and prevents hanging
the board from doing: pyb.disable_irq()
2015-04-29 08:27:38 +01:00
Damien George
f27aa27a0c
py/repl.c: Fix shadowing of local variable "i".
2015-04-29 01:01:48 +01:00
Damien George
a1a2c411b2
py, readline: Add tab autocompletion for REPL.
...
Can complete names in the global namespace, as well as a chain of
attributes, eg pyb.Pin.board.<tab> will give a list of all board pins.
Costs 700 bytes ROM on Thumb2 arch, but greatly increases usability of
REPL prompt.
2015-04-29 00:46:26 +01:00
Damien George
b7a4f15b34
mp-readline: Save "prompt" string in readline state.
2015-04-29 00:32:35 +01:00
Damien George
ad9daadf8a
py: Fix attrtuple array length in print and creation.
2015-04-29 00:17:48 +01:00
Damien George
95f53461c2
py: Replace py-version.sh with makeversionhdr.py, written in Python.
...
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
2015-04-28 23:52:36 +01:00
Daniel Campora
d11317bcab
cc3200: Make WLAN scan results a list of attrtupple.
...
Each result is displayed like this:
ssid='MySSID', bssid=b'\xc0J\x00z.\xcc', security=2, channel=None, rssi=-74
The CC3200 doesn't provide channel info, that why is 'None'.
2015-04-29 00:04:01 +02:00
Daniel Campora
94792dd88f
py: In attrtuple use the correct length value and index for 'fields'.
2015-04-29 00:04:00 +02:00
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