Skip to content

Commit 1c03e64

Browse files
committed
[stm32] Add Gpio connect() method for clock output to RCC driver
1 parent 2e34b11 commit 1c03e64

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/modm/platform/clock/stm32/rcc.hpp.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2012, 2017, Fabian Greif
44
* Copyright (c) 2012, 2014-2017, Niklas Hauser
55
* Copyright (c) 2013-2014, Kevin Läufer
6-
* Copyright (c) 2018, 2021, Christopher Durand
6+
* Copyright (c) 2018, 2021-2022, Christopher Durand
77
*
88
* This file is part of the modm project.
99
*
@@ -19,6 +19,7 @@
1919
#include <stdint.h>
2020
#include "../device.hpp"
2121
#include <modm/platform/core/peripherals.hpp>
22+
#include <modm/platform/gpio/connector.hpp>
2223
#include <modm/architecture/interface/delay.hpp>
2324

2425
namespace modm::platform
@@ -843,6 +844,14 @@ public:
843844
static void
844845
updateCoreFrequency();
845846

847+
template< class... Signals >
848+
static void
849+
connect()
850+
{
851+
using Connector = GpioConnector<Peripheral::Rcc, Signals...>;
852+
Connector::connect();
853+
}
854+
846855
public:
847856
template< Peripheral peripheral >
848857
static void

0 commit comments

Comments
 (0)