From 0c5408975eb319f2a329d76bfb376f5451f91427 Mon Sep 17 00:00:00 2001 From: ag-embedded <100andrey300@gmail.com> Date: Mon, 6 Jul 2026 07:14:57 +0700 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=20DrakePin=20namespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DrakePinA.hpp | 11 +++++++---- src/DrakePinD.hpp | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/DrakePinA.hpp b/src/DrakePinA.hpp index b8deec4..ca9a4e9 100644 --- a/src/DrakePinA.hpp +++ b/src/DrakePinA.hpp @@ -3,13 +3,13 @@ #include "DrakePinTypes.hpp" #include "platform/gpio_platforms.hpp" -using namespace DrakePin; - -class DrakePinA +namespace DrakePin +{ +class PinA { public: - constexpr DrakePinA(const PinA_t &pin, uint32_t sampling) : _pin(pin), _sampling(sampling) + constexpr PinA(const PinA_t &pin, uint32_t sampling) : _pin(pin), _sampling(sampling) {} void Init() @@ -44,3 +44,6 @@ class DrakePinA uint32_t _sampling; }; +} + +using DrakePinA = DrakePin::PinA; diff --git a/src/DrakePinD.hpp b/src/DrakePinD.hpp index c63e4bc..48b6861 100644 --- a/src/DrakePinD.hpp +++ b/src/DrakePinD.hpp @@ -3,13 +3,13 @@ #include "DrakePinTypes.hpp" #include "platform/gpio_platforms.hpp" -using namespace DrakePin; - -class DrakePinD +namespace DrakePin +{ +class PinD { public: - constexpr DrakePinD(const PinD_t &pin, ModeD_t mode, LevelD_t level) : _pin(pin), _mode(mode), _level(level) + constexpr PinD(const PinD_t &pin, ModeD_t mode, LevelD_t level) : _pin(pin), _mode(mode), _level(level) {} void Init() @@ -67,3 +67,6 @@ class DrakePinD LevelD_t _level; }; +} + +using DrakePinD = DrakePin::PinD;