aboutsummaryrefslogtreecommitdiff
path: root/atmel-samd
AgeCommit message (Collapse)Author
2017-09-06Ctrl-C was causing a soft-reset in REPL.Dan Halbert
Also allow an immediate ctrl-c in `input()`.
2017-09-06atmel-samd: Ensure MTB is off in case we ran a debug build beforeScott Shawcroft
a non-debug build.
2017-09-05atmel-samd: Enable 8-bit audio recording support even though it'll beScott Shawcroft
quiet. Also update the examples. Fixes #226
2017-09-01Fix issue #207, esp8266 file operations problems (#222)Dan Halbert
The frozen module `_boot.py` was not being loaded on restart because `pyexec_frozen_module()` did not know about the new `.frozen` pseudo-directory. Updated lower-level routine to look in the right place. Also made ".frozen" and related values be `#define`s.
2017-09-01atmel-samd: Remember SPI baudrate.Scott Shawcroft
This prevents the SERCOM from blipping the data line on each transaction and therefore fixes #219.
2017-08-31atmel-samd: Add SPI pin names to the Trinket. Fixes #213 (#217)Scott Shawcroft
2017-08-31Add ".frozen" to end of sys.path, so that internal frozen modules are ↵Dan Halbert
visible on boot.
2017-08-31Add microcontroller.cpu.temperature, for use as a simple sensor on minimal ↵Dan Halbert
boards. (#211) * Add microcontroller.cpu, the sole instance of microcontroller.Processor. microcontroller.cpu.frequency is the clock frequency, in Hz. microcontroller.cpu.temperature is the reading from the internal temperature sensor, in Celsius. None if not available. * Squeeze firmware size by using -finline-limit. Otherwise non-Express builds were slightly too big. * Update submodules. * Fix documentation glitches
2017-08-27Modernize module and class static dicts; update freetouchDan Halbert
2017-08-25Initial merge of micropython v1.9.2 into circuitpython 2.0.0 (in ↵Dan Halbert
development) master. cpx build compiles and loads and works in repl; test suite not run yet esp8266 not tested yet
2017-08-25atmel-samd: Introduce a nvm module for non-volatile byte-level memory ↵Scott Shawcroft
access. (#203) * atmel-samd: Introduce a nvm module for non-volatile byte-level memory access. This allows for persisting small configuration values even when the file system is read-only from CircuitPython. Fixes #160 * Review feedback: * Add tests. * Fix non-zero index. * Fix len()
2017-08-23Added ability to freeze multiple directories; freeze neopixel library in cpx ↵Dan Halbert
build (#199) Reworked frozen module support: clean up makefiles and handle multiple directories. Modules to freeze are included as git submodules. Add neopixel to circuitplayground express build. Fixes #56
2017-08-22Fix ADC input def for PB07. (#195)Scott Shawcroft
Fixes #194
2017-08-11Turn on Rosie CI testing to test new builds on real hardware.Scott Shawcroft
This introduces a skip_if module that can be used by tests to determine when they should be skipped due to the environment. Some tests have been split in order to have finer grained skip control.
2017-08-10shared-bindings/atmel-samd: Fix and improve trigger duration timing on ↵Scott Shawcroft
PulseIn.resume.
2017-08-07atmel-samd: Fix crash when fs mount fails and fix mounting internal flash. ↵Scott Shawcroft
It was broken by the update to 1.9.1. Related to #82
2017-08-05Allow max stack checking to be used with -flto build by determining topDan Halbert
of stack in a different way.
2017-08-05Increase heap size at the expense of stack size, from 16k to 16k+4k.Dan Halbert
2017-08-03atmel-samd: Add support for a second flash chip so either may be used.Scott Shawcroft
2017-08-03atmel-samd: Clear the error bit after the known buffer overflow and be ↵Scott Shawcroft
explicit about dst increase.
2017-07-28atmel-samd: Introduce audiobusio.PDMIn for recording audio from PDMScott Shawcroft
microphones.
2017-07-23Measure and report maximum stack usage. (#175)Dan Halbert
Add max stack usage tracking, visible via debug module ustack. Add separate cpp flag for enabling modules: MICROPY_DEBUG_MODULES
2017-07-16Fix problems that prevented use of internal frozen modules:Dan Halbert
1. Allow -Wlto-type-mismatch to be just a warning when building with frozen modules. 2. Fix extern decls that triggered -Wnested-externs when building with frozen modules. 3. Pass the correct value of -mlongint-impl to $(MPY_TOOL). New file mpconfigport.mk to do this.
2017-07-13atmel-samd: Fix potential buffer overflow in UART.c by recalculatingScott Shawcroft
the buffer end rather than naively adding 1. It could have needed to wrap around. Thanks @dhalbert for spotting the bug. Fixes #132
2017-07-13atmel-samd: Update README and add pinout tables that map MCU namesScott Shawcroft
to names in the board module and explain pin capabilities. Fixes #149
2017-07-12atmel-samd: Reboot to bootloader when a 1200 baud serial connection isScott Shawcroft
closed. This is how Arduino triggers the bootloader.
2017-07-12atmel-samd: Add Trinket Rev D support.Scott Shawcroft
2017-07-12atmel-samd: Add TX/RX and SCL/SDA pins names for Gemma M0.Scott Shawcroft
2017-07-12atmel-samd: Switch streams to non-blocking mode. Fixes #159.Scott Shawcroft
2017-07-12atmel-samd: Update Gemma M0 USB device name.Scott Shawcroft
2017-07-12atmel-samd: Update Gemma M0 for release revision.Scott Shawcroft
2017-07-12atmel-samd: Add IR_TX and IR_RX pin names for REMOTEOUT and REMOTEIN to the ↵Scott Shawcroft
CircuitPlayground Express pins to match the silkscreen.
2017-07-12Fix USB Busy error for kbd hid. Made kbd USB report descriptor beDan Halbert
COMPILER_WORD_ALIGNED as done in #118 for mouse. Added COMPILER_WORD_ALIGNED to other UDC_DESC_STORAGE declarations that might have the same issue in the future.
2017-07-12atmel-samd: Fix AudioOut buffer playback by supporting bytes_per_sample.Scott Shawcroft
Thanks to @ntoll for finding this bug!
2017-06-28shared-bindings: Introduce storage.remount() so you can set root asScott Shawcroft
writeable and prevent USB from editing it.
2017-06-28atmel-samd: Update sys.path with correct root path.Scott Shawcroft
2017-06-28atmel-samd: update boot output location for new mount point.Scott Shawcroft
2017-06-28Change vfs mount ordering such that the root is always last in theScott Shawcroft
linked list. Its also the only one statically allocated and made available over USB.
2017-06-28atmel-samd: Update sys.path to match that the internal/onboardScott Shawcroft
flash is now at / rather than /flash.
2017-06-27Introduce a random module that is a subset of CPython's random. ItScott Shawcroft
also initializes in the same way where it takes from a true random source when available through os.urandom(). After initializing, it produces deterministic results until the seed is set. This replaces urandom! Fixes #139.
2017-06-27Split uos module into os and storage.Scott Shawcroft
os is a subset of CPython's os. storage contains additional file system mounting functionality based on UNIX's mount management. Fixes #140
2017-06-26atmel-samd: Fix running off of the new VFS filesystem includingScott Shawcroft
an issue at startup leading to safe mode and mass storage support not working.
2017-06-20Merge tag 'v1.9.1'2.0.0-alpha.0Scott Shawcroft
Fixes for stmhal USB mass storage, lwIP bindings and VFS regressions This release provides an important fix for the USB mass storage device in the stmhal port by implementing the SCSI SYNCHRONIZE_CACHE command, which is now require by some Operating Systems. There are also fixes for the lwIP bindings to improve non-blocking sockets and error codes. The VFS has some regressions fixed including the ability to statvfs the root. All changes are listed below. py core: - modbuiltins: add core-provided version of input() function - objstr: catch case of negative "maxsplit" arg to str.rsplit() - persistentcode: allow to compile with complex numbers disabled - objstr: allow to compile with obj-repr D, and unicode disabled - modsys: allow to compile with obj-repr D and PY_ATTRTUPLE disabled - provide mp_decode_uint_skip() to help reduce stack usage - makeqstrdefs.py: make script run correctly with Python 2.6 - objstringio: if created from immutable object, follow copy on write policy extmod: - modlwip: connect: for non-blocking mode, return EINPROGRESS - modlwip: fix error codes for duplicate calls to connect() - modlwip: accept: fix error code for non-blocking mode - vfs: allow to statvfs the root directory - vfs: allow "buffering" and "encoding" args to VFS's open() - modframebuf: fix signed/unsigned comparison pendantic warning lib: - libm: use isfinite instead of finitef, for C99 compatibility - utils/interrupt_char: remove support for KBD_EXCEPTION disabled tests: - basics/string_rsplit: add tests for negative "maxsplit" argument - float: convert "sys.exit()" to "raise SystemExit" - float/builtin_float_minmax: PEP8 fixes - basics: convert "sys.exit()" to "raise SystemExit" - convert remaining "sys.exit()" to "raise SystemExit" unix port: - convert to use core-provided version of built-in import() - Makefile: replace references to make with $(MAKE) windows port: - convert to use core-provided version of built-in import() qemu-arm port: - Makefile: adjust object-file lists to get correct dependencies - enable micropython.mem_*() functions to allow more tests stmhal port: - boards: enable DAC for NUCLEO_F767ZI board - add support for NUCLEO_F446RE board - pass USB handler as parameter to allow more than one USB handler - usb: use local USB handler variable in Start-of-Frame handler - usb: make state for USB device private to top-level USB driver - usbdev: for MSC implement SCSI SYNCHRONIZE_CACHE command - convert from using stmhal's input() to core provided version cc3200 port: - convert from using stmhal's input() to core provided version teensy port: - convert from using stmhal's input() to core provided version esp8266 port: - Makefile: replace references to make with $(MAKE) - Makefile: add clean-modules target - convert from using stmhal's input() to core provided version zephyr port: - modusocket: getaddrinfo: Fix mp_obj_len() usage - define MICROPY_PY_SYS_PLATFORM (to "zephyr") - machine_pin: use native Zephyr types for Zephyr API calls docs: - machine.Pin: remove out_value() method - machine.Pin: add on() and off() methods - esp8266: consistently replace Pin.high/low methods with .on/off - esp8266/quickref: polish Pin.on()/off() examples - network: move confusingly-named cc3200 Server class to its reference - uos: deconditionalize, remove minor port-specific details - uos: move cc3200 port legacy VFS mounting functions to its ref doc - machine: sort machine classes in logical order, not alphabetically - network: first step to describe standard network class interface examples: - embedding: use core-provided KeyboardInterrupt object
2017-06-16atmel-samd: Introduce board reset mechanic used on CircuitPlayground1.0.0-rc.1Scott Shawcroft
Express to ensure the Neopixels are off after reloads.
2017-06-16atmel-samd: Add user initiated safe mode and rework board.c forScott Shawcroft
board specific functionality. Fixes #155
2017-06-16shared-bindings: Move enum-like classes out of DigitalInOut into digitalio.Scott Shawcroft
Also, rename Direction.IN to Direction.INPUT and Direction.OUT to Direction.OUTPUT. This simplifies using them. Prior to the nativeio split this would have led to clutter in the top-level namespace but having digitalio prevents this. Fixes #152
2017-06-12atmel-samd: Fix sharing TCCs by statically storing the current period.Scott Shawcroft
A previous fix improved the duty_cycle channel value computation by removing the reliance on the PER register which gave old values. It saved the period on the object but failed to set anything for reused timers. So, this breaks it out into a separate array that can be shared across all object regardless of whether it used a new or existing timer.
2017-06-12atmel-samd: Fix TCC1, its two channels and four wave outputs.Scott Shawcroft
Previously it was configured as four and four which configured the incorrect channels.
2017-06-09atmel-samd: Set up the tcc_instance when using an already active TCC.Scott Shawcroft
This fixes a hard lock that happens when using a second channel on an in use TCC. The lock occurred when setting the duty cycle on the channel because the hw address was not available to ASF. Thanks to @ladyada for finding the bug.
2017-06-09atmel-samd: Reset TCC channel in use array on reset.Scott Shawcroft
This fixes spurious "All timers in use" exceptions. Thanks to @ladyada for finding this issue.