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
diff options
context:
space:
mode:
authorMrDimLis <mrlisdim@gmail.com>2019-12-03 00:47:17 +0300
committerGitHub <noreply@github.com>2019-12-03 00:47:17 +0300
commit97eef7076dc8a4643960e77d0cabc533cc0ee087 (patch)
treed4d94fedea083dc7788d7cc0999af903d22503e1
parentac710c13cc1e38174ab53d965289ee8d4bfedc2e (diff)
parent7bece45ec00fb64c7c392ff68c2465b0e2cf7a9d (diff)
Merge pull request #11 from thirdpin/feature/add_ll_usart_access
[usart] Add access to LL usart periph address
-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;