Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cm3cpp
diff options
context:
space:
mode:
authorLisin Dmitriy <d.lisin@thirdpin.ru>2019-12-03 00:46:29 +0300
committerLisin Dmitriy <d.lisin@thirdpin.ru>2019-12-03 00:46:29 +0300
commit7bece45ec00fb64c7c392ff68c2465b0e2cf7a9d (patch)
tree10a7aed101819ed9dcdd3747afe764d5af160d14 /cm3cpp
parente8ffdb5760d39d2dd926c57b49c39941d5c3379b (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.hpp2
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;