Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/DrakePinA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -44,3 +44,6 @@ class DrakePinA
uint32_t _sampling;

};
}

using DrakePinA = DrakePin::PinA;
11 changes: 7 additions & 4 deletions src/DrakePinD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -67,3 +67,6 @@ class DrakePinD
LevelD_t _level;

};
}

using DrakePinD = DrakePin::PinD;