Commit Graph

12408 Commits

Author SHA1 Message Date
Carlos
060b84a0fa Remove reference to clock_id on the function descriptiions 2018-11-18 10:43:28 -06:00
Carlos
55a9e2d697 Fix time.monotonic_ns docstring 2018-11-18 10:41:35 -06:00
Benjamin Shockley
05ff3feea5 Merge branch 'master' of https://github.com/bwshockley/circuitpython 2018-11-16 09:52:50 -06:00
Benjamin Shockley
acb9bd7618 Cleanup for Mini SAM M4 Only
Remvoed older files and cleaned up repository to reflect changes for Mini SAM M4.
2018-11-16 09:46:08 -06:00
Scott Shawcroft
0ea31ec15d
Merge pull request #1339 from dhalbert/3.x-frozen-swap
Merge 3.x .frozen and /lib swap on sys.path; update frozen libs
2018-11-15 12:52:54 -08:00
Dan Halbert
11de8fdca7 merge 3.x swap of /lib and .frozen; update frozen libs 2018-11-15 15:00:23 -05:00
Dan Halbert
3ace9ea9ea
Merge pull request #1333 from sommersoft/drivers_page
Update Core Drivers Page [3.x]
2018-11-14 23:40:56 -05:00
sommersoft
3f9b0f764d remove pca10056 from 3.x .travis.yml too 2018-11-14 22:18:32 -06:00
sommersoft
df663e42e9 remove pca10056 from 3.x travis builds 2018-11-14 22:02:19 -06:00
Dan Halbert
7e2a3bf52e
Merge pull request #1338 from tannewt/fix_nrf_internal_flash
Fix nrf internal flash
2018-11-14 22:54:23 -05:00
Scott Shawcroft
b67c53edfa
Factor out of external flash as well.
Plus some cleanup.

Fixes #1324
2018-11-14 18:30:47 -08:00
Kattni
9be61fec41
Merge pull request #1334 from sommersoft/new_master
Update Core Drivers Page [master]
2018-11-14 21:28:41 -05:00
Scott Shawcroft
87ddd64481
Factor out fake partition 2018-11-14 17:59:11 -08:00
Scott Shawcroft
47212ee31e
start debug 2018-11-14 17:21:48 -08:00
Dan Halbert
7b4521f039
Merge pull request #1336 from tannewt/tinyusb_samd_setup_fix
Update TinyUSB with SAMD fixes.
2018-11-14 18:25:45 -05:00
Scott Shawcroft
fd3178b2fe
Update TinyUSB with SAMD fixes.
Fixes #1327
2018-11-14 14:54:00 -08:00
sommersoft
e2bfe91700 i have no more words... 2018-11-13 23:37:27 -06:00
sommersoft
c669f7563c git diff review fail before push... 2018-11-13 23:32:50 -06:00
sommersoft
a7a66e9399 fix led-animation url; it has 2 valid urls... 2018-11-13 23:28:23 -06:00
sommersoft
b68517fbab replaced scrubbed drivers 2018-11-13 23:24:53 -06:00
sommersoft
028915d6f7 update /docs/drivers.rst page; 19 drivers added 2018-11-13 19:45:11 -06:00
sommersoft
a42515abbc update /docs/drivers.rst page; 19 drivers added 2018-11-13 19:41:40 -06:00
Noralf Trønnes
704d0c606b samd51: Support more uerrno errno values
Use the default MICROPY_PY_UERRNO_LIST to give libraries access to all the errno values.
2018-11-13 22:07:05 +01:00
Noralf Trønnes
c5aa2e9300 Support OSError attributes
This adds support for the OSError attributes : errno, strerror, filename and filename2.
CPython only sets errno if 2 arguments has been passed in. This has not been implemented here.

CPython OSError.args is capped at 2 items for backward compatibility reasons. This has not been
implemented here.

MICROPY_CPYTHON_COMPAT has to be enabled to get these attributes.

mp_common_errno_to_str() has been extended to check mp_errno_to_str() as well. This is done to ease
reuse for the strerror argument.
2018-11-13 22:04:44 +01:00
Dan Halbert
f190bb2c26
Merge pull request #1332 from tannewt/clear_trellis_neopixels
Clear Trellis NeoPixels on board reset.
2018-11-13 15:03:25 -05:00
Dan Halbert
c63376c5fa
Merge pull request #1331 from adafruit/tannewt-patch-4
Switch SAMD51 back to -Os
2018-11-13 14:35:32 -05:00
Scott Shawcroft
4ae4cc11e0
Clear Trellis NeoPixels on board reset.
This makes it easier to change code in cases where the pixels may
cause a brownout.
2018-11-13 11:27:18 -08:00
Scott Shawcroft
a3a690dc01
Add pragma to ensure neopixel_write is always -Os 2018-11-13 10:56:00 -08:00
Scott Shawcroft
ed9db80760
Switch SAMD51 back to -Os
It messes up neopixel timing otherwise.

Fixes #1326
2018-11-13 10:43:18 -08:00
Dan Halbert
50f5d27c43
Merge pull request #1325 from tannewt/fix_overruns
Fix output overflow and make help translatable
2018-11-09 23:35:22 -05:00
Scott Shawcroft
d012fd1553
Only write to usb when its around. 2018-11-09 17:06:55 -08:00
Scott Shawcroft
355abc835e
Fix output overflow and make help translatable 2018-11-09 16:41:08 -08:00
Dan Halbert
97bc95183d
Merge pull request #1321 from tannewt/tinyusb_samd
Move atmel-samd to tinyusb and support nRF flash.
2018-11-09 15:56:29 -05:00
Scott Shawcroft
43f7ca7985
Incorporate feedback:
* Clean up board defines.
* Add flush on eject and stay ejected.
* Swith back to NONE protocol for CDC.
2018-11-09 11:33:56 -08:00
Noralf Trønnes
28383afa11 shared-module/os: Fix os.mkdir('a/b')
This fixes commit a99f9427420d("'/' and '\' are also acceptable ends of the path now") which broke mkdir.
The problem is where the directory name is a single letter like this:
>>> os.mkdir('a')
>>> os.mkdir('a/b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 17] File exists
>>> os.mkdir('a/bb')
>>>

I wasn't smart enough to fix this in the oofatfs library, so I did it in the os shared module by
creating a path lookup function for the os methods that only deals with directories. I reverted
the library change introduced by the aforementioned commit.

This means that os.stat and os.rename can't handle trailing slashes. This is to avoid allowing
filenames with trailing slashes to pass through. In order to handle trailing slashes for these
it would be necessary to check if it really is a directory before stripping. I didn't do this
since the original issue was to make os.chdir tolerate trailing slashes.

There's an open MicroPython issue #2929 wrt. trailing slashes and mkdir.
2018-11-09 19:20:56 +01:00
Scott Shawcroft
688f0e388b
Update MKR1300 board definition too 2018-11-09 00:49:02 -08:00
Scott Shawcroft
be6b49c712
Add back internal flash header and slim it down. 2018-11-09 00:27:18 -08:00
Scott Shawcroft
168e23e466
Build refinement to handle warnings and quiet output 2018-11-09 00:11:43 -08:00
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.

Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
2018-11-08 17:25:30 -08:00
Scott Shawcroft
d08747d374
Merge pull request #1319 from dhalbert/origin/arturo182_bleio_pr_1289
Resubmit PR #1289, "WIP: bleio rewrite" by @arturo182
2018-11-07 12:03:46 -08:00
Dan Halbert
64d457dad9 bring bleio PR up to date 2018-11-07 14:12:22 -05:00
Scott Shawcroft
283e07254e
Merge pull request #1311 from caternuson/iss1303_wavefile
Add channels and bits_per_sample to audioio.WaveFile
2018-11-05 15:41:16 -08:00
caternuson
55cbeb6fc6 in doc string as well 2018-11-05 14:49:24 -08:00
caternuson
85fbdefe77 change channels to channel_count 2018-11-05 08:05:43 -08:00
Scott Shawcroft
f24c225664
Merge pull request #1312 from dhalbert/adafruit_nrfx
Use adafruit/nrfx fork of NordicSemiconductor/nrfx
2018-11-04 11:42:12 -08:00
Scott Shawcroft
adf9b2108f
Merge pull request #1317 from ATMakersBill/serial_bytes_avail_backport
Adding the serial_bytes_available() method to the 3.x branch
2018-11-04 11:40:15 -08:00
Scott Shawcroft
6aca9762c9
Merge pull request #1313 from siddacious/master
adding support for the CP32-M4
2018-11-04 11:26:14 -08:00
Limor "Ladyada" Fried
e1531854fd
Merge pull request #1318 from dhalbert/trellis-dotstar-pins
fix Trellis M4 DotStar pin assignments.
2018-11-04 07:55:19 -08:00
Dan Halbert
a15ed0b912 Fix Trellis M4 DotStar pin assignments. 2018-11-04 00:07:42 -04:00
ATMakersBill
bd4188a092 adding changes to mpconfigboard.mk to reduce memory usage on CPX per @danh 2018-11-03 14:42:27 -04:00