iabdalkader
6d3f42f713
stm32/extint: Add EXTI support for H7 MCUs.
2018-03-09 15:12:34 +11:00
iabdalkader
711f817c2a
stm32/rtc: Add RTC support for H7 MCUs.
2018-03-09 15:12:29 +11:00
iabdalkader
0e51e4d139
stm32/dma: Add DMA support for H7 MCUs.
2018-03-09 15:12:19 +11:00
iabdalkader
fe29419c10
stm32/stm32_it: Add support for H7 MCUs.
2018-03-09 15:12:01 +11:00
iabdalkader
2858e0aef8
stm32/usbd_conf: Add USB support for H7 MCUs.
2018-03-09 15:11:22 +11:00
iabdalkader
d151adb791
stm32/modmachine: Support basic H7 MCU features.
2018-03-09 15:10:53 +11:00
iabdalkader
0989e0cdff
stm32/timer: Add Timer support for H7 MCUs.
2018-03-09 15:10:46 +11:00
iabdalkader
b982b95c18
stm32/uart: Add UART support for H7 MCUs.
2018-03-09 15:10:39 +11:00
iabdalkader
a863c60439
stm32/wdt: Add WDT support for H7 MCUs.
2018-03-09 15:10:31 +11:00
iabdalkader
3f86fbcb07
stm32/mphalport: Use GPIO BSRRL/BSRRH registers for H7 MCUs.
2018-03-09 15:10:10 +11:00
iabdalkader
2e93d4167d
stm32/system_stm32: Add H7 MCU system initialisation.
2018-03-09 15:09:56 +11:00
iabdalkader
81f8f5f163
stm32/flash: Add flash support for H7 MCUs.
2018-03-09 15:09:49 +11:00
iabdalkader
b8d09b9bef
stm32/Makefile: Add settings to support H7 MCUs.
2018-03-09 15:09:29 +11:00
iabdalkader
fabfacf3d7
stm32/boards: Add new NUCLEO_H743ZI board configuration files.
...
USB serial and mass storage works, and the REPL is also available via the
UART through the on-board ST-LINK.
2018-03-09 15:08:11 +11:00
Damien George
8522874167
stm32/boards: Add stm32h743.ld linker script.
2018-03-09 15:08:11 +11:00
Damien George
a3c721772e
stm32/boards: Add stm32h743_af.csv file describing H7 GPIO alt funcs.
2018-03-09 14:06:34 +11:00
sommersoft
c1c3a79ec4
atmel-samd: changed Status to Runtime; instituted runtime singleton
2018-03-09 02:19:51 +00:00
Damien George
0b88a9f02e
unix/coverage: Allow coverage tests to pass with debugging disabled.
2018-03-08 12:49:31 +11:00
sec2
250b24fe36
stm32/boards/NUCLEO_F767ZI: Update pins list to include 3 extra pins.
2018-03-07 18:53:02 +11:00
sec2
bda3620616
stm32/boards/stm32f767_af.csv: Add ADC column to pin capability list.
2018-03-07 18:40:06 +11:00
Damien George
024edafea0
stm32/i2c: On F4 MCUs report the actual I2C SCL frequency.
2018-03-07 14:59:03 +11:00
Lee Seong Per
478ce8f7e3
esp32/modnetwork: Implement status('stations') to list STAs in AP mode.
...
The method returns a list of tuples representing the connected stations.
The first element of the tuple is the MAC address of the station.
2018-03-05 17:59:19 +11:00
Damien George
d4470af239
esp32: Revert "esp32/machine_touchpad: Swap pins 32 and 33."
...
This reverts commit 5a82ba8e073f847985595a46fb2f0c12f4389bbc.
Touch sensor 8 and 9 have a mismatch in some of their registers and this is
now fixed in software by the ESP IDF.
2018-03-05 14:06:45 +11:00
Olivier Ortigues
b691aa0aae
esp8266/esppwm: Always start timer to avoid glitch from full to nonfull.
...
The PWM at full value was not considered as an "active" channel so if no
other channel was used the timer used to mange PWM was not started. So
when another duty value was set the PWM timer restarted and there was a
visible glitch when driving LEDs. Such a glitch can be seen with the
following code (assuming active-low LED on pin 0):
p = machine.PWM(machine.Pin(0))
p.duty(1023) # full width, LED is off
p.duty(1022) # LED flashes brightly then goes dim
This patch fixes the glitch.
2018-03-05 11:39:44 +11:00
Damien George
adda38cf76
stm32/qspi: Add hardware QSPI driver, with memory-map capability.
...
It supports the abstract QSPI protocol defined in drivers/bus/qspi.h.
2018-03-03 00:17:08 +11:00
Damien George
8bd0a51ca9
stm32/spibdev: Convert to use multiple block read/write interface.
...
The spiflash driver now supports read/write of multiple blocks at a time.
2018-03-03 00:13:15 +11:00
Damien George
861080aa3d
stm32/storage: Add option for bdev to supply readblock/writeblocks.
...
If the underlying block device supports it, it's more efficient to
read/write multiple blocks at once.
2018-03-02 23:57:53 +11:00
Damien George
0210383da5
stm32/spibdev: Add option to configure SPI block dev to use QSPI flash.
...
To use QSPI (in software QSPI mode) the configuration needed is:
#define MICROPY_HW_SPIFLASH_SIZE_BITS (n * 1024 * 1024)
#define MICROPY_HW_SPIFLASH_CS (pin_x1)
#define MICROPY_HW_SPIFLASH_SCK (pin_x2)
#define MICROPY_HW_SPIFLASH_IO0 (pin_x3)
#define MICROPY_HW_SPIFLASH_IO1 (pin_x4)
#define MICROPY_HW_SPIFLASH_IO2 (pin_x5)
#define MICROPY_HW_SPIFLASH_IO3 (pin_x6)
2018-03-02 23:55:45 +11:00
Damien George
a0dfc38641
stm32/spibdev: Update to work with new spiflash driver.
2018-03-02 23:55:40 +11:00
Damien George
c607b58efe
tests: Move heap-realloc-while-locked test from C to Python.
...
This test for calling gc_realloc() while the GC is locked can be done in
pure Python, so better to do it that way since it can then be tested on
more ports.
2018-03-02 10:59:09 +11:00
Scott Shawcroft
01aceaae50
Support all boards and remove erase and page sizes because they never change.
2018-03-01 12:45:12 -08:00
Damien George
c3f1b22338
tests/unix: Add coverage tests for various GC calls.
2018-03-01 22:49:15 +11:00
Scott Shawcroft
2ab923862b
Structify flash device definitions.
2018-02-28 19:15:54 -08:00
Dan Halbert
568c04e6af
Merge pull request #650 from tannewt/merge_2x
...
Merge in commits from 2.x branch.
2018-02-27 22:03:52 -05:00
Scott Shawcroft
bf05183158
Merge remote-tracking branch 'adafruit/2.x' into merge_2x
2018-02-27 15:24:16 -08:00
Dan Halbert
5c24023240
use CONF_GCLK_DAC_SRC and refactor a bit
2018-02-27 17:21:03 -05:00
Dan Halbert
4895a9d1d8
Use safe clock freqs for AnalogOut; use DAC REFRESH on SAMD51.
2018-02-27 15:44:27 -05:00
Bryan Siepert
e42209a6b2
fixes timer number assumptions for samd51s for issue #646
2018-02-27 00:42:40 -08:00
Damien George
d3cac18d49
tests/unix: Add coverage test for VM executing invalid bytecode.
2018-02-27 16:18:11 +11:00
Scott Shawcroft
586be2eb22
Merge pull request #643 from dhalbert/3.0_esp8266_uart1
...
Add .baudrate support to ESP8266.
2018-02-26 17:40:13 -08:00
Dan Halbert
cc7acfd491
consistently brand Itsy Bitsy M0 as 'Express'
2018-02-26 17:37:03 -05:00
Damien George
c5fe610ba1
esp8266/modnetwork: Implement WLAN.status('rssi') for STA interface.
...
This will return the RSSI of the AP that the STA is connected to.
2018-02-26 16:41:13 +11:00
Damien George
01dcd5bb71
esp8266/uart: Allow to compile with event-driven REPL.
2018-02-26 16:10:27 +11:00
Damien George
62be14d77c
tests/unix: Add coverage tests for mpz_set_from_float, mpz_mul_inpl.
...
These new tests cover cases that can't be reached from Python and get
coverage of py/mpz.c to 100%.
These "unreachable from Python" pieces of code could be removed but they
form an integral part of the mpz C API and may be useful for non-Python
usage of mpz.
2018-02-25 23:43:16 +11:00
Dan Halbert
907b4417c0
Add .baudrate support to ESP8266.
...
busio.UART on ESP8266 provides a TX-only UART on GPIO2.
Fixed some bugs in the implementation.
2018-02-24 15:45:15 -05:00
Dan Halbert
957a82b592
add board.RX and .TX pins to metro_m4_express_revb
2018-02-23 09:54:39 -05:00
Damien George
989fc16162
stm32: Move MCU-specific cfg from mphalport.h to mpconfigboard_common.h.
...
It's cleaner to have all the MCU-specific configuration in one location,
not least to help with adding support for a new MCU series.
2018-02-23 16:54:07 +11:00
Damien George
ea05b400df
stm32/flash: Use FLASH_TYPEPROGRAM_WORD to support newer HALs.
2018-02-23 16:30:47 +11:00
Damien George
e6220618ce
stm32: Use "GEN" for describing files generated in the build.
...
Instead of "Create", to match the build output from the py/ core.
2018-02-23 16:27:30 +11:00
Kattni
7399a1a5c7
Merge pull request #634 from dhalbert/3.0_UART
...
Implement UART for 3.0 + related fixes.
2018-02-21 23:07:27 -05:00