diff options
author | Lisin Dmitriy <d.lisin@thirdpin.ru> | 2019-12-03 00:46:29 +0300 |
---|---|---|
committer | Lisin Dmitriy <d.lisin@thirdpin.ru> | 2019-12-03 00:46:29 +0300 |
commit | 7bece45ec00fb64c7c392ff68c2465b0e2cf7a9d (patch) | |
tree | 10a7aed101819ed9dcdd3747afe764d5af160d14 /cm3cpp | |
parent | e8ffdb5760d39d2dd926c57b49c39941d5c3379b (diff) |
[usart] Add access to LL usart periph address
It is necessary in some special cases, than part of needed
functional is not implemented in library.
Diffstat (limited to 'cm3cpp')
-rw-r--r-- | cm3cpp/usart.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cm3cpp/usart.hpp b/cm3cpp/usart.hpp index 68f8bc5..4676490 100644 --- a/cm3cpp/usart.hpp +++ b/cm3cpp/usart.hpp @@ -190,6 +190,8 @@ class Usart auto get_irq() { return static_cast<Interrupt>(_usart_nvic); } + auto get_uart_periph() { return _usart; } + protected: Gpio _rx; Gpio _tx; |