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
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