Scott Shawcroft
6370b5225a
py: Prevent crash with LTO.
...
The protected single function call saves stack values and LTO
breaks the expectations of nlr_push and pop.
2017-11-01 14:32:06 -07:00
Dan Halbert
dcede575ff
Merge pull request #394 from tannewt/neopixel_delay_fix
...
atmel-samd: Fix the neopixel delay method so it handles overflow better.
2017-11-01 15:31:46 -04:00
Scott Shawcroft
a8dae22ae9
atmel-samd: Fix the neopixel delay method so it handles overflow better.
2017-11-01 11:56:54 -07:00
Dan Halbert
3b17980822
Merge pull request #391 from tannewt/longint_usb_fix
...
Enable LONGINT on M4 + usb fix
2017-11-01 14:19:17 -04:00
Scott Shawcroft
cfbb74ffe7
atmel-samd: Reorder mpconfigport.mk and mpconfigboard.mk includes.
...
This allows mpconfigport.mk to set this conditionally based on
$(CHIP_FAMILY).
2017-11-01 11:01:34 -07:00
Dan Halbert
0076a3c868
Merge pull request #393 from tannewt/m4_neopixel
...
Now with more blinky!!!
2017-11-01 08:17:41 -04:00
Scott Shawcroft
f4c8256345
atmel-samd: Add TX/RX led support for Metro M4.
2017-10-31 22:39:16 -07:00
Scott Shawcroft
54f2b698ce
atmel-samd: remove infinite loop if USB MSC read fails.
2017-10-31 22:38:52 -07:00
Scott Shawcroft
3177e10e9e
atmel-samd: Add samd21 neopixel support.
...
Also, fix and enable the status neopixel.
Fixes #264
2017-10-31 22:38:09 -07:00
Dan Halbert
dc3f13d13f
Merge pull request #392 from tannewt/slice_assign
...
atmel-samd: Turn on slice assignment in all builds.
2017-10-31 21:59:17 -04:00
Tony DiCola
d023879bea
atmel-samd: Update and enable neopixel_write for ASF4, tested on SAMD21 only.
2017-10-31 16:06:36 -07:00
Scott Shawcroft
15dcc7011c
atmel-samd: Turn on slice assignment in all builds.
...
This costs 376 bytes on a Trinket M0 leaving 33412 bytes free.
Fixes #193
2017-10-31 15:57:56 -07:00
Scott Shawcroft
9db321d505
atmel-samd: Enable longints for M4 builds.
...
Fixes #110
2017-10-31 15:46:42 -07:00
Scott Shawcroft
268bf6f99e
atmel-samd: Fix non-DEBUG USB cdc.
...
I believe the issue was that LTO exacerbates a problem where a CDC
read is initiated but fails and leaves pending_read true
preventing further reads.
2017-10-31 15:43:45 -07:00
Radomir Dopieralski
8c7571a75d
Create the build directory before running gen_usb_descriptor
...
Otherwise it fails to create the file in that directory.
2017-10-31 13:35:22 -07:00
Scott Shawcroft
8c1f5427bc
atmel-samd: Add empty line for RST docs
...
Right now calcsize is being grouped with the doc above: https://circuitpython.readthedocs.io/en/latest/shared-bindings/struct/__init__.html
2017-10-30 18:57:28 -07:00
Dan Halbert
123c2262e9
Merge pull request #385 from tannewt/usb_write_protection
...
Usb write protection + fixes
2017-10-30 21:36:23 -04:00
Scott Shawcroft
4aeef100f6
atmel-samd: More USB polish
...
* Introduce a python script to generate the USB descriptor instead of
a bunch of C macros. In the future, we can use this dynamically in
CircuitPython.
* Add support for detecting read-only mass storage mounts.
Fixes #377
2017-10-30 18:29:20 -07:00
mrmcwethy
1893669833
calcsize90 should be documented now
2017-10-27 23:25:00 -07:00
Dan Halbert
949a8f5043
Merge pull request #382 from dhalbert/master
...
Read serial input as a background task so we can check for the interrupt character.
2017-10-27 17:37:57 -04:00
Dan Halbert
8e45dc041f
Read serial input as a background task so we can check for the interrupt character.
2017-10-27 17:32:13 -04:00
Dan Halbert
10b3a90189
Check INTERNAL_LIBM make flag in a safer way.
2017-10-27 17:32:13 -04:00
Dan Halbert
7f88ba3b26
Revert "Allow main.py to be interrupted by ctrl-C" ( #381 )
...
* Revert "Read serial input as a background task so we can check for the interrupt character."
This reverts commit 046092e8a29822ae5d761fbaac1a3af181b1297c.
* Revert "Check INTERNAL_LIBM make flag in a safer way."
This reverts commit 2b80add22f5d22544d8362c19d4332a489325ac9.
2017-10-27 17:32:13 -04:00
Dan Halbert
2487226dff
Read serial input as a background task so we can check for the interrupt character.
2017-10-27 17:32:13 -04:00
Dan Halbert
f0a12d9620
Check INTERNAL_LIBM make flag in a safer way.
2017-10-27 17:32:13 -04:00
Dan Halbert
0e83f8c752
Revert "Allow main.py to be interrupted by ctrl-C" ( #381 )
...
* Revert "Read serial input as a background task so we can check for the interrupt character."
This reverts commit 046092e8a29822ae5d761fbaac1a3af181b1297c.
* Revert "Check INTERNAL_LIBM make flag in a safer way."
This reverts commit 2b80add22f5d22544d8362c19d4332a489325ac9.
2017-10-27 17:14:57 -04:00
Dan Halbert
046092e8a2
Read serial input as a background task so we can check for the interrupt character.
2017-10-27 17:11:09 -04:00
Dan Halbert
2b80add22f
Check INTERNAL_LIBM make flag in a safer way.
2017-10-27 17:11:09 -04:00
Dan Halbert
e7e8e0a95d
Sync with https://github.com/adafruit/asf4/pull/3
2017-10-26 09:56:02 -07:00
Dan Halbert
4232a0a196
Sync with https://github.com/adafruit/asf4/pull/3
2017-10-26 09:30:59 -04:00
Scott Shawcroft
ee18b5cbab
Don't use ERR_ABORTED. ( #375 )
2017-10-26 09:08:29 -04:00
Scott Shawcroft
d613776f0d
atmel-samd: Add support for ERR_ABORTED to indicate medium not present.
2017-10-25 21:02:01 -04:00
Scott Shawcroft
ab7da9353a
atmel-samd: Stop hanging on usb write when a terminal isn't connected by checking DTR status.
2017-10-25 21:02:01 -04:00
Carter Nelson
db918da5f0
updated I2C example ( #371 )
2017-10-25 17:32:00 -07:00
Dan Halbert
ca1a9b9a10
Merge pull request #369 from tannewt/nrf2_merge
...
Nrf52 merge
2017-10-25 20:16:50 -04:00
Scott Shawcroft
b31d673207
tests: Capture stderr output as well.
2017-10-25 11:43:02 -07:00
Scott Shawcroft
5a59a10bf2
Add log folding to Travis outout.
2017-10-25 11:01:43 -07:00
Scott Shawcroft
d2ddf36c1d
shared-bindings: Use unary_op type.
2017-10-25 10:52:03 -07:00
Limor "Ladyada" Fried
c966976591
update light/lux and eCO2 + TVOC
2017-10-25 12:32:39 -04:00
Scott Shawcroft
00766e43a0
Merge commit 'f57be61' into nrf2_merge
2017-10-24 23:26:41 -07:00
Scott Shawcroft
60e9b8f70a
tools: Correct ports directory name
2017-10-24 23:06:02 -07:00
Scott Shawcroft
d665334e94
esp8266: Fix includes
2017-10-24 23:05:20 -07:00
Scott Shawcroft
2c26f35429
Re-add atmel submodules.
2017-10-24 22:39:08 -07:00
Scott Shawcroft
73c15dcf8b
Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_merge
...
This is prep for merging in the NRF5 pull request.
2017-10-24 22:31:16 -07:00
Scott Shawcroft
d43564f854
atmel-samd: Use our own CDC output cache because the internal ( #366 )
...
atmel-samd: Use our own CDC output cache because the internal
cache is only used when the memory isn't aligned even if we're
going to change the memory immediately after.
2017-10-24 12:57:03 -07:00
Scott Shawcroft
ee1092fcaf
atmel-samd: Update metro m4 USB PID. ( #365 )
2017-10-24 14:47:43 -04:00
Dan Halbert
6df99b5d0e
Merge 2.1.0 changes into master.
2017-10-23 15:26:36 -07:00
Radomir Dopieralski
1c97b7f4df
Gracefully reset the gamepad module
...
If a soft reset happens while the gamepad module is scanning for button
presses, there is a moment when the pins get de-initialized, but the
gamepad module is still trying to read them, which ends in a crash.
We can avoid it by disabling scanning on reset.
(cherry picked from commit 470a23d4c9345785bbaa830fdc036b4e982496c6)
Conflicts:
atmel-samd/main.c
2017-10-22 20:54:10 -07:00
Scott Shawcroft
a1be272b1e
atmel-samd: Correct the UF2 bootloader offset when converting the bin to uf2.
2017-10-22 12:39:01 -07:00
mrmcwethy
bb008cdbc9
First attempt to move py/modmath.c to shared-bindings/math
2017-10-21 10:34:25 -07:00