Damien George
6b12934fec
stmhal: Fix stack pointer initialisation for F411 and F429 boards.
The stack pointer should start pointing 1 byte past the top of the end of
RAM.
8 years ago
Damien George
f8a022bc11
stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem.
8 years ago
Pavol Rusnak
bdcca42390
stmhal: Fix examples in openocd configs to include addresses.
8 years ago
sergiuszm
ea426dd9ef
stmhal: Add support for STM32 Nucleo64 L476RG.
8 years ago
Damien George
e202b6f586
stmhal/sdcard: Use mp_hal_pin_config function instead of HAL_GPIO_Init.
There is a minor functional change with this patch, that the GPIO are now
configured in fast mode, whereas they were in high speed mode before. But
the SDIO should still work because SD CK frequency is at most 25MHz.
8 years ago
Damien George
0f408bc1ff
stmhal: Move PY_SYS_PLATFORM config from board to general config file.
It can be overridden by a board if needed.
8 years ago
Rami Ali
8001918a89
stmhal: Add STM32F769DISC board files.
With minor changes to adc.c and storage.c to support the F769.
8 years ago
Rami Ali
e9fbc555fc
stmhal: Add NUCLEO_F767ZI board, with openocd config for stm32f7.
8 years ago
Rami Ali
db5a4e8f3c
stmhal/boards/STM32F7DISC: Define LSE_STARTUP_TIMEOUT.
So it compiles with the latest F7 hal.
8 years ago
Rami Ali
27a503f632
stmhal: Refactor UART configuration to use pin objects.
This follows the pattern of other peripherals (I2C, SPI) to specify the
pins using pin objects instead of a pair of GPIO port and pin number. It
makes it easier to customise the UART pins for a particular board.
8 years ago
Nicholas Graumann
0d75b0d962
stmhal: Add address parameters to openocd config files.
Also make l4 config the default for STM32L476DISC board.
8 years ago
Nicholas Graumann
50a2966913
stmhal: Add OpenOCD configuration for STM32L4.
8 years ago
Krzysztof Blazewicz
7928b3e347
stmhal/boards: configure all F4 boards to work with new HAL
changes include:
* use single GPIO.BSRR instead of BSRRH and BSRRL
* change HSE_STARTUP_TIMEOUT to 100 ms
* define LSE_STARTUP_TIMEOUT to 5 s
8 years ago
Damien George
7bb0f7b0f6
drivers: Add "from micropython import const" when const is used.
Following best-practice use of the const feature, to make it compatible
with Python.
8 years ago
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).
8 years ago
Dave Hylands
c08f50bcf7
stmhal: Disable network and usocket for ESPRUINO_PICO
8 years ago
Dave Hylands
7a9c183c20
stmhal: Fix ESPRUINO_PICO by adding ld scripts with correct flash size.
8 years ago
Dave Hylands
1f433c719b
stmhal: Fix linker map for STM32L476 chips.
In particular, this makes the L4 .isr_vector section 16K in size so it's
the same as the F4/F7 MCUs. The patch also moves the L4 filesystem to
the end of flash, which allows for 512K filesystem on the 1Mb devices
like the STM32L476DISC.
8 years ago
Nicholas Graumann
7165fbd8f4
stmhal: Add virtual com port support for STM32L476DISC.
8 years ago
Krzysztof Blazewicz
9310dad15d
stmhal: Put common definitions from linker files to common.ld.
8 years ago
Damien George
4874bde104
stmhal/boards: For OLIMEX_E407, enable UART1 and fix I2C1 mapping.
UART1 can be used even if the switch is enabled. The schematics for this
board make I2C1 available on PB8/PB9, even though it can also be mapped
to PB6/PB7.
See #2396 and #2427 .
8 years ago
Damien George
0fd3d8d19f
stmhal/boards: Add pllvalues.py script to compute PLL values for sysclk.
The algorithm here should mirror that in the machine.freq() function.
8 years ago
Dave Hylands
fedab995ee
stmhal: Set STM32F7DISC CPU Frequency to 216 MHz
This set the CPU frequency to 216 MHz (the max) and
leaves the USB Frequency at 48 MHz.
These settings were copied from one of the HAL examples.
8 years ago
Matt Brejza
5af6184e72
stmhal: Make ADC channel 16 available on L4 MCUs.
8 years ago
Damien George
dfb8144037
stmhal/boards: Update STM32L476 pin defs to include ADC channels.
This patch introduces proper ADC Pin definitions in stm32l476_af.csv.
Originally provided by @tobbad .
8 years ago
David Siorpaes
b67eb20ed0
stmhal: Fix I2C mappings for STM32F429DISC board.
8 years ago
Stefan Hölzl
c8332a5463
stmhal: Add board definition files for Olimex STM32-E407.
9 years ago
Damien George
1dc2862a83
stmhal/led: Allow LEDs to be in PWM mode with TIM1 and channels 1-4.
This allows PYBv3 to use PWM for LED(1) and LED(2).
9 years ago
Tobias Badertscher
b924f649cd
stmhal: Fix clock configuration for STM32L476-discovery; also add I2C2.
9 years ago
Damien George
08d3d5d9ab
stmhal: For LIMIFROG board, add early-init function to get to DFU mode.
9 years ago
Tobias Badertscher
770f169e63
stmhal: Add board files for LIMIFROG board.
9 years ago
Tobias Badertscher
0b6e28c999
stmhal: L4: Add board definition files for STM32L476DISC.
9 years ago
Dave Hylands
99fc0d120a
stmhal: NUCELO_F401RE cleanup
Added definitions for SPI1, SPI2, and SPI3
Removed USB stuff (that could be removed)
Updated BOARD name defintion
9 years ago
Dave Hylands
00f921ce02
stmhal: Rename STM32F401NUCLEO to NUCLEO_F401RE
This makes the board match the name printed on the board (and
agree with the documentation)
9 years ago
Dave Hylands
031fadd10e
stmhal: Add board definition files for NUCLEO_F411RE
9 years ago
Christopher Arndt
9b5e05a7c7
stmhal: Add makefile target and configuration to deploy via OpenOCD.
9 years ago
Ryan Shaw
ad725a6661
stmhal: Add support for generic STM32F439 board (non DISCO).
9 years ago
Dave Hylands
484a471f9b
stmhal: Fix some typos in stm32f411 files, regarding FS layout and CSV.
9 years ago
Dave Hylands
367c084c4b
stmhal: Fix typo in stm32f401.ld file, regarding flash size.
9 years ago
Pavol Rusnak
ce3beb1672
stmhal: Unify comments in stm32f4xx_hal_conf.h across all boards.
To make it easier to spot differences.
9 years ago
Dave Hylands
ec37239e53
stmhal: Improvements to the STM32F4DISC UART config settings.
9 years ago
Dave Hylands
4b2938a4b0
stmhal: Some NETDUINO_PLUS_2 cleanup
- Put the I2C bus on the corect pins
- Add the appropriate board_init to power the shield
9 years ago
Dave Hylands
32b7e93535
stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3
9 years ago
Dave Hylands
f791e14750
stmhal: CERB40 - Add pins defines for I2C3
9 years ago
Dave Hylands
38ac23c942
stmhal: NUCLEO 401 - Add a bunch of missing pins and reorder the pins
This groups the pins for a port together and puts them in numerical
order. It also adds ARDUINO pin names.
9 years ago
Dave Hylands
a888d5ab91
stmhal: Improve NUCLEO-F401RE build, with UART2 as REPL.
This enables MICROPY_HW_HAS_FLASH which got missed.
The HW has UART2 on the 401 connected to the STLINK procesor
which exposes it as USB serial. This connects that up so that
you can get a REPL using the USB serial.
9 years ago
Paul Sokolovsky
97a0846af9
stmhal/diskio: Introduce MICROPY_HW_HAS_FLASH setting.
To allow to reuse stmhal/diskio for ports which don't have flash but have
other storage devices.
9 years ago
Damien George
a8a4b01af6
stmhal: Add PWM capability for LED(3) and LED(4) on pyboards.
USB CDC no longer needs TIM3 (which was originally used for LED(4) PWM)
and so TIM3 has been freed for general purpose use by the user. Hence
LED(4) lost its PWM capabilities.
This patch reinstates the PWM capabilities using a semi-generic piece
of code which allows to configure a timer and PWM channel to use for any
LED. But the PWM capability is only configured if the LED is set to an
intensity between 1 and 254 (ie only when needed). In that case the
relevant timer is configured for PWM. It's up to the user to make sure
the timers are not used if PWM is active.
This patch also makes sure that PWM LEDs are turned off using standard
GPIO when calling led.off() or led.intensity(0), instead of just setting
the PWM counter to zero.
9 years ago
Damien George
ea89b80ff4
stmhal: Make TIM3 available for use by the user.
TIM3 is no longer used by USB CDC for triggering outgoing data, so we
can now make it available to the user.
PWM fading on LED(4) is now gone, but will be reinstated in a new way.
9 years ago
Carmine Noviello
3d42aa07dd
stmhal: Add support for the STM32F401NUCLEO board.
Includes full version of pins.csv file with correct mapping of the Nucleo
STM32F401RE chip (LQFP64 package).
10 years ago