STM32/STM32F1 patchset v10


Maciek Borzecki <maciek.borzecki@...>
 

Hi,

I've pushed another set of updates to the remaining STM32F1 patchset
(bboozzoo/stm32f10x-for-upstream-v11).

The aside from cosmetic cleanups and minor updates, the pinmux driver
was extended to address comments from Vinicius Costa Gomes. The pin
function configuration is currently declared upfront by the board
integration glue, and applied during pinmux driver
initialization. Board integrator is expected to provide implementation
of stm32_board_get_pinconf(), retuning an array of
(pin, alternate-function) tuples.

Updated Changes:
https://gerrit.zephyrproject.org/r/649 pinmux/stm32: add common
driver for STM32 pinmux
https://gerrit.zephyrproject.org/r/650 serial/stm32: add driver for
STM32 UART
https://gerrit.zephyrproject.org/r/651 gpio/stm32: add common driver
for STM32 GPIO
https://gerrit.zephyrproject.org/r/652 boards/stm32_mini_a15: add
new board
https://gerrit.zephyrproject.org/r/653 samples/drivers/disco: add
'disco' sample program
https://gerrit.zephyrproject.org/r/713 soc/stm32f1/gpio: implement
GPIO support
https://gerrit.zephyrproject.org/r/714 soc/stm32f1/pinmux: implement
STM32 pinmux integration
https://gerrit.zephyrproject.org/r/715 boards/nucleo_f103rb: add new
board
https://gerrit.zephyrproject.org/r/915 soc/stm32f1: add IRQ numbers
listing
https://gerrit.zephyrproject.org/r/916 serial/stm32: add support for
IRQ APIs
https://gerrit.zephyrproject.org/r/917
interupt_controller/stm32_exti: driver for STM32 EXTI controller
https://gerrit.zephyrproject.org/r/918 gpio/stm32: GPIO input with
interrupts
https://gerrit.zephyrproject.org/r/919 soc/stm32f1: AFIO registers
mapping
https://gerrit.zephyrproject.org/r/920 soc/stm32f1/gpio: implement
MCU specific GPIO input interrupt integration
https://gerrit.zephyrproject.org/r/921 watchdog/iwdg_stm32: add
driver for STM32 Independent Watchdog (IWDG)
https://gerrit.zephyrproject.org/r/922 samples/button: button input
example

Cheers,
--
Maciek Borzecki


Maciek Borzecki <maciek.borzecki@...>
 

Hi all,

I've published version 10 of the patchset adding STM32/STM32F1
support. I will update the series once Anas merges his arch/arm/soc
tree layout changes.

The code is also available here in branch
bboozzoo/stm32f10x-for-upstream-v10 in github repo:

https://github.com/bboozzoo/zephyr/

Changelog
=========

- added a common STM32 driver for Independent Watchdog (IWDG)

- added a common STM32 driver for External Interupt/Event Controller
(EXTI). This is particularly useful as it enables support for
interrupts on input GPIO lines. Having this, it is possible to start
working on drivers for I2C and SPI devices.

- updated initla GPIO patches with support for GPIO input

- added GPIO input interrupt triggers

- support for interrupt driven UART communication. This way we can
finally run the 'shell' sample demo

- updated board configs to match current master

- updated Nucleo-F103RB board config to enable UART console on USART1
port. This allows for using the serial console avaialble on the
STLink v2-1 USB connector (usually /dev/ttyACMx in the host system)

- a sample 'button' demo for showcasing GPIO input with interrupts

Other
=====

The following patches are independent and can be directly merged to
master:

clock_control: extend API with clock rate query operation
clock_control/Kconfig: move quark_se entries to separate file


Gerrit log
==========

New Changes:
https://gerrit.zephyrproject.org/r/915 soc/stm32f1: add IRQ numbers
listing
https://gerrit.zephyrproject.org/r/916 serial/stm32: add support for
IRQ APIs
https://gerrit.zephyrproject.org/r/917
interupt_controller/stm32_exti: driver for STM32 EXTI controller
https://gerrit.zephyrproject.org/r/918 gpio/stm32: GPIO input with
interrupts
https://gerrit.zephyrproject.org/r/919 soc/stm32f1: AFIO registers
mapping
https://gerrit.zephyrproject.org/r/920 soc/stm32f1/gpio: implement
MCU specific GPIO input interrupt integration
https://gerrit.zephyrproject.org/r/921 watchdog/iwdg_stm32: add
driver for STM32 Independent Watchdog (IWDG)
https://gerrit.zephyrproject.org/r/922 samples/button: button input
example

Updated Changes:
https://gerrit.zephyrproject.org/r/645 st_stm32/stm32f1: introduce
STM32F1x SoC family
https://gerrit.zephyrproject.org/r/647 clock_control/stm32f10x:
introduce driver for STM32F10x RCC
https://gerrit.zephyrproject.org/r/649 pinmux/stm32: add common
driver for STM32 pinmux
https://gerrit.zephyrproject.org/r/650 serial/stm32: add new driver
for STM32 UART
https://gerrit.zephyrproject.org/r/651 gpio/stm32: add common driver
for STM32 GPIO
https://gerrit.zephyrproject.org/r/652 boards/stm32_mini_a15: add
new board
https://gerrit.zephyrproject.org/r/653 samples/drivers/disco: add
'disco' sample program
https://gerrit.zephyrproject.org/r/711 clock_control/Kconfig: move
quark_se entries to separate file
https://gerrit.zephyrproject.org/r/712 clock_control: extend API
with clock rate query operation
https://gerrit.zephyrproject.org/r/713 soc/stm32f1/gpio: implement
GPIO support
https://gerrit.zephyrproject.org/r/714 soc/stm32f1/pinmux: implement
STM32 pinmux integration
https://gerrit.zephyrproject.org/r/715 boards/nucleo_f103rb: add new
board



Cheers,
--
Maciek Borzecki