Scott Shawcroft
82526b803c
Add Travis CI badge.
2016-10-24 12:33:59 -07:00
Scott Shawcroft
58f37fc013
Build mpy-cross first because other builds depend on it.
2016-10-24 12:12:22 -07:00
Scott Shawcroft
710bf34fbd
Add atmel-samd boards to travis build.
2016-10-24 11:59:50 -07:00
Scott Shawcroft
f5ca66805b
atmel-samd: Tweak DAC logic for clarity. Thanks @bcr for the suggestion.
2016-10-21 17:08:14 -07:00
Scott Shawcroft
30dc24191f
Merge pull request #31 from tannewt/external_flash
...
Add support for external flash chips and improve mass storage.
2016-10-21 16:38:57 -07:00
Scott Shawcroft
b2834c30a6
atmel-samd: Support reading from the flash cache.
2016-10-21 16:04:18 -07:00
Scott Shawcroft
98c8f2f6a3
atmel-samd: Update the FatFs sector cache on USB mass storage write
...
to the same sector.
This fixes #20 , the issue where a listdir or import won't work
without a reset when it was run before the file was copied.
2016-10-21 15:44:10 -07:00
Scott Shawcroft
b8ef783052
extmod: Fix getting sector size when the max and min sizes are the
...
same.
Also switch the max size back to 512 for atmel-samd to save ram.
2016-10-21 15:44:10 -07:00
Scott Shawcroft
9eb86e8015
Add support for USB writeable, MicroPython read-only volumes.
...
This prevents file system corruption due to two systems mutating
it at once.
2016-10-21 15:44:09 -07:00
Scott Shawcroft
eb62d03e33
atmel-samd: Add flash write activity LED.
2016-10-21 15:44:09 -07:00
Scott Shawcroft
8b1526e95e
atmel-samd: Add a heap based cache for writing to flash.
...
The code will fallback to the flash scratch space when the GC
cannot allocate us enough memory.
2016-10-21 15:44:09 -07:00
Scott Shawcroft
bb1822faea
atmel-samd: Support external flash on the Metro M0 w/Flash.
...
This uses a scratch flash sector to save data before writing a full sector.
2016-10-21 15:44:09 -07:00
Scott Shawcroft
46f6f9f899
atmel-samd: Start USB at the end so storage is initialized.
2016-10-21 15:44:09 -07:00
Scott Shawcroft
aacb1adcd1
atmel-samd: Add linker file for bootloaderless board with external flash.
2016-10-21 15:44:08 -07:00
Scott Shawcroft
853e5fc652
atmel-samd: Ensure at least 2k is left for the stack.
2016-10-21 15:43:24 -07:00
Scott Shawcroft
306c921ed1
atmel-samd: Rework mass storage interaction with underlying block
...
storage to use micropython's VFS interface.
This makes mass storage work with any VFS implementation rather
than a single one.
2016-10-21 15:36:59 -07:00
Scott Shawcroft
6fe8c7b32c
Merge pull request #26 from adafruit/ssd1306_hardware_i2c
...
Support SSD1306 with hardware I2C interface. Closes #15
2016-10-20 16:17:02 -07:00
Tony DiCola
a23cc5aa14
drivers: Remove SSD1306 driver, it lives in separate micropython-adafruit-ssd1306 repo now.
2016-10-20 23:13:22 +00:00
Tony DiCola
f539312af3
atmel-samd: Enable framebuffer for SSD1306 and other displays.
2016-10-20 23:10:28 +00:00
Tony DiCola
00a44fa36c
Merge remote-tracking branch 'micropython/master'
...
Conflicts:
README.md - Kept Adafruit README.md intact.
py/emitglue.c - Added xtensa architecture as an OR of the define.
zephyr/README.md - Fixed spelling mistake.
2016-10-20 23:01:13 +00:00
Paul Sokolovsky
3967ca7390
stmhal/Makefile: Use standard rules for frozen module generation.
...
As defined in py/py.mk.
2016-10-21 01:27:17 +03:00
Paul Sokolovsky
b440307b4a
py/py.mk: Automatically add frozen.c to source list if FROZEN_DIR is defined.
...
Now frozen modules generation handled fully by py.mk and available for reuse
by any port.
2016-10-21 01:08:43 +03:00
Scott Shawcroft
1f13f870b8
Merge pull request #25 from adafruit/drivers-more
...
Update drivers.rst
2016-10-20 10:16:59 -07:00
Radomir Dopieralski
0901c145ba
Update drivers.rst
2016-10-20 18:58:46 +02:00
Scott Shawcroft
2cc1b25eef
Merge pull request #24 from adafruit/urandom
...
atmel-samd: Enable full urandom module from extmod. Closes #17 .
2016-10-20 09:20:18 -07:00
Paul Sokolovsky
3f251efb9b
esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.
...
Concurrent WebREPL connections were never supported, now actually check
for this.
2016-10-20 16:50:38 +03:00
Tony DiCola
5333f5f987
atmel-samd: Enable full urandom module from extmod.
2016-10-20 06:41:21 +00:00
Scott Shawcroft
0cb0bd0f25
atmel-samd: More updates to the docs including the in-code docs.
2016-10-19 16:49:35 -07:00
Scott Shawcroft
7ebc9a4511
Switch away from sphinx.parsers which isn't available in sphinx 1.3.5 on Read The Docs.
2016-10-19 10:53:37 -07:00
Scott Shawcroft
4c9fcd6d21
Support markdown.
2016-10-19 10:53:37 -07:00
Scott Shawcroft
d28b456b31
Add title to contributing doc.
2016-10-19 10:53:37 -07:00
Scott Shawcroft
6fcb54d2ca
Merge pull request #18 from turbinenreiter/master
...
Add Adalogger board definition in preparation of adding SD card support.
2016-10-19 09:23:44 -07:00
Sebastian Plamauer
9b1170a65d
[atmel-samd] add adalogger board definitions
2016-10-19 10:02:01 +02:00
Alex March
84679e0c06
extmod/vfs_fat_file: Check fatfs f_sync() and f_close() returns for errors.
2016-10-19 15:57:07 +11:00
Damien George
17ba6ef5fa
cc3200: Fix thread mutex's so threading works with interrupts.
...
Running Python code on a hard interrupt is incompatible with having a GIL,
because most of the time the GIL will be held by the user thread when the
interrupt arrives. Hard interrupts mean that we should process them right
away and hence can't wait until the GIL is released.
The problem with the current code is that a hard interrupt will try to
exit/enter the GIL while it is still held by the user thread, hence leading
to a deadlock.
This patch works around such a problem by just making GIL exit/enter a
no-op when in an interrupt context, or when interrupts are disabled.
See issue #2406 .
2016-10-19 14:24:56 +11:00
Scott Shawcroft
46e7f8e4fb
Documentation rework to unify the docs together rather than having them
...
on a per port basis.
Also enables generating docs from inline RST in C code. Simply omits all
lines except those that start with //|. Indentation after "//| " will be
preserved.
2016-10-18 17:42:47 -07:00
Paul Sokolovsky
204222653e
esp8266/main: Mark nlr_jump_fail() as MP_FASTCODE.
...
It's probably not strictly needed so far, but serves as an example of
MP_FASTCODE use and may be helpful in the future.
2016-10-19 00:21:14 +03:00
Paul Sokolovsky
9514d847fe
esp8266: Add MP_FASTCODE modifier to put a function to iRAM.
...
It can be used in the following manner:
void MP_FASTCODE(foo)(int arg) { ... }
2016-10-19 00:20:10 +03:00
Paul Sokolovsky
462748de0c
esp8266/esp8266.ld: Move main.o to iROM.
2016-10-19 00:12:54 +03:00
Paul Sokolovsky
e7e0d91be8
esp8266/esp8266.ld: Move modmachine.o to iROM.
2016-10-19 00:04:30 +03:00
Paul Sokolovsky
6566e3f6a8
esp8266/esp8266.ld: Move help.o to iROM.
2016-10-19 00:01:14 +03:00
Paul Sokolovsky
20d0271863
esp8266/esp_init_data: Auto-initialize system params with vendor SDK 2.0.0.
...
SDK 2.0.0 goes into boot loop if a firmware is programmed over erased flash,
causing problems with user experience. This change implements behavior
similar to older SDKs': if clean flash is detected, default system
parameters are used.
2016-10-18 15:18:07 +03:00
Damien George
542f05d228
teensy: Update to provide new mp_hal_pin_XXX functions following stmhal.
2016-10-18 15:34:17 +11:00
Damien George
b4cc68e4a4
stmhal/led: Refactor LED to use mp_hal_pin_output() init function.
...
As part of this patch the MICROPY_HW_LED_OTYPE setting is removed because
it is now unused (all boards anyway had this as OUTPUT_PP).
2016-10-18 14:43:05 +11:00
Damien George
d49d81b167
stmhal: Refactor pin usage to use mp_hal_pin API.
2016-10-18 14:34:08 +11:00
Damien George
cd9b14bb11
stmhal/modutime: Refactor to use extmod's version of ticks_cpu.
2016-10-18 14:34:08 +11:00
Damien George
5c93d0b916
cc3200: Enable loading of precompiled .mpy files.
...
Adds 1072 bytes to the code size.
2016-10-18 10:17:54 +11:00
Damien George
628799cd36
cc3200/mods/pybspi: Allow "write" arg of read/readinto to be positional.
...
To conform with Hardware API.
2016-10-18 10:16:46 +11:00
Damien George
f12047f66d
docs/machine.SPI: Improve descriptions of xfer methods.
...
In particular remove the "*" because not all ports support keyword
arguments.
2016-10-18 10:14:26 +11:00
Damien George
50ddaafa6a
cc3200: Use mp_raise_XXX helper functions to reduce code size.
...
Reduces code size by 632 bytes.
2016-10-18 09:53:43 +11:00