diff --git a/firmware/gpio.h b/firmware/gpio.h new file mode 100644 index 0000000..3b825f7 --- /dev/null +++ b/firmware/gpio.h @@ -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; +};