Начало

This commit is contained in:
cfif 2025-09-23 17:12:43 +03:00
commit ef8c6aee18
2 changed files with 30 additions and 0 deletions

23
Inc/GpioPinInterface.h Normal file
View File

@ -0,0 +1,23 @@
//
// Created by xemon on 8/24/22.
//
#ifndef ABSTRACTGPIOPIN_GPIOPININTERFACE_H
#define ABSTRACTGPIOPIN_GPIOPININTERFACE_H
#include "stdint.h"
#include "stdbool.h"
typedef struct {
bool reverse;
void *port;
uint32_t pin;
} tGpioPin;
void GpioPinSet(tGpioPin *pin, bool value);
bool GpioPinGet(tGpioPin *pin);
#define GpioPinEnable(PIN) GpioPinSet(PIN,true)
#define GpioPinDisable(PIN) GpioPinSet(PIN,false)
#endif //ABSTRACTGPIOPIN_GPIOPININTERFACE_H

7
modular.json Normal file
View File

@ -0,0 +1,7 @@
{
"cmake": {
"inc_dirs": [
"Inc"
]
}
}