circuitpython/stmhal/boards
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
..
CERB40 stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
ESPRUINO_PICO stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
HYDRABUS stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
NETDUINO_PLUS_2 stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
PYBLITEV10 stmhal: Add PWM capability for LED(3) and LED(4) on pyboards. 2016-01-29 22:44:43 +00:00
PYBV3 stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
PYBV4 stmhal: Add PWM capability for LED(3) and LED(4) on pyboards. 2016-01-29 22:44:43 +00:00
PYBV10 stmhal: Add PWM capability for LED(3) and LED(4) on pyboards. 2016-01-29 22:44:43 +00:00
PYBV11 stmhal: Add PWM capability for LED(3) and LED(4) on pyboards. 2016-01-29 22:44:43 +00:00
STM32F4DISC stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
STM32F7DISC stmhal: Change PLL configuration for STM32F7DISC. 2015-12-18 22:16:49 +00:00
STM32F401NUCLEO stmhal: Add support for the STM32F401NUCLEO board. 2016-01-27 12:30:36 +00:00
STM32F411DISC stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
STM32F429DISC stmhal: Extend SPI support to fully support all SPI devices on STM32F429. 2015-12-16 00:38:36 +00:00
make-pins.py stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx. 2015-12-12 15:02:02 +00:00
stm32f4xx_prefix.c all: Add py/mphal.h and use it in all ports. 2015-10-31 19:14:30 +03:00
stm32f401.ld stmhal: Add stm32f401.ld for linking F401 targets. 2015-04-18 21:40:59 +01:00
stm32f401_af.csv stmhal: Provide ADC capabilities for F401 and F411 MCUs. 2015-04-18 22:39:06 +01:00
stm32f405.ld stmhal: Make ld and af files configurable within Makefile. 2015-04-18 21:40:59 +01:00
stm32f405_af.csv stmhal: Rename stm32f4xx_af.csv to stm32f405_af.csv. 2015-04-18 21:40:59 +01:00
stm32f411.ld stmhal: Add support for STM32F411 MCU. 2015-04-18 22:15:59 +01:00
stm32f411_af.csv stmhal: Fixed some typos in stm32f411_af.csv. 2015-08-17 16:51:19 +01:00
stm32f429.ld stmhal: Add support for the STM32F429I-DISCO kit by STMicro. 2015-11-25 23:53:26 +00:00
stm32f429_af.csv stmhal: Add support for the STM32F429I-DISCO kit by STMicro. 2015-11-25 23:53:26 +00:00
stm32f746.ld stmhal: Add STM32F7 support for USB serial and storage. 2015-08-03 00:39:27 +01:00
stm32f746_af.csv stmhal: Add STM32F7DISC and associated changes. 2015-07-30 00:38:32 +01:00