From 24f073a925179b5c8e8854693fb8c0973ac944a8 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 30 Mar 2026 16:03:37 +0300 Subject: [PATCH] Init --- Sensor.c | 5 +++++ Sensor.h | 22 ++++++++++++++++++++++ modular.json | 10 ++++++++++ 3 files changed, 37 insertions(+) create mode 100644 Sensor.c create mode 100644 Sensor.h create mode 100644 modular.json diff --git a/Sensor.c b/Sensor.c new file mode 100644 index 0000000..d5e7a45 --- /dev/null +++ b/Sensor.c @@ -0,0 +1,5 @@ +// +// Created by cfif on 03.06.2024. +// +#include "Sensor.h" + diff --git a/Sensor.h b/Sensor.h new file mode 100644 index 0000000..452ad52 --- /dev/null +++ b/Sensor.h @@ -0,0 +1,22 @@ +// +// Created by cfif on 03.06.2024. +// + +#ifndef SMART_COMPONENTS_SENSOR_H +#define SMART_COMPONENTS_SENSOR_H + +#include "GpioPin.h" + +typedef struct { + tGpioPin A; + tGpioPin B; + tGpioPin C; +} tConABC; + +typedef struct { + tConABC Con; + tGpioPin En1; + tGpioPin En2; +} tConn; + +#endif //SMART_COMPONENTS_SENSOR_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..0dd1901 --- /dev/null +++ b/modular.json @@ -0,0 +1,10 @@ +{ + "cmake": { + "inc_dirs": [ + "./" + ], + "srcs": [ + "./**.c" + ] + } +} \ No newline at end of file