Commit Graph

10332 Commits

Author SHA1 Message Date
Scott Shawcroft 8dcfeb6240 Fix Makefile 2018-04-12 18:17:46 -07:00
Scott Shawcroft 28642ab10d Add audio output support!
This evolves the API from 2.x (and breaks it). Playback devices are now
separate from the samples themselves. This allows for greater playback
flexibility. Two sample sources are audioio.RawSample and audioio.WaveFile.
They can both be mono or stereo. They can be output to audioio.AudioOut or
audiobusio.I2SOut.

Internally, the dma tracking has changed from a TC counting block transfers
to an interrupt generated by the block event sent to the EVSYS. This reduces
the overhead of each DMA transfer so multiple can occure without using up TCs.

Fixes #652. Fixes #522. Huge progress on #263
2018-04-12 16:35:13 -07:00
Dan Halbert e311d17905
Merge pull request #755 from tannewt/itsy_m4
Add initial ItsyBitsy M4 support
2018-04-12 14:42:05 -04:00
Scott Shawcroft 2a26dac2bc Add initial ItsyBitsy M4 support 2018-04-12 11:16:52 -07:00
Scott Shawcroft f02cbeabab
Merge pull request #747 from dhalbert/reformat
add storage.erase_filesystem() to erase and reformat CIRCUITPY
2018-04-10 10:26:07 -07:00
Dan Halbert eaa9923a8f force_create rename got lost due to editing error 2018-04-10 12:24:27 -04:00
Dan Halbert 1b12c42477 Merge remote-tracking branch 'adafruit/master' into reformat 2018-04-10 12:17:00 -04:00
Dan Halbert 80fb61ea44 remove more unneeded includes 2018-04-10 12:16:46 -04:00
Dan Halbert 04b2c8be5a remove unnecessary includes in esp8266 common-hal storage code 2018-04-10 12:13:21 -04:00
Dan Halbert 5f98953ed8 esp8266 and nrf: raise NotImplementedError 2018-04-10 12:08:41 -04:00
Jeff Epler 1e9a27177c esp8266: Disable "strict aliasing" in compiler like in atmel-samd
This caused a fatal compiler diagnostic after #750.  This compiler
flag is already specified in the atmel-samd builds, so it makes
sense to do it here for the same reasons.
2018-04-09 22:23:39 -04:00
Scott Shawcroft fd70383aa0 Fix rom qstr pool length. 2018-04-09 22:23:39 -04:00
Scott Shawcroft 3b511e503a Prevent a heap pointer from living on the stack longer than we need. 2018-04-09 22:23:39 -04:00
Jeff Epler eb7d0e317a Create genhdr/ directory in time 2018-04-09 22:23:39 -04:00
Dan Halbert a0cd94c184
Merge pull request #752 from jepler/esp8266-strict-aliasing
esp8266: Disable "strict aliasing" in compiler like in atmel-samd
2018-04-09 22:21:21 -04:00
Jeff Epler c5d2a0da04 esp8266: Disable "strict aliasing" in compiler like in atmel-samd
This caused a fatal compiler diagnostic after #750.  This compiler
flag is already specified in the atmel-samd builds, so it makes
sense to do it here for the same reasons.
2018-04-09 21:17:26 -05:00
Dan Halbert 3883a9fb7a
Merge pull request #749 from tannewt/analyze_heap_dump
Fix rom qstr pool length.
2018-04-09 20:35:34 -04:00
Dan Halbert d203d1c1cb
Merge pull request #750 from tannewt/parse_tree_memory
Prevent a heap pointer from living on the stack longer than we need.
2018-04-09 20:34:40 -04:00
Scott Shawcroft 7dd1d6afcc Prevent a heap pointer from living on the stack longer than we need. 2018-04-09 16:02:32 -07:00
Scott Shawcroft 619b0ec164 Fix rom qstr pool length. 2018-04-09 15:59:52 -07:00
Dan Halbert e7b8b13186
Merge pull request #748 from jepler/genhdr-output-directory
Create genhdr/ directory in time
2018-04-09 14:48:21 -04:00
Jeff Epler 88bbe425db Create genhdr/ directory in time 2018-04-09 13:31:44 -05:00
Dan Halbert aa8c262d14 add storage.erase_filesystem() to erase and reformat CIRCUITPY 2018-04-09 12:52:42 -04:00
Scott Shawcroft 4e053cea0d
Merge pull request #628 from sommersoft/super_status
Added Function To Check the Serial Connection From CircuitPython Layer
2018-04-08 22:06:09 -07:00
Scott Shawcroft 93e09e7ee5
Merge pull request #738 from dhalbert/3.0_hid
3.0 hid
2018-04-08 22:02:23 -07:00
Dan Halbert 1e87a785b9 Move CDC Comm back to Interface 0 for compat with Win7 drivers. 2018-04-08 15:59:19 -04:00
Dan Halbert e7305ce15f update usb_descriptor again 2018-04-08 10:15:47 -04:00
Dan Halbert 726d5e52a3 Merge branch 'master' into 3.0_hid 2018-04-08 09:52:29 -04:00
Dan Halbert 32048cdeeb tools/usb_descriptor updates 2018-04-08 09:51:45 -04:00
Dan Halbert a159b85340 Reorder composite device interfaces; fix report length bug 2018-04-08 09:33:02 -04:00
Scott Shawcroft 9672f3891e
Merge pull request #742 from jepler/esp8266-sdk-fixes
Adapt to incompatible changes in the ESP8266 SDK
2018-04-07 10:01:33 -07:00
Jeff Epler d69ef6bfd3 esp8266/etshal: delete incorrect function prototypes
these are function prototypes not used in circuitpython.  The
declarations began to conflict with ones in the upstream SDK
at some point, so delete them.
2018-04-06 20:37:48 -05:00
Paul Sokolovsky 4982a3ad32 esp8266/esp8266_common.ld: Put .text of more libs into .irom0.text .
Recent vendor SDKs ship libs with code in .text section, which previously
was going into .irom0.text. Adjust the linker script to route these
sections back to iROM (follows upstream change).
2018-04-06 20:37:41 -05:00
sommersoft cc644032ea Merge branch 'super_status' of https://github.com/sommersoft/circuitpython into super_status 2018-04-06 01:58:29 +00:00
sommersoft d1974e0038 supervisor/Runtime: updated documentation for 'no disconnect' 2018-04-06 01:56:51 +00:00
Scott Shawcroft 8f3bf5faf6
Merge pull request #741 from jepler/samd-reset-modes
Samd reset modes
2018-04-05 10:39:51 -07:00
Jeff Epler 92853e611d RunMode: Fix repr(RunMode.BOOTLOADER) 2018-04-05 08:16:53 -05:00
Jeff Epler fe6f5aaa70 atmel-samd: reset: reset() was always entering bootloader mode
.. set the dbl_tap word to a different special value unless
RUNMODE_BOOTLOADER was selected
2018-04-05 08:16:53 -05:00
Scott Shawcroft 5939497218
Merge pull request #740 from jepler/reboot-bootloader
atmel-samd: Fix rebooting to bootloader
2018-04-03 22:35:39 -07:00
Jeff Epler 5eb9f9d060 atmel-samd: Fix rebooting to bootloader
Commit efbf08266b moved _estack in order to ensure 8-byte alignment
of the stack, but the address of _bootloader_dbl_tap must remain
right at the end of SRAM.

I verified by reading the source that the 4-byte-aligned address is
used for all samd21 / samd51 boards in
adafruit/circuitpython@efbf08266b.  However, I only tested on
trinket_m0.

Closes: #739
2018-04-03 21:40:10 -05:00
Dan Halbert beb6ad2e40 Add USB HID support, including Consumer Control 2018-04-02 21:37:44 -04:00
Dan Halbert 435e894fa0 Merge branch 'master' into 3.0_hid 2018-04-02 19:19:43 -04:00
Dan Halbert d005b12326 WIP: seems to be done 2018-04-02 19:08:18 -04:00
Scott Shawcroft 98c7d70fe4
Merge pull request #736 from jepler/testsuite-serial-travis
travis.yml: Running tests in parallel on travis is slower
2018-04-02 10:32:19 -07:00
Scott Shawcroft b0184362a2
Merge pull request #730 from jepler/remove-appveyor-circuitpython
ports/windows: Remove appveyor.yml
2018-04-02 10:30:03 -07:00
Jeff Epler c0ef427a98 travis.yml: Running tests in parallel on travis is slower
.. so explicitly set them to run serially with -j1.

(as discussed on #729)
2018-04-02 08:06:49 -05:00
Jeff Epler c592b0e0f8 ports/windows: Remove appveyor.yml
.. this allows developers who want to work with both micropython and
circuitpython to enable appveyor on their fork, but not get errors
when pushing circuitpython changes.

In the appveyor configuration for your fork, simply enable the
checkbox "Skip branches without appveyor.yml".
2018-04-02 07:59:12 -05:00
Scott Shawcroft fc9340ca17
Merge pull request #733 from pewpew-game/gamepad-pull
Respect pin's pull in gamepad
2018-04-01 22:58:25 -07:00
Scott Shawcroft 630352c25d
Merge pull request #732 from pewpew-game/gamepad-typecheck
Add a type check to the gamepad module
2018-04-01 22:53:54 -07:00
Scott Shawcroft e4ae1e3d59
Merge pull request #734 from jepler/str-find-backwards-circuitpython
py/objstr: Don't crash when end < start
2018-04-01 22:41:59 -07:00