Damien George
6e1dfb0d1a
stmhal: Reorganise code for parsing keyword args in I2C methods.
...
To make it the same as SPI and UART.
2015-06-22 23:46:22 +01:00
Damien George
de8b585ab7
esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.
...
This is the standard way of doing things, one should construct a
peripheral object (even if it's a singleton).
See issue #1330 .
2015-06-22 23:03:17 +01:00
Damien George
c4b592d379
bare-arm, minimal, qemu-arm: Make do_str() take parse-input-kind as arg.
...
The do_str() function is provided essentially as documentation to show
how to compile and execute a string. This patch makes do_str take an
extra arg to specify how the string should be interpreted: either as a
single line (ie from a REPL) or as multiple lines (ie from a file).
2015-06-22 22:38:47 +01:00
Paul Sokolovsky
fe99ea9aab
README: Add quick information about builtin upip package manager.
...
Also, simplify dependencies info now that we no longer require GNU
readline.
2015-06-22 20:06:12 +03:00
Damien George
7f19a39a3b
py: Cast argument for printf to int, to be compatible with more ports.
...
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
2015-06-22 17:40:12 +01:00
Paul Sokolovsky
a06c38b486
tests: Add testcase for open(..., "a").
2015-06-21 00:05:09 +03:00
Ari Suutari
63b9e598a3
unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a").
...
To comply with Python semantics.
2015-06-21 00:03:26 +03:00
Bill Owens
60ccb41fac
esp8266: Move status() from esp module to network
2015-06-20 23:35:55 +03:00
Damien George
06593fb0f2
py: Use a wrapper to explicitly check self argument of builtin methods.
...
Previous to this patch a call such as list.append(1, 2) would lead to a
seg fault. This is because list.append is a builtin method and the first
argument to such methods is always assumed to have the correct type.
Now, when a builtin method is extracted like this it is wrapped in a
checker object which checks the the type of the first argument before
calling the builtin function.
This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
is enabled by default.
See issue #1216 .
2015-06-20 16:39:39 +01:00
Paul Sokolovsky
a193ced7fa
esp8266: README: Typo fix.
2015-06-19 21:09:53 +03:00
Damien George
c8870b7c69
py: Make showbc decode UNPACK_EX, and use correct range for unop/binop.
2015-06-18 15:12:17 +00:00
Paul Sokolovsky
b6a08208e1
esp8266: Explicit warning that port is experimental and subject to change.
2015-06-18 11:46:43 +03:00
Paul Sokolovsky
fb4b800820
README: Mention esp8266 port.
2015-06-18 11:44:04 +03:00
Radomir Dopieralski
0cba23716d
ESP8266: Update the README.md to reflect what works
2015-06-18 11:42:05 +03:00
Paul Sokolovsky
b85bf25e97
CODECONVENTIONS.md: 16-bit ports exist now.
2015-06-18 11:40:48 +03:00
Paul Sokolovsky
2474c2ae94
CODECONVENTIONS.md: Header files no longer follow Plan 9 conventions.
2015-06-18 11:38:09 +03:00
Daniel Campora
92d95cc9d3
cc3200: Remove --specs=nano.specs linker flag.
2015-06-18 09:01:37 +02:00
Bill Owens
7c61249ae6
esp8266: Updated documentation for scan() and moved to network
2015-06-17 23:16:28 +03:00
Bill Owens
686516f90a
esp8266: Move scan from esp module to network
2015-06-17 23:13:12 +03:00
Daniel Campora
ea2cc2b907
docs: Add more documentation for the CC3200 in the pyb module.
2015-06-16 15:45:24 +02:00
Daniel Campora
cdfa11f550
cc3200: In Timer.callback() only use value param if in edge count mode.
2015-06-16 15:34:46 +02:00
Damien George
e78a8c94b6
docs: Bump version to 1.4.4.
2015-06-15 23:54:22 +01:00
Damien George
f6518a7bd5
tests: Check that machine module exists and print SKIP if it doesn't.
2015-06-15 23:35:15 +01:00
Damien George
d59ca4efdb
tools/pyboard.py: Change logic for when raw ">" prompt is parsed.
...
In raw REPL ">" indicates the prompt. We originally read this character
upon entering the raw REPL, and after reading the last bit of the
output. This patch changes the logic so the ">" is read only just
before trying to send the next command. To make this work (and as an
added feature) the input buffer is now flushed upon entering raw REPL.
The main reason for this change is so that pyboard.py recognises the EOF
when sys.exit() is called on the pyboard. Ie, if you run pyboard.py
with a script that calls sys.exit(), then pyboard.py will exit after
the sys.exit() is called.
2015-06-15 23:28:04 +01:00
Bill Owens
3ce212e0a6
esp8266: Changed esp_scan to keep the current WiFi operating mode but throw an exception if WiFi is in AP only mode
2015-06-14 10:57:08 +03:00
Damien George
e9ce00d874
py: Implement divmod for mpz bignum.
2015-06-13 23:38:28 +01:00
Damien George
c5029bcbf3
py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin.
2015-06-13 23:36:30 +01:00
Damien George
6f49520042
py: Implement second arg for math.log (optional value for base).
2015-06-13 22:35:25 +01:00
Radomir Dopieralski
05c6fbcae6
esp8266: Fix the documentation for esp.connect() and esp.disconnect()
...
Since the commit that moved those two functions failed to update
the documentation, this is a fix for that.
2015-06-13 23:03:06 +03:00
Paul Sokolovsky
dd0e24f4b0
pip-micropython: Add deprecation notice, but still leave for reference.
2015-06-13 21:39:57 +03:00
Paul Sokolovsky
32eb4b9055
esp8266: Move connect/disconnect from "esp" module to network.
2015-06-12 17:45:28 +03:00
Paul Sokolovsky
ee3fec3167
esp8266: Add skeleton "network" module.
...
MicroPython "network" module interface requires it to contains classes
to instantiate. But as we have a static network interace, make WLAN()
"constructor" just return module itself, and just make all methods
module-global functions.
2015-06-12 17:45:20 +03:00
Paul Sokolovsky
431603ad69
esp8266: esp_connect(): The function is now vararg.
...
Fixes regression from a previous commit.
2015-06-12 14:26:44 +03:00
Paul Sokolovsky
a19ba5fea0
py: Rebuild port if mpconfigport.mk changed (if any).
...
mpconfigport.mk contains configuration options which affect the way
MicroPython is linked. In this regard, it's "stronger" configuration
dependency than even mpconfigport.h, so if we rebuild everything on
mpconfigport.h change, we certianly should of that on mpconfigport.mk
change too.
2015-06-11 11:08:39 +03:00
Daniel Campora
f28ed55aeb
cc3200/README.md: Specify the board name in the build command.
2015-06-11 09:26:36 +02:00
Daniel Campora
0a903be7d0
README.md: Correct port names in the documentation build command.
2015-06-11 09:15:07 +02:00
Daniel Campora
cfcf47c064
docs: Add initial draft documentation for the WiPy.
...
This makes all common files "port-aware" using the .. only directive.
2015-06-10 23:37:56 +02:00
Daniel Campora
b630de1103
cc3200: Rename os.mkdisk() to os.mkfs().
2015-06-10 23:35:45 +02:00
Daniel Campora
1811c6bccf
cc3200: Remove Timer.AB constant.
...
Timer.A and Timer.B can be ORed for this purpose.
2015-06-10 23:35:43 +02:00
Daniel Campora
e2dc7ac2a9
cc3200: Clarify notes about the extended functionality of uhashlib.
2015-06-10 23:35:41 +02:00
Daniel Campora
95cc1ff542
cc3200: Re-name pyb.hard_reset() to pyb.reset().
2015-06-10 23:35:40 +02:00
Daniel Campora
330e21c986
cc3200: Use the pull up/down resistors on the antenna selection pins.
2015-06-10 23:35:38 +02:00
Daniel Campora
f960d753e4
cc3200: Fix bootloader build error.
2015-06-10 23:35:36 +02:00
Daniel Campora
3319780e96
cc3200: Add sendbreak method to the UART.
2015-06-10 23:35:35 +02:00
Daniel Campora
8a6d93aeed
cc3200: Make UART API more similar to stmhal.
2015-06-10 23:35:33 +02:00
Daniel Campora
640d00ea9d
cc3200: Change MP_OBJ_NULL for mp_const_none in params default value.
2015-06-10 23:35:32 +02:00
Daniel Campora
071d47fa3b
cc3200: Only kick the WDT if it's actually running.
2015-06-10 23:35:30 +02:00
Daniel Campora
6148f8b7d2
cc3200: Add contructor to the HeartBeat class.
2015-06-10 23:35:28 +02:00
Damien George
76285469d3
stmhal: Make I2C use DMA when interrupts are enabled.
2015-06-10 14:01:44 +01:00
Damien George
3d30d605f5
stmhal: Factor out DMA initialisation code from spi.c.
...
This is so that the DMA can be shared by multiple peripherals.
2015-06-10 14:01:44 +01:00