mirror of https://github.com/rusefi/wideband.git
23 lines
252 B
C
23 lines
252 B
C
|
#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;
|
||
|
};
|