summaryrefslogtreecommitdiff
path: root/stmhal/boards/PYBV11
AgeCommit message (Collapse)Author
2016-12-13stmhal: Move PY_SYS_PLATFORM config from board to general config file.Damien George
It can be overridden by a board if needed.
2016-12-05stmhal: Refactor UART configuration to use pin objects.Rami Ali
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-11-16stmhal/boards: configure all F4 boards to work with new HALKrzysztof Blazewicz
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-10-18stmhal/led: Refactor LED to use mp_hal_pin_output() init function.Damien George
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-05-13stmhal/led: Allow LEDs to be in PWM mode with TIM1 and channels 1-4.Damien George
This allows PYBv3 to use PWM for LED(1) and LED(2).
2016-02-06stmhal/diskio: Introduce MICROPY_HW_HAS_FLASH setting.Paul Sokolovsky
To allow to reuse stmhal/diskio for ports which don't have flash but have other storage devices.
2016-01-29stmhal: Add PWM capability for LED(3) and LED(4) on pyboards.Damien George
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.
2015-12-12stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx.Damien George
Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx to 0 or 1. Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI and NSS. This makes it the same as how I2C is configured.
2015-12-02stmhal: Add board config files for PYBv1.1 and PYBLITEv1.0.Damien George