Scott Shawcroft
974847ac8d
atmel-samd: Add a safe mode which detects hard faults and reboots without running user code again.
2017-05-15 15:29:04 -07:00
Scott Shawcroft
790c38e18c
atmel-samd: Rework boot, main and REPL order.
...
Boot will only run once now before USB is started. Its output goes to
boot_out.txt. After main and REPL will run with VM and hardware resets
between each.
2017-05-12 18:26:14 -07:00
Scott Shawcroft
7672bf7736
atmel-samd: Rename auto-reset to auto-reload to reduce confusion with physical reset buttons.
2017-05-12 16:45:38 -07:00
Scott Shawcroft
e0f931afd3
atmel-samd: Fix pin reset to ensure USB and SWD are not reset.
2017-05-12 16:09:13 -07:00
Scott Shawcroft
e1a6f6d584
atmel-samd: Rework SPI flash defines for clarity.
...
Also add sector protection support for the SAMD Xplained board.
2017-05-12 14:47:39 -07:00
Scott Shawcroft
7ea76e0889
atmel-samd: Pin reset improvements.
...
* Reset SWD lines to SWD rather than GPIO. This makes OpenOCD happier.
* Default speaker enable lines to False for CircuitPlayground to prevent
the speaker from buzzing when no sound is playing. Fixes #126
2017-05-12 13:14:01 -07:00
Scott Shawcroft
6984425f5d
atmel-samd: Correctly wait for the SPI DMA transaction to finish.
2017-05-12 13:13:50 -07:00
Scott Shawcroft
c138d0f025
Merge pull request #128 from ntoll/master
...
Rename LEFT_BUTTON -> BUTTON_A, RIGHT_BUTTON -> BUTTON_B.
2017-05-11 10:04:05 -07:00
Nicholas H.Tollervey
f3152571c6
Rename LEFT_BUTTON -> BUTTON_A, RIGHT_BUTTON -> BUTTON_B.
2017-05-11 14:48:17 +01:00
Scott Shawcroft
ef1a4847b3
shared-bindings: Correct PulseIn.resume to match docs. Fixes #125
2017-05-08 11:14:23 -07:00
Scott Shawcroft
c6d539ace3
atmel-samd: Fix sporadic "syntax errors"
...
The GC was deleting memory that was in use because its scan of the
stack missed the very top. Switching to _estack fixes this by relying
on the location from the linker.
Fixes #124
2017-05-05 12:04:20 -07:00
Scott Shawcroft
5ad426124b
atmel-samd: Move heap objects into MICROPY_PORT_ROOT_POINTERS so they don't get garbage collected while we are using them.
2017-05-04 11:57:51 -07:00
Scott Shawcroft
6512ccf32e
atmel-samd: Use DMA for user SPI.
...
Also replace use of PINMUX_DEFAULT with PINMUX_UNUSED to prevent any
accidental pin changes. This caused user SPI to break internal SPI
flash on the Feather M0 Express.
Fixes #100
2017-05-03 10:50:29 -07:00
Scott Shawcroft
24a5752f94
atmel-samd: Use DMA for SPI flash block transfers.
...
Fixes #99
2017-05-02 15:25:06 -07:00
Limor "Ladyada" Fried
a2c463deb0
Update AudioOut.c
...
fiiiiiiiiiiiiiiiiiiiiiiiiix
2017-05-01 23:32:37 -04:00
Scott Shawcroft
7187132d24
tools: Switch method of detecting travis so that it works OK on CIs without artifacts saved.
2017-05-01 15:12:52 -07:00
Scott Shawcroft
dd64379c0d
py: Fix version header generation when no tags are available.
2017-05-01 15:12:52 -07:00
Scott Shawcroft
58b9789d0c
atmel-samd: Introduce audio sample playback via audioio.AudioOut.
2017-05-01 13:10:03 -07:00
Scott Shawcroft
30b8091df0
atmel-samd: Clean up leftovers from QTouch.
2017-05-01 11:32:15 -07:00
Scott Shawcroft
4ad22144b0
atmel-samd: Rename metro M0 Express and add NEOPIXEL pin.
2017-05-01 11:29:51 -07:00
Scott Shawcroft
541d22e8d0
Update the README with new links.
2017-04-25 11:28:47 -07:00
Scott Shawcroft
ef44cec1f1
travis: turn off artifact debug.
2017-04-20 17:02:59 -07:00
Scott Shawcroft
9a5ff7766e
travis: working_dir doesn't work as expected. Try and fix it.
2017-04-20 16:48:29 -07:00
Scott Shawcroft
bc152da3a6
atmel-samd: Remove debug prints from TouchIn
2017-04-20 16:48:04 -07:00
Scott Shawcroft
4c77f84034
travis: artifact upload tweaks.
2017-04-20 16:18:30 -07:00
Scott Shawcroft
f66fcbfa4f
travis: Don't try and build ESP8266
2017-04-20 15:14:37 -07:00
Scott Shawcroft
bac3a7dcc1
travis: Fix typo
2017-04-20 14:12:14 -07:00
Scott Shawcroft
98667b1af8
Turn on build saving and uf2 creation.
2017-04-20 14:04:06 -07:00
Scott Shawcroft
a9d25bfae4
atmel-samd: Update CircuitPlayground Express pins for Rev G.
2017-04-20 11:25:57 -07:00
Scott Shawcroft
939c0045db
Switch to a shared piece of code to compute start and length of a
...
buffer from start, end and length. The old code miscomputed length
leading to writing and reading from memory past the end of the buffer.
Consolidating the code should make it easier to get right everywhere.
2017-04-20 11:24:05 -07:00
Scott Shawcroft
076ff82c46
atmel-samd: Switch to https for freetouch submodule.
2017-04-18 12:34:03 -07:00
Scott Shawcroft
b97edd4465
atmel-samd: Turn on framebuf for Express boards because they have space.
2017-04-18 09:44:04 -07:00
Scott Shawcroft
8d0d5defc7
atmel-samd: Use LTO for all builds to get 5000 bytes back on express boards.
2017-04-18 09:44:04 -07:00
Scott Shawcroft
ca176535a9
esp8266: Fix busio.SPI to take both MOSI and MISO.
2017-04-18 09:44:04 -07:00
Scott Shawcroft
67ec52d7a9
atmel-samd: Swap out pulseio for touchio based on FreeTouch.
2017-04-18 09:44:04 -07:00
Scott Shawcroft
225fdb0307
Merge pull request #118 from dhalbert/master
...
atmel-samd: HID report descriptor for mouse had to be COMPILER_WORD_ALIGNED
2017-04-15 11:05:48 -07:00
Dan Halbert
2fe6b74e90
atmel-samd: HID report descriptor for mouse had to be COMPILER_WORD_ALIGNED.
2017-04-15 10:18:56 -04:00
Scott Shawcroft
b653c3c8fc
Correct PulseOut example code
2017-04-13 17:52:13 -07:00
Scott Shawcroft
f37ce1c595
atmel-samd: Turn off PulseIn interrupts on reset. Can hardfault otherwise.
2017-04-13 17:50:06 -07:00
Scott Shawcroft
f0e24bd812
atmel-samd: Account for pending ticks in PulseIn. Fixes #116 .
2017-04-13 14:47:34 -07:00
Scott Shawcroft
d1b15cf1a3
esp8266: Don't reset TX and RX lines. The pullup is required for
...
the Adafruit Huzzah Breakout because it has a diode to protect
against 5v logic which effectively blocks 1s and relies on the
pull up to produce them.
2017-04-13 14:15:06 -07:00
Scott Shawcroft
4a4f29b8f9
atmel-samd: Rework status LED implementation
...
* Track status pin use by user code separately so it can take over the pins and then give them back.
* Switch to hardware SPI for APA102 on Gemma and Trinket.
* Merge microcontroller/types.h into microcontroller/Pin.h to better match approach going forwards.
2017-04-12 15:24:50 -07:00
Scott Shawcroft
8505de1ced
atmel-samd: rename cplay_m0_flash to circuitplayground_express and update for new rev (F).
2017-04-11 17:59:02 -07:00
Scott Shawcroft
45dfaa835f
atmel-samd: Reset PulseIn correctly on soft reset.
2017-04-11 16:56:06 -07:00
Scott Shawcroft
1e8fc15a41
atmel-samd: Fix PulseIn duration math to handle case when current us time is after the last one but more than a ms has passed.
2017-04-11 16:55:42 -07:00
Scott Shawcroft
f28f8ba568
Split up nativeio.
...
This was done to allow greatly granularity when deciding what functionality
is built into each board's build. For example, this way pulseio can be
omitted to allow for something else such as touchio.
2017-04-10 13:32:19 -07:00
Scott Shawcroft
4810722064
esp8266: Change nativeio.I2C to use bitbangio under the hood rather than throwing an error.
2017-03-28 18:54:16 +01:00
Scott Shawcroft
3afa09b2fe
atmel-samd: Update Feather M0 Express USB pid.
2017-03-27 20:30:02 +01:00
Scott Shawcroft
f5caf86870
atmel-samd: Add message for when auto reset is off. Fixes #112
2017-03-27 20:12:30 +01:00
Scott Shawcroft
be1ed7aae4
Change to official Feather M0 Express branding.
2017-03-27 19:45:44 +01:00