Tony DiCola
fffc6d1a17
atmel-samd: Add modules directory with frozen bytecode support (like ESP8266 port), and NeoPixel python wrapper module.
2016-10-14 11:39:42 +00:00
Tony DiCola
2ee52c4fde
atmel-samd: Minor fixes to SysTick handler, enable all interrupts function.
2016-10-13 18:36:00 +00:00
Tony DiCola
f77113c04f
atmel-samd: Add time.ticks_diff function from esp port.
2016-10-13 05:18:18 +00:00
Tony DiCola
903bc8d04e
atmel-samd: Implement time.ticks_ms function using SysTick timer, add global interrupt enable/disable functions.
2016-10-13 04:59:43 +00:00
Scott Shawcroft
011056af15
atmel-samd: Add support for SPI.
...
Also separate out the ASF config headers that are shared across all boards.
2016-10-11 15:48:43 -07:00
Scott Shawcroft
6986aa9aa2
atmel-samd: Change the FAT label so the board shows up as MICROPYTHON.
2016-10-10 12:17:11 -07:00
Scott Shawcroft
14f25337e7
atmel-samd: Fix FAT by giving the option of 4k sectors.
...
This causes the FATFS struct to have the ssize member because
sector size can be anywhere between 512 bytes and 4k bytes.
2016-10-10 12:16:02 -07:00
Scott Shawcroft
a6254f4344
atmel-samd: Add basic support for experimental Metro M0 with an external flash chip.
2016-10-07 15:09:01 -07:00
Scott Shawcroft
5d6c4109e9
atmel-samd: Change USB Manufacturer from Adafruit to Adafruit Industries.
2016-10-07 15:06:42 -07:00
Scott Shawcroft
284d3414e1
atmel-samd: Make UART REPL Arduino Zero specific. Most will use USB REPL.
2016-10-07 15:06:07 -07:00
Scott Shawcroft
67372b369e
atmel-samd: Fix A1 and A2 analog inputs.
...
Fixes #3 .
2016-10-07 15:01:26 -07:00
Scott Shawcroft
afedba5c2f
atmel-samd: Support with statements for I2C class.
...
Also add init/deinit if you want to init/deinit manually.
2016-10-05 18:44:55 -07:00
Scott Shawcroft
42f6ba04a2
atmel-samd: Update the Micro Trace Buffer to have better defines.
...
Same as README.md here: https://github.com/adafruit/gdb-micro-trace-buffer
2016-10-05 18:42:02 -07:00
Scott Shawcroft
90bf13efd5
atmel-samd: Correct USB PIDs.
...
Arduino and Adafruit convention is for user programs to have PIDs
starting with 8 and bootloaders starting with 0.
2016-10-05 12:55:48 -07:00
Tony DiCola
9c67605233
atmel-samd: Add low level neopixel_write module & function for WS281x/neopixel RGB LEDs.
2016-10-05 12:35:23 -07:00
Scott Shawcroft
7e08347d5c
atmel-samd: Support composite CDC and mass storage USB device.
...
Be careful to not use the flash file system while using mass storage
because both pieces of code attempting to change the fs can corrupt it.
2016-10-05 11:07:29 -07:00
Scott Shawcroft
1fa4c20c27
atmel-samd: Add Micro Trace Buffer support to the debug build.
...
The Micro Trace Buffer records the history of the pc and can be used
to debug hard faults even when the stack trace is useless.
2016-10-04 16:13:33 -07:00
Scott Shawcroft
98458c56cc
atmel-samd: Remove debug flashes and comments.
2016-10-04 16:01:14 -07:00
Scott Shawcroft
0a10d17c28
atmel-samd: Update bossac_osx with one that works.
...
Add info to the README on how to get into bootloader on feathers. Fixes #6 .
2016-10-03 12:57:06 -04:00
Scott Shawcroft
ed34c35509
atmel-samd21: Support loading mpy files.
2016-09-26 15:43:52 -07:00
Scott Shawcroft
b1be9f50ab
atmel-samd: Remove module name from struct.
2016-09-26 15:02:16 -07:00
Scott Shawcroft
eda33385e6
atmel-samd: Correct the stack_top pointer used in garbage collection.
...
Without this fix the gc will consider a large, random section of memory
and it may never finish.
2016-09-22 18:24:06 -07:00
Scott Shawcroft
ffdc3f81df
atmel-samd: Note a potential REPL ram savings.
2016-09-22 18:23:27 -07:00
Scott Shawcroft
bbeed82378
atmel-samd: Run boot.py and main.py at startup and soft reboot.
2016-09-22 13:56:26 -07:00
Scott Shawcroft
e56948650f
atmel-samd: Enable mem_info display.
2016-09-22 13:16:13 -07:00
Scott Shawcroft
0e1fd9a12c
atmel-samd: Support ampy get and fix USB dropping characters.
...
Fixes #2 .
2016-09-21 15:13:37 -07:00
Scott Shawcroft
dbbb2a5ca4
atmel-samd: Turn off normal errors but turn on source code line reporting.
2016-09-20 15:16:52 -07:00
Scott Shawcroft
005122e581
atmel-samd: Remove path specific to me.
2016-09-20 15:16:12 -07:00
Scott Shawcroft
0cae6b8e68
atmel-samd: Support const().
2016-09-19 17:30:28 -07:00
Scott Shawcroft
0f4f4c7544
atmel-samd: Add sys, fix import and increase the size of the heap.
2016-09-19 16:56:42 -07:00
Scott Shawcroft
7fd84e93f4
atmel-samd: Support raw repl and soft reset to support ampy.
...
Closes #1 . Also adds TX and RX led support on the Arduino Zero.
2016-09-15 17:01:19 -07:00
Scott Shawcroft
7d8929c470
atmel-samd: Add I2C support.
...
This commit also introduces a new shared-bindings directory which is used to store the common Python -> C binding code. By having a shared directory we can ensure that the Python API across ports is the same. Each port will have a corresponding common-hal directory which provides definitions for the C api used in the shared-bindings code. That way the compiler can enforce the C api.
To migrate to this new shared API create a common-hal directory within your port and change the Makefile to compile both the shared-bindings and common-hal files. See atmel-samd/Makefile SRC_BINDINGS for an example.
2016-09-13 11:46:22 -07:00
Scott Shawcroft
05368d2c58
Include the precompiled math library from ASF.
2016-09-07 14:35:40 -07:00
Scott Shawcroft
09be96a6aa
atmel/samd: Add filesystem support. 64k is stored in flash.
2016-09-02 17:00:30 -07:00
Scott Shawcroft
559434afca
atmel-samd: Support floats.
2016-08-31 13:37:43 -07:00
ladyada
594ff413f4
trifecta tools
2016-08-31 13:38:13 -04:00
Scott Shawcroft
1725710feb
atmel-samd: Rename the Feather M0 BLE to Feather M0 Bluefruit LE.
2016-08-31 09:56:06 -07:00
Scott Shawcroft
a6bc701917
atmel-samd: Re-enable -Os (size) optimizations.
2016-08-31 00:16:39 -07:00
Scott Shawcroft
eff137a5f5
atmel/samd: Support CTRL-C on USB. This won't escape native code but it will cause Python code to stop.
2016-08-31 00:11:56 -07:00
Scott Shawcroft
ccb309bd5c
atmel/samd: Add basic PWM support which only allows for changing the duty.
2016-08-30 13:10:52 -07:00
Scott Shawcroft
b883a15d82
atmel-samd: Rename module classes so they don't conflict with names from ASF.
2016-08-28 00:02:05 -07:00
Scott Shawcroft
16fc045509
atmel-samd: Add direct write access to the DAC output.
2016-08-27 15:04:34 -07:00
Scott Shawcroft
259ae8a39d
atmel-samd: Initial ADC support.
2016-08-26 17:01:38 -07:00
Scott Shawcroft
3cb4938c63
atmel-samd: Support Digital IO pins.
...
Also bumps up the heap size.
2016-08-24 17:38:08 -07:00
Scott Shawcroft
258804ab16
atmel-samd: Add limited time module support.
2016-08-24 13:17:55 -07:00
Scott Shawcroft
0c4f9b878a
Enable REPL over USB.
...
All of the code was there except the linker was failing to clear the bss section because I added too many .zeros. The should have only been the exported globals that start with _ like _szero = .. Fixing that and turn on the usb transmit fixed everything.
2016-08-24 00:14:11 -07:00
Scott Shawcroft
386ab580cd
Change the board information used in the header to be board specific.
2016-08-23 17:36:29 -07:00
Scott Shawcroft
9485634d41
Add support for REPL on Arduino Zero through EDBG via UART.
2016-08-23 16:47:53 -07:00
Scott Shawcroft
8f26d181c3
Blinking the LED works. Clocks should be set up correctly.
...
Everything works fine without USB being plugged in but faults (I think) when USB is plugged in. This is switched away from the USB code from the bootloader onto the USB code thats generated by Atmel Studio using the high level classes from ASF.
2016-08-22 23:53:11 -07:00
Scott Shawcroft
a5f6cb3c57
Compiled and linked SAMD21x18 version successfully.
2016-08-22 23:53:10 -07:00