Johannes Wågen
f92f7dd2bc
stmhal/boards: For STM32F411DISC, change I2C pin according to datasheet.
...
The pin had to be changed to get the I2C sensors on board to work.
2017-02-13 11:32:27 +11:00
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.
2017-01-30 17:47:11 +11:00
Damien George
f8a022bc11
stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem.
2017-01-24 17:01:53 +11:00
Pavol Rusnak
bdcca42390
stmhal: Fix examples in openocd configs to include addresses.
2017-01-24 00:34:36 +11:00
sergiuszm
ea426dd9ef
stmhal: Add support for STM32 Nucleo64 L476RG.
2016-12-22 17:45:50 +11:00
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.
2016-12-22 14:55:26 +11:00
Damien George
0f408bc1ff
stmhal: Move PY_SYS_PLATFORM config from board to general config file.
...
It can be overridden by a board if needed.
2016-12-13 16:26:45 +11:00
Rami Ali
8001918a89
stmhal: Add STM32F769DISC board files.
...
With minor changes to adc.c and storage.c to support the F769.
2016-12-13 16:26:13 +11:00
Rami Ali
e9fbc555fc
stmhal: Add NUCLEO_F767ZI board, with openocd config for stm32f7.
2016-12-13 16:25:31 +11:00
Rami Ali
db5a4e8f3c
stmhal/boards/STM32F7DISC: Define LSE_STARTUP_TIMEOUT.
...
So it compiles with the latest F7 hal.
2016-12-07 17:31:21 +11:00
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.
2016-12-05 14:26:41 +11:00
Nicholas Graumann
0d75b0d962
stmhal: Add address parameters to openocd config files.
...
Also make l4 config the default for STM32L476DISC board.
2016-11-28 15:27:36 +11:00
Nicholas Graumann
50a2966913
stmhal: Add OpenOCD configuration for STM32L4.
2016-11-28 15:27:36 +11:00
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
2016-11-16 12:43:27 +01:00
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.
2016-11-03 12:41:11 +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
Dave Hylands
c08f50bcf7
stmhal: Disable network and usocket for ESPRUINO_PICO
2016-10-06 11:47:45 +11:00
Dave Hylands
7a9c183c20
stmhal: Fix ESPRUINO_PICO by adding ld scripts with correct flash size.
2016-10-05 11:42:50 +11:00
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.
2016-10-04 14:31:19 +11:00
Nicholas Graumann
7165fbd8f4
stmhal: Add virtual com port support for STM32L476DISC.
2016-09-27 22:08:55 -05:00
Krzysztof Blazewicz
9310dad15d
stmhal: Put common definitions from linker files to common.ld.
2016-09-22 12:03:12 +10:00
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 .
2016-09-19 13:00:15 +10:00
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.
2016-09-14 13:00:27 +10:00
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.
2016-09-04 18:14:41 +10:00
Matt Brejza
5af6184e72
stmhal: Make ADC channel 16 available on L4 MCUs.
2016-08-25 13:49:51 +10:00
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.
2016-08-11 13:01:57 +10:00
David Siorpaes
b67eb20ed0
stmhal: Fix I2C mappings for STM32F429DISC board.
2016-08-04 22:51:53 +10:00
Stefan Hölzl
c8332a5463
stmhal: Add board definition files for Olimex STM32-E407.
2016-06-06 10:21:02 +01:00
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).
2016-05-13 11:01:21 +01:00
Tobias Badertscher
b924f649cd
stmhal: Fix clock configuration for STM32L476-discovery; also add I2C2.
2016-05-10 09:20:30 +01:00
Damien George
08d3d5d9ab
stmhal: For LIMIFROG board, add early-init function to get to DFU mode.
2016-05-05 17:00:30 +01:00
Tobias Badertscher
770f169e63
stmhal: Add board files for LIMIFROG board.
2016-05-05 17:00:16 +01:00
Tobias Badertscher
0b6e28c999
stmhal: L4: Add board definition files for STM32L476DISC.
2016-04-16 22:11:02 +01:00
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
2016-03-13 12:36:39 +00:00
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)
2016-03-13 12:36:39 +00:00
Dave Hylands
031fadd10e
stmhal: Add board definition files for NUCLEO_F411RE
2016-03-12 16:16:15 -08:00
Christopher Arndt
9b5e05a7c7
stmhal: Add makefile target and configuration to deploy via OpenOCD.
2016-03-09 23:00:17 +00:00
Ryan Shaw
ad725a6661
stmhal: Add support for generic STM32F439 board (non DISCO).
2016-03-09 22:46:41 +00:00
Dave Hylands
484a471f9b
stmhal: Fix some typos in stm32f411 files, regarding FS layout and CSV.
2016-03-07 12:42:30 +00:00
Dave Hylands
367c084c4b
stmhal: Fix typo in stm32f401.ld file, regarding flash size.
2016-03-07 12:38:57 +00:00
Pavol Rusnak
ce3beb1672
stmhal: Unify comments in stm32f4xx_hal_conf.h across all boards.
...
To make it easier to spot differences.
2016-03-07 11:28:36 +00:00
Dave Hylands
ec37239e53
stmhal: Improvements to the STM32F4DISC UART config settings.
2016-02-15 10:11:29 +00:00
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
2016-02-15 10:07:27 +00:00
Dave Hylands
32b7e93535
stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3
2016-02-10 21:26:14 -08:00
Dave Hylands
f791e14750
stmhal: CERB40 - Add pins defines for I2C3
2016-02-10 21:25:30 -08:00
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.
2016-02-10 21:23:45 -08:00
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.
2016-02-10 16:50:05 +00:00
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.
2016-02-06 15:07:01 +02:00
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.
2016-01-29 22:44:43 +00:00
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.
2016-01-29 22:31:56 +00:00