~aleteoryx/muditaos

ref: 8d96f2d3543c2bea59610e6b65edc842a6b2d42b muditaos/module-bsp/board/rt1051/drivers/RT1051DriverSEMC.hpp -rw-r--r-- 622 bytes
8d96f2d3 — Lefucjusz [MOS-993] Logger bug fixes and optimizations 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "drivers/semc/DriverSEMC.hpp"
#include "RT1051DriverPLL2.hpp"

namespace drivers
{
    class RT1051DriverSEMC : public DriverSEMC
    {
      public:
        explicit RT1051DriverSEMC(std::string name);

        void Enable() final;
        void Disable() final;

        void SwitchToPLL2ClockSource() final;
        void SwitchToPeripheralClockSource() final;

      private:
        std::shared_ptr<RT1051DriverPLL2> pll2Driver;
    };

} // namespace drivers