Damien George
b88e51d718
esp32/Makefile: Put OBJ and LIB rule additions in gen_espidf_lib_rule.
5 years ago
Jim Mussared
331c224e07
esp32/Makefile: Fix path expansion for ESPIDF_DRIVER_O.
It was using subst to s/.c/.o/ which changed .c anywhere in the path.
5 years ago
stijn
9da46a98cb
windows/mpconfigport.h: Don't define restrict/inline/alignof for C++.
The C++ standard forbids redefining keywords, like inline and alignof, so
guard these definitions to avoid that, allowing to include the MicroPython
headers by C++ code.
5 years ago
Damien George
a29334761d
esp32: Add support for hardware I2C.
5 years ago
Damien George
0c12adca46
stm32/boards/USBDONGLE_WB55: Add definition files for new board.
5 years ago
Damien George
d2a8fb747f
stm32/boards/NUCLEO_WB55: Add definition files for new board.
5 years ago
Damien George
9849567a06
stm32/boards: Add MCU support files for STM32WB55.
5 years ago
Damien George
59b7166d87
stm32: Add initial support for STM32WBxx MCUs.
This new series of MCUs is similar to the L4 series with an additional
Cortex-M0 coprocessor. The firmware for the wireless stack must be managed
separately and MicroPython does not currently interface to it. Supported
features so far include: RTC, UART, USB, internal flash filesystem.
5 years ago
Damien George
d42392b9a7
stm32/make-stmconst.py: Allow more variation in parens and int-suffix L.
5 years ago
Damien George
02b2ad4fbd
stm32/boards/STM32F769DISC: Fix length of FLASH_APP section.
Fixes issue #4924 .
5 years ago
Damien George
baea43bba7
stm32/boards/B_L072Z_LRWAN1: Enable USB VCP support.
5 years ago
Damien George
64aebca155
stm32/Makefile: Allow a board to disable float support.
By using "MICROPY_FLOAT_IMPL = none" in its mpconfigboard.mk file.
5 years ago
Damien George
102d9911e9
stm32/mphalport: Fix GPIO clock enable for L0 MCUs.
5 years ago
Damien George
4096fa397b
stm32/powerctrlboot: Increase SYSCLK to 32MHz for L0 MCUs.
5 years ago
Damien George
4c1ad1f691
stm32: Add support for USB on L0 MCUs.
5 years ago
Damien George
788e7f50f2
stm32/usbd_cdc_interface: Make CDC TX/RX buffer sizes configurable.
5 years ago
Damien George
f302f784e9
stm32/usb: Add config options to disable USB MSC and/or HID.
The new configurations MICROPY_HW_USB_MSC and MICROPY_HW_USB_HID can be
used by a board to enabled or disable MSC and/or HID. They are both
enabled by default.
5 years ago
Damien George
fd49fcb229
stm32/gccollect: Always use MP_STATE_THREAD(stack_top) to get stack top.
In a non-thread build, using &_ram_end as the top-of-stack is no longer
correct because the stack is not always at the very top end of RAM. See
eg 04c7cdb668
and
3786592097
. The correct value to use is
&_estack, which is the value stored in MP_STATE_THREAD(stack_top), and
using the same code for both thread and non-thread builds makes the code
cleaner.
5 years ago
Paul m. p. P
a1c870e9f4
javascript: Enable support for frozen bytecode via FROZEN_MPY_DIR.
5 years ago
Paul m. p. P
42d30c5baf
unix/unix_mphal: Include time.h for CLOCK_MONOTONIC.
5 years ago
Damien George
a17b901a9e
stm32/boards/B_L072Z_LRWAN1: Add definition files for new board.
5 years ago
Damien George
278e9bffe9
stm32/mboot: Update dependencies to enable parallel build with -j.
5 years ago
Damien George
342539bdcc
stm32/mboot: Use STARTUP_FILE from stm32lib.
5 years ago
Damien George
5a81d2d6b8
stm32/mboot: Remove use of BSRRL/H for H7 MCUs due to stm32lib update.
5 years ago
Damien George
c8f19f1371
stm32/mboot: Make _estack an array to avoid compiler warnings.
The compiler can warn about out-of-bounds array access if _estack is just a
single uint8_t.
5 years ago
Damien George
d43dd886a5
stm32/boards/NUCLEO_F413ZH: Remove STARTUP_FILE, it's defined globally.
The Makefile now defines this variable to the correct value (but it can
still be overridden by a board if necessary).
5 years ago
Chris Mason
c24d81119c
stm32/boards/NUCLEO_L452RE: Add definition files for new board.
5 years ago
Chris Mason
64181b5f76
stm32: Add support for STM32L452 MCUs.
6 years ago
Damien George
eea61a09c4
stm32/boards/NUCLEO_F446RE: Enable DAC.
5 years ago
Damien George
5fd62c8992
stm32: Remove SystemInit funcs, use stm32lib versions instead.
stm32lib now provides system_stm32XXxx.c source files for all MCU variants,
which includes SystemInit and prescaler tables. Since these are quite
standard and don't need to be changed, switch to use them instead of custom
variants, making the start-up code cleaner.
The SystemInit code in stm32lib was checked and is equivalent to what is
removed from the stm32 port in this commit.
5 years ago
Damien George
c15dc2c4b9
stm32/powerctrl: Move F0's SystemClock_Config to powerctrlboot.c.
5 years ago
Damien George
21ecf8be5f
stm32/powerctrl: Move L0's SystemClock_Config to powerctrlboot.c file.
5 years ago
Damien George
7c2e83324b
stm32/boards/NUCLEO_L073RZ: Add definition files for new board.
5 years ago
Damien George
6053e450b8
stm32/mpconfigport.h: Make "framebuf" module configurable by a board.
5 years ago
Damien George
9c096c190c
stm32/boards: Add MCU support files for STM32L072.
5 years ago
Damien George
23d9c6a0fd
stm32: Add initial support for STM32L0xx MCUs.
5 years ago
Eric Poulsen
fa5c0b819c
esp32/network_ppp: Add ppp_set_usepeerdns(pcb, 1) when init'ing iface.
Without this you often don't get any DNS server from your network provider.
Additionally, setting your own DNS _does not work_ without this option set
(which could be a bug in the PPP stack).
5 years ago
Damien George
c1a8c7fc09
stm32/boards/PYBD_SFx: Automatically turn on EN_3V3 when powering SD/MMC
5 years ago
Damien George
7f33f158b9
stm32/sdcard: Add hook for a board to power on SD/MMC.
5 years ago
Damien George
1cd2bc066d
stm32/boards/PYBD_SFx: Configure EN_3V3 pin as output on boot.
But leave it turned off, the application must turn it on if/when needed.
5 years ago
Damien George
afb2e9dd94
stm32/modmachine: Disable IRQs before entering bootloader.
To make sure that the code that enters the bootloader is not interrupted.
5 years ago
Damien George
04da8864e5
stm32/lwip_inc: Define LWIP_NO_CTYPE_H=1 to use lwIP ctype funcs.
5 years ago
Damien George
592f68449d
stm32/mpu: Include MPU functions when ETH is enabled.
5 years ago
Damien George
7cf8285ac8
stm32/boards: Remove startup_stm32*.s files now they are in stm32lib.
5 years ago
Damien George
6b6403ce76
stm32/Makefile: Use startup_stm32*.s file from stm32lib.
This means that each MCU now gets a unique IRQ table, eg a specific one for
STM32F405, STM32F411, etc rather than just STM32F4xx.
5 years ago
Damien George
241e577753
stm32/Makefile: Remove Wno-attributes for ll_usb HAL file.
This HAL file is now patched so it doesn't have these warnings.
5 years ago
Damien George
73e8b7e0e4
stm32: Update components to work with new H7xx HAL.
5 years ago
Damien George
3581deec81
stm32/boards/PYBD_SF2: Put mbedtls library code in external QSPI flash.
mbedtls is large and self contained so is a good candidate to be in
external XIP flash, to keep enough spare ROM in internal flash.
5 years ago
Damien George
f88cb8a514
stm32/modmachine: Make RTC class available in machine module.
This is a start to make a more consistent machine.RTC class across ports.
The stm32 pyb.RTC class at least has the datetime() method which behaves
the same as esp8266 and esp32, and with this patch the ntptime.py script
now works with stm32.
5 years ago
Damien George
ef00048fed
extmod/modwebrepl: Add config option to put filebuf[512] on stack/bss.
Since the esp8266 has a small stack this buffer is kept in the BSS.
5 years ago