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:
-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;