mirror of https://github.com/rusefi/wideband.git
gpio helper
This commit is contained in:
parent
f64d586411
commit
7c56a740aa
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
class Gpio
|
||||
{
|
||||
public:
|
||||
Gpio(ioline_t line) : m_line(line) {};
|
||||
|
||||
void Set()
|
||||
{
|
||||
palSetLine(m_line);
|
||||
}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
palClearLine(m_line);
|
||||
}
|
||||
|
||||
private:
|
||||
const ioline_t m_line;
|
||||
};
|
Loading…
Reference in New Issue