Colin Hogben
2b46da234c
lib/utils/pyhelp: Extract implementation of help(obj) to a library function.
...
Several ports use identical code for the 1-argument form of the builtin
help function. Move this code to a library function to allow easier
re-use by ports.
2016-04-25 18:54:09 +03:00
Paul Sokolovsky
4296a8dc5c
esp8266/scripts/webrepl: Allow to override port.
2016-04-25 18:44:37 +03:00
Paul Sokolovsky
bd66b09512
esp8266/scripts/webrepl: Don't start on import.
...
Explicit .start() is required now.
2016-04-25 00:33:27 +03:00
Paul Sokolovsky
8db4f363e9
esp8266/scripts/webrepl: Convert to persistent daemon.
2016-04-25 00:31:43 +03:00
Paul Sokolovsky
7c40b15a3f
esp8266/scripts/webrepl: WebREPL based on C-level websocket object.
2016-04-24 23:04:21 +03:00
Paul Sokolovsky
0d10e5310a
docs/usocket: Describe address format once at the beginning.
...
Different ports may have different formats.
2016-04-23 00:31:05 +03:00
Paul Sokolovsky
92497bff94
docs/usocket: socket.IPPROTO_SEC is WiPy-specific.
2016-04-23 00:17:34 +03:00
Paul Sokolovsky
955b8526f4
docs/usocket: Socket-specific exceptions are for WiPy only.
2016-04-23 00:17:09 +03:00
Paul Sokolovsky
71c6f93016
docs/library/usocket: Add link to CPython's socket module.
2016-04-23 00:08:43 +03:00
Paul Sokolovsky
bbe5245028
docs: esp8266: Include usocket module reference.
2016-04-23 00:08:11 +03:00
Paul Sokolovsky
3bc9b571bb
docs/ustruct: There's no complete "struct" module, only "ustruct" subset.
...
"ustruct" is good example of micro-ified module, so rather should belong
to the corresponding list.
2016-04-22 22:37:14 +03:00
Paul Sokolovsky
5c8147528e
docs/esp8266/tutorial: Add tutorial placeholder page.
2016-04-22 22:37:02 +03:00
Paul Sokolovsky
d422e56631
esp8266/scripts/websocket_helper: Disable debug output.
2016-04-22 18:19:54 +03:00
Paul Sokolovsky
eb40769613
esp8266/scripts/websocket_helper: Module encapsulating handshake sequences.
2016-04-22 18:18:27 +03:00
Damien George
51dca54cd0
py/mkrules.mk: Remove obsolete rules for auto qstr generation.
2016-04-22 11:36:19 +01:00
Damien George
b372156f74
esp8266: Change software SPI driver to use general pin HAL.
2016-04-22 10:44:06 +01:00
Damien George
67a6d31955
esp8266: Allow GPIO16 to be used as a pin in the uPy pin HAL.
...
Now I2C works with GPIO16 as the SCL or SDA pin.
2016-04-22 10:35:26 +01:00
Damien George
a2d5d84ecc
esp8266: Convert mp_hal_pin_obj_t from pin ptr to simple integer.
...
Most pin I/O can be done just knowing the pin number as a simple
integer, and it's more efficient this way (code size, speed) because it
doesn't require a memory lookup to get the pin id from the pin object.
If the full pin object is needed then it can be easily looked up in the
pin table.
2016-04-22 10:04:12 +01:00
Damien George
624738ca64
extmod/machine_i2c: Allow mp_hal_pin_obj_t to be any type, not a ptr.
2016-04-22 09:56:02 +01:00
Damien George
109990fc32
py/mkenv.mk: Remove -s and -S args from PYTHON variable.
...
Qstr auto-generation is now much faster so this optimisation for start-up
time is no longer needed. And passing "-s -S" breaks some things, like
stmhal's "make deploy".
2016-04-21 22:25:35 +01:00
Damien George
fea40ad468
py: Fix bug passing a string as a keyword arg in a dict.
...
Addresses issue #1998 .
2016-04-21 16:51:36 +01:00
Damien George
d4f4cb6a24
esp8266/esp_mphal: Remove mp_hal_feed_watchdog.
...
It doesn't do anything and is not needed. ets_loop_iter/ets_event_poll
now take care of feeding the WDT.
2016-04-21 15:30:29 +01:00
Damien George
c4e26dd19a
esp8266/uart: Remove obsolete UART rx buffering code.
...
It's now completely replaced by the ringbuf implementation.
2016-04-21 15:27:18 +01:00
Damien George
d46bea9ffa
esp8266: Implement UART.read functionality.
2016-04-21 15:19:19 +01:00
Damien George
7652ab77ef
esp8266: Add uart_rx_wait and uart_rx_char functions.
2016-04-21 15:19:00 +01:00