Damien George
80dfd65090
stmhal/main: Put /sd directory before /flash in sys.path.
...
If the SD card is mounted then its libraries (ie those that are imported)
should override any in /flash.
2017-01-31 12:30:18 +11:00
Damien George
3667ee1b88
stmhal: On boot, mount all available partitions of the SD card.
...
The first partition is mounted as "/sd" and subsequent partitions are
mounted as "/sd<part_num>". This is backwards compatible with the previous
behaviour, which just mounted the first partition on "/sd".
At this point, only FatFs filesystems are mounted.
2017-01-31 12:18:08 +11:00
Damien George
326343feeb
stmhal/README: Add paragraph about building mpy-cross.
2017-01-31 09:32:31 +11:00
Glenn Ruben Bakke
5004a6f811
nrf5/hal: Updating twi master tx with stop parameter.
2017-01-30 23:05:27 +01:00
Paul Sokolovsky
33b8e65bc0
tests/basics/zip: Make skippable.
2017-01-31 00:33:01 +03:00
Paul Sokolovsky
aee723ed4c
tests/run-tests: Skip frozenset tests if set literal syntax is not available.
2017-01-31 00:25:09 +03:00
Glenn Ruben Bakke
ed976e07fe
nrf5/hal: Adding i2c master functions for tx and rx in hal header.
2017-01-30 21:32:20 +01:00
Paul Sokolovsky
d335904666
zephyr/Makefile.zephyr: Support and default to networked (SLIP) QEMU.
...
Also works for non-networked builds (like minimal).
2017-01-30 21:27:29 +03:00
Andrew Gatt
10dbf2383f
extmod/vfs_fat.c: Use explicit include path for timeutils.h.
2017-01-30 23:10:16 +11:00
Damien George
c30b308492
extmod/vfs_reader: Fix use of NLR by popping context.
2017-01-30 22:26:54 +11:00
Damien George
5ec5bfb0d3
docs/pyboard/tutorial/lcd160cr_skin: Fix typo, get_touched->get_touch.
2017-01-30 18:19:29 +11:00
Damien George
6b12934fec
stmhal: Fix stack pointer initialisation for F411 and F429 boards.
...
The stack pointer should start pointing 1 byte past the top of the end of
RAM.
2017-01-30 17:47:11 +11:00
Damien George
a526352454
stmhal: Set the FatFs partition number when initialising VFS object.
...
stmhal has MULTI_PARTITION enabled for FatFs and so these values need to be
initialised.
2017-01-30 13:02:10 +11:00
Damien George
220abca311
stmhal: Use LED constants from PYBv4 onwards.
2017-01-30 13:01:21 +11:00
Damien George
30beed119f
unix/modos: Remove VfsFat from uos module, it's now in uos_vfs module.
2017-01-30 12:26:08 +11:00
Damien George
0fb27888fc
extmod/vfs_fat: Remove unused function fat_vfs_listdir.
2017-01-30 12:26:08 +11:00
Damien George
196406e17a
extmod/vfs_fat: Remove unused fatfs_builtin_open function.
2017-01-30 12:26:08 +11:00
Damien George
b697c89009
extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h.
...
vfs.h is for generic VFS declarations, and vfs_fat.h is for VfsFat
specific things.
2017-01-30 12:26:08 +11:00
Damien George
9425bf5b2b
lib/fatfs: Remove old fatfs library component, it's replaced by oofatfs.
2017-01-30 12:26:08 +11:00
Damien George
0bd61d23b9
extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.
...
Everyone should now be using the new ooFatFs library. The old one is no
longer supported and will be removed.
2017-01-30 12:26:07 +11:00
Damien George
95635ade8b
unix/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.
2017-01-30 12:26:07 +11:00
Damien George
c95c583857
esp8266/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.
2017-01-30 12:26:07 +11:00
Damien George
1808b2e8d5
extmod: Remove MICROPY_FSUSERMOUNT and related files.
...
Replaced by MICROPY_VFS and the VFS sub-system.
2017-01-30 12:26:07 +11:00
Damien George
3d6f957208
extmod/vfs_fat: Remove MICROPY_FSUSERMOUNT_ADHOC config option.
2017-01-30 12:26:07 +11:00
Damien George
8beba7310f
extmod/vfs_fat: Remove MICROPY_READER_FATFS component.
2017-01-30 12:26:07 +11:00
Damien George
56506fd64a
cc3200: Convert to use new VFS sub-system and new ooFatFs library.
2017-01-30 12:26:07 +11:00
Damien George
6eafa54486
extmod/vfs: Expose lookup_path_raw as mp_vfs_lookup_path.
...
It can be useful for low-level lookup of paths by ports.
2017-01-30 12:18:35 +11:00
Damien George
ec3274324b
extmod/vfs_fat: Update to use FF_DIR instead of DIR.
2017-01-30 12:08:15 +11:00
Damien George
28899cd971
lib/oofatfs: Update oofatfs library.
...
From https://github.com/micropython/oofatfs , branch work-R0.12b,
commit 46fb53331e7a583c29a41d37ce4b53f2718597e5.
2017-01-30 12:07:40 +11:00
Glenn Ruben Bakke
8ffe804c24
nrf5/hal: Adding new macros functions to mphalport.h which are used by extmod i2c machine module.
2017-01-30 00:32:19 +01:00
Glenn Ruben Bakke
61c026e51f
nrf5/i2c: Adopting use of extmod/machine_i2c module as base for port's machine i2c module.
2017-01-30 00:31:00 +01:00
Glenn Ruben Bakke
bb9cd36314
nrf5/i2c: Backing up before trying out extmod i2c integration.
2017-01-29 17:53:01 +01:00
Paul Sokolovsky
a5bed53738
examples/hwapi: Consistently use Signal class to define LEDs.
2017-01-29 19:09:33 +03:00
Paul Sokolovsky
297af6036e
examples/hwapi: Use Signal for inverted LED on ESP-12.
2017-01-29 18:57:37 +03:00
Paul Sokolovsky
287180a0a8
esp8266/modmachine: Add Signal class.
2017-01-29 18:57:37 +03:00
Paul Sokolovsky
7a7516d40d
extmod/machine_signal: Implement "signal" abstraction for machine module.
...
A signal is like a pin, but ca also be inverted (active low). As such, it
abstracts properties of various physical devices, like LEDs, buttons,
relays, buzzers, etc. To instantiate a Signal:
pin = machine.Pin(...)
signal = machine.Signal(pin, inverted=True)
signal has the same .value() and __call__() methods as a pin.
2017-01-29 18:57:36 +03:00
Paul Sokolovsky
18b6835a92
esp8266/machine_pin: Implement pin ioctl protocol.
...
For polymorphic interfacing on C level.
2017-01-29 18:47:27 +03:00
Glenn Ruben Bakke
fec5c75068
nrf5: Adding i2c class to machine module globals table.
2017-01-29 16:41:18 +01:00
Glenn Ruben Bakke
bfc67dd99c
nrf5: Updating main.c to initialize the i2c machine module if selected.
2017-01-29 16:38:48 +01:00
Glenn Ruben Bakke
f529aa9e67
nrf5/i2c: Updating i2c machine module with new constructor parameters to set scl and sda pins. Also updating print funciton to debug pin number and port number for the gpio set.
2017-01-29 16:38:13 +01:00
Paul Sokolovsky
0ddeedfc73
docs/uio: Typo fixes/lexical improvements.
2017-01-29 16:18:33 +03:00
Paul Sokolovsky
bdb0d22fe2
docs/conf.py: Add myself as a copyright holder on the docs.
...
Based on the following statistics:
$ git log docs |grep Author | sort | uniq -c | sort -n -r
175 Author: Paul Sokolovsky
135 Author: Damien George
31 Author: Daniel Campora
26 Author: danicampora
14 Author: Peter Hinch
git blame stats script from http://stackoverflow.com/a/13687302/496009 :
$ sh git-authors docs
9977 author Damien George
2679 author Paul Sokolovsky
1699 author Daniel Campora
1580 author danicampora
1286 author Peter Hinch
282 author Shuning Bian
249 author Dave Hylands
Total lines per this script: 18417, my contribution is 14.5%.
2017-01-29 16:12:07 +03:00
Damien George
9d3ad75b39
stmhal/moduos: Remove duplicated chdir.
2017-01-29 15:10:09 +11:00
Damien George
c3cd46e5c2
stmhal: Fix name of automatically created boot.py.
2017-01-29 15:09:36 +11:00
Paul Sokolovsky
3a3543251f
cc3200/modusocket: Remove deprecated socket.error.
...
socket.error is deprecated even in upstream:
https://docs.python.org/3/library/socket.html#socket.error ,
and never was a part of MicroPython socket API.
2017-01-29 02:47:26 +03:00
Glenn Ruben Bakke
1421ca4adc
nrf5/i2c: Updating i2c module to new new hal api, as master is initialized with its own init function.
2017-01-28 23:46:31 +01:00
Glenn Ruben Bakke
97a3fd4f3a
nrf5/hal: Adding members to TWI config struct, device address and scl/sda pin. Renaming and adding function such that twi slave and master has seperate init function. Started implementation of master init function for nrf52 using DMA (hal_twie.c).
2017-01-28 23:45:30 +01:00
Glenn Ruben Bakke
9787c4af7b
nrf5/i2c: Updating module to use new struct layout from hal_twi.h
2017-01-28 22:55:35 +01:00
Glenn Ruben Bakke
1c778f020f
nrf5/hal: Updating TWI with frequency enums.
2017-01-28 22:54:44 +01:00
Paul Sokolovsky
ef6fb66d23
docs/uio: Describe differences between uPy an CPy stream hierarchy.
2017-01-28 16:35:40 +03:00