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
Scott Shawcroft
b62d8faaec
Merge pull request #735 from jepler/generator-stack-overflow-circuitpython
...
py/objgenerator: Check stack before resuming a generator
2018-04-01 22:38:19 -07:00
Jeff Epler
a909007fef
py/objgenerator: Check stack before resuming a generator
...
This turns a hard crash in a recursive generator into
a 'maximum recursion depth exceeded' exception.
2018-04-01 16:40:15 -05:00
Jeff Epler
0041df0c6b
py/objstr: Don't crash when end < start
...
.. and add testcases for the same.
(crash found by afl-fuzz)
2018-03-31 22:17:11 -05:00
Radomir Dopieralski
280374fa63
Respect pin's pull in gamepad
...
While it is traditional to have buttons on pins that are pulled up, and
have the button connect them to the ground, some CircuitPython boards
(notably the CPX) have the button pins pulled low and the button
connects them to VCC.
This patch makes the gamepad only change the pin's pull if it wasn't
already set when passed to the constructor, and also makes it consider
a button pressed when its value is the opposite of its pull.
2018-03-31 21:13:02 +02:00
Radomir Dopieralski
6ca4fd82ed
Add a type check to the gamepad module
...
Make sure that all the arguments passed are indeed DigitalInOut.
This avoids crashes when the users pass something else.
2018-03-31 20:41:16 +02:00
Scott Shawcroft
3215b85568
Merge pull request #728 from jepler/double-splat-crash-circuitpython
...
py/bc: Turn assertion error into exception
2018-03-31 09:57:25 -07:00
Scott Shawcroft
d65ea992bf
Merge pull request #729 from jepler/tests-parallel-circuitpython
...
Optionally parallelize the testsuite
2018-03-31 09:55:21 -07:00
Jeff Epler
f8e0baa0b7
appveyor: parallelize tests
2018-03-31 10:43:57 -05:00
Jeff Epler
b59964f707
ports/unix/Makefile: parallelize tests
2018-03-31 10:42:33 -05:00
Jeff Epler
0dfc3be903
run_tests: EXTERNAL_TARGETS can't run in parallel
2018-03-31 10:40:37 -05:00
Jeff Epler
c1cd259529
travis.yml: best guesses about when to run tests in parallel
...
Notably, "--via-mpy" spews failures when threaded, possibly indicating
that micropython is not creating mpy files in threadsafe manner.
2018-03-31 10:39:55 -05:00
Jeff Epler
c2b8529698
run-tests: automatically parallelism based on CPU (thread) count
2018-03-31 10:38:54 -05:00
Jeff Epler
a3309ebb80
run-tests: optionally parallelize tests
...
When requested via 'run-tests -j', more than one test will be run
at a time. On my system, (i5-3320m with 4 threads / 2 cores), this
reduces elapsed time by over 50% when testing pots/unix/micropython.
Elapsed time, seconds, best of 3 runs with each -j value:
before patchset: 18.1
-j1: 18.1
-j2: 11.3 (-37%)
-j4: 8.7 (-52%)
-j6: 8.4 (-54%)
In all cases the final output is identical:
651 tests performed (18932 individual testcases)
651 tests passed
23 tests skipped: buffered_writer...
though the individual pass/fail messages can be different/interleaved.
2018-03-31 10:38:54 -05:00
Jeff Epler
b9dd6a5bb4
run-tests: sort skipped and failed tests
...
.. otherwise the line which reports tests skipped and failed can come in
different orders when -j values above 1 are used.
2018-03-31 10:38:54 -05:00
Jeff Epler
a73f005e00
run_tests: make access to shared variables thread safe
2018-03-31 10:38:52 -05:00
Jeff Epler
4767d23db3
run_tests: factor run_one_test to function
2018-03-31 10:38:04 -05:00
Jeff Epler
853f7ac4d0
py/bc: Turn assertion error into exception
2018-03-31 08:44:29 -05:00
Dan Halbert
c00b25ec45
WIP: HID works with MSC interfaces removed
2018-03-30 23:31:28 -04:00
Dan Halbert
df91878d2e
WIP: works with just keyboard but not complex report descriptor
2018-03-30 23:24:00 -04:00
Scott Shawcroft
1489450693
Merge pull request #727 from sommersoft/build_doc
...
Added git submodule Step To SAMD README
2018-03-30 15:59:39 -07:00