From ffac27e494c56f70525e9ac1712e37b5a1841dcb Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 30 Mar 2026 14:25:13 +0300 Subject: [PATCH] Init --- PowerManagement.c | 11 +++++++++++ PowerManagement.h | 25 +++++++++++++++++++++++++ modular.json | 10 ++++++++++ 3 files changed, 46 insertions(+) create mode 100644 PowerManagement.c create mode 100644 PowerManagement.h create mode 100644 modular.json diff --git a/PowerManagement.c b/PowerManagement.c new file mode 100644 index 0000000..e58e553 --- /dev/null +++ b/PowerManagement.c @@ -0,0 +1,11 @@ +// +// Created by cfif on 05.05.23. +// +#include +#include "PowerManagement.h" + +void Pwm_Init( + tPowerManagement *env +) { + +} diff --git a/PowerManagement.h b/PowerManagement.h new file mode 100644 index 0000000..50b9e0d --- /dev/null +++ b/PowerManagement.h @@ -0,0 +1,25 @@ +// +// Created by cfif on 05.05.23. +// + +#ifndef WATER_BOX_BSD_POWERMANAGEMENT_H +#define WATER_BOX_BSD_POWERMANAGEMENT_H + +#include "GpioPin.h" + +typedef struct { + tGpioPin ledR1; + tGpioPin ledG1; + tGpioPin ledR2; + tGpioPin ledG2; +} tLed; + +typedef struct { + +} tPowerManagement; + +void Pwm_Init( + tPowerManagement *env +); + +#endif //WATER_BOX_BSD_POWERMANAGEMENT_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