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:
parent
e8d16b2985
commit
0cd7ff8d4b
3 changed files with 229 additions and 0 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue