summaryrefslogtreecommitdiff
path: root/atmel-samd/modmachine.c
AgeCommit message (Collapse)Author
2016-11-21This introduces an alternative hardware API called nativeio structured ↵Scott Shawcroft
around different functions that are typically accelerated by native hardware. Its not meant to reflect the structure of the hardware. Docs are here: http://tannewt-micropython.readthedocs.io/en/microcontroller/ It differs from upstream's machine in the following ways: * Python API is identical across ports due to code structure. (Lives in shared-bindings) * Focuses on abstracting common functionality (AnalogIn) and not representing structure (ADC). * Documentation lives with code making it easy to ensure they match. * Pin is split into references (board.D13 and microcontroller.pin.PA17) and functionality (DigitalInOut). * All nativeio classes claim underlying hardware resources when inited on construction, support Context Managers (aka with statements) and have deinit methods which release the claimed hardware. * All constructors take pin references rather than peripheral ids. Its up to the implementation to find hardware or throw and exception.
2016-10-21atmel-samd: Rework mass storage interaction with underlying blockScott Shawcroft
storage to use micropython's VFS interface. This makes mass storage work with any VFS implementation rather than a single one.
2016-10-11atmel-samd: Add support for SPI.Scott Shawcroft
Also separate out the ASF config headers that are shared across all boards.
2016-09-26atmel-samd: Remove module name from struct.Scott Shawcroft
2016-09-13atmel-samd: Add I2C support.Scott Shawcroft
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-02atmel/samd: Add filesystem support. 64k is stored in flash.v1.8.3-62-g09be96aScott Shawcroft
2016-08-30atmel/samd: Add basic PWM support which only allows for changing the duty.Scott Shawcroft
2016-08-28atmel-samd: Rename module classes so they don't conflict with names from ASF.Scott Shawcroft
2016-08-27atmel-samd: Add direct write access to the DAC output.Scott Shawcroft
2016-08-26atmel-samd: Initial ADC support.Scott Shawcroft
2016-08-24atmel-samd: Support Digital IO pins.Scott Shawcroft
Also bumps up the heap size.