serial/stm32: add support for IRQ APIs

The patch extends STM32 serial port driver with support for IRQ API of
the common UART port driver API.

Change-Id: If105e8528ea4ed4181cc4af0c97c24aa874e69e0
Origin: Original
Signed-off-by: Maciej Borzecki <maciek.borzecki@gmail.com>
This commit is contained in:
Maciek Borzecki 2016-03-13 19:37:25 +01:00 committed by Daniel Kalowsky
commit 0cd7ff8d4b
3 changed files with 229 additions and 0 deletions

View file

@ -161,6 +161,9 @@ struct uart_stm32_data {
uint32_t baud_rate;
/* clock device */
struct device *clock;
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
uart_irq_callback_t user_cb;
#endif
};
#endif /* _STM32_UART_H_ */