Damien George
1e4caf0b1e
stm32/storage: Merge all misc block-dev funcs into a single ioctl func.
It makes it cleaner, and simpler to support multiple different block
devices. It also allows to easily extend a given block device with new
ioctl operations.
7 years ago
Damien George
a739b35a96
drivers/memory/spiflash: Change to use low-level SPI object not uPy one.
This patch alters the SPI-flash memory driver so that it uses the new
low-level C SPI protocol (from drivers/bus/spi.h) instead of the uPy SPI
protocol (from extmod/machine_spi.h). This allows the SPI-flash driver to
be used independently from the uPy runtime.
7 years ago
Damien George
58ebeca6a9
drivers/bus: Pull out software SPI implementation to dedicated driver.
This patch takes the software SPI implementation from extmod/machine_spi.c
and moves it to a dedicated file in drivers/bus/softspi.c. This allows the
SPI driver to be used independently of the uPy runtime, making it a more
general component.
7 years ago
iabdalkader
ad2a6e538c
stm32/system_stm32: Fix CONFIG_RCC_CR_2ND value to use bitwise or.
7 years ago
Damien George
9cef2b03a7
docs/reference/repl.rst: Fix some minor errors in the REPL tutorial.
7 years ago
Tom Collins
993f4345c0
stm32/usbd_conf.h: Add include of stdint.h to fix compilation issues.
7 years ago
Damien George
eb56efb434
stm32: Remove startup_stm32.S, now provided in boards/ for each MCU.
7 years ago
iabdalkader
66748aaf60
stm32/Makefile: Use separate startup file for each MCU series.
7 years ago
iabdalkader
88157715db
stm32/boards: Add startup_stm32l4.s for L4 series specific startup.
7 years ago
iabdalkader
e3b81f5712
stm32/boards: Add startup_stm32f4.s for F4 series specific startup.
7 years ago
iabdalkader
d84f1a90cc
stm32/boards: Add startup_stm32f7.s for F7 series specific startup.
7 years ago
iabdalkader
0f5cce7753
stm32/boards: Add startup_stm32h7.s for H7 series specific startup.
7 years ago
iabdalkader
bbf19bb64e
stm32/main: Enable D2 SRAM1/2/3 clocks on H7 MCUs.
7 years ago
iabdalkader
61d463ad07
stm32/mpconfigboard_common: Add STM32H7 common configuration.
7 years ago
iabdalkader
6d3f42f713
stm32/extint: Add EXTI support for H7 MCUs.
7 years ago
iabdalkader
711f817c2a
stm32/rtc: Add RTC support for H7 MCUs.
7 years ago
iabdalkader
0e51e4d139
stm32/dma: Add DMA support for H7 MCUs.
7 years ago
iabdalkader
fe29419c10
stm32/stm32_it: Add support for H7 MCUs.
7 years ago
iabdalkader
2858e0aef8
stm32/usbd_conf: Add USB support for H7 MCUs.
7 years ago
iabdalkader
d151adb791
stm32/modmachine: Support basic H7 MCU features.
7 years ago
iabdalkader
0989e0cdff
stm32/timer: Add Timer support for H7 MCUs.
7 years ago
iabdalkader
b982b95c18
stm32/uart: Add UART support for H7 MCUs.
7 years ago
iabdalkader
a863c60439
stm32/wdt: Add WDT support for H7 MCUs.
7 years ago
iabdalkader
3f86fbcb07
stm32/mphalport: Use GPIO BSRRL/BSRRH registers for H7 MCUs.
7 years ago
iabdalkader
2e93d4167d
stm32/system_stm32: Add H7 MCU system initialisation.
7 years ago
iabdalkader
81f8f5f163
stm32/flash: Add flash support for H7 MCUs.
7 years ago
iabdalkader
b8d09b9bef
stm32/Makefile: Add settings to support H7 MCUs.
7 years ago
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.
7 years ago
Damien George
8522874167
stm32/boards: Add stm32h743.ld linker script.
7 years ago
Damien George
e22ef277b8
lib/stm32lib: Update library to include support for STM32H7 MCUs.
Now points to the branch: work-F4-1.16.0+F7-1.7.0+H7-1.2.0+L4-1.8.1
7 years ago
Damien George
a3c721772e
stm32/boards: Add stm32h743_af.csv file describing H7 GPIO alt funcs.
7 years ago
Damien George
72adc381fb
tests/basics/builtin_enumerate: Add test for many pos args to enumerate.
7 years ago
Damien George
0b88a9f02e
unix/coverage: Allow coverage tests to pass with debugging disabled.
7 years ago
sec2
250b24fe36
stm32/boards/NUCLEO_F767ZI: Update pins list to include 3 extra pins.
7 years ago
sec2
bda3620616
stm32/boards/stm32f767_af.csv: Add ADC column to pin capability list.
7 years ago
Damien George
024edafea0
stm32/i2c: On F4 MCUs report the actual I2C SCL frequency.
7 years ago
Damien George
8359210e71
docs/library/uos: Document mount, umount, VfsFat and block devices.
7 years ago
Damien George
63b003d523
docs/library/uos: Create sections for distinct parts and document uname.
7 years ago
Damien George
a5fb699d87
docs/library/micropython: Describe optimisation levels for opt_level().
7 years ago
Damien George
6e09320b4c
docs/library/usocket: Make xref to uerrno explicitly a module reference.
7 years ago
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.
7 years ago
Damien George
d4470af239
esp32: Revert "esp32/machine_touchpad: Swap pins 32 and 33."
This reverts commit 5a82ba8e07
.
Touch sensor 8 and 9 have a mismatch in some of their registers and this is
now fixed in software by the ESP IDF.
7 years ago
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.
7 years ago
Damien George
0acf868bb7
tests/extmod/time_ms_us: Fix ticks tests, ticks_diff args are reversed.
7 years ago
Damien George
e3d11b6a6e
tests/extmod/time_ms_us: Add test for calling ticks_cpu().
This is just to test that the function exists and returns some kind of
valid value. Although this file is for testing ms/us functions, put the
ticks_cpu() test here so not to add a new test file.
7 years ago
Damien George
512f4a6ad1
tests/unix: Add coverage test for uio.resource_stream from frozen str.
7 years ago
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.
7 years ago
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.
7 years ago
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.
7 years ago
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)
7 years ago