From 6e07a363f4e2e6c1bcc5c517a6b4367d0c508d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 26 Apr 2020 20:21:13 +0200 Subject: [PATCH] Add settings module --- stm-firmware/Makefile | 12 +-------- .../settings/settings-sd-card.h | 24 ++++++++++++++++++ .../reflow-controller/settings/settings.h | 25 +++++++++++++++++++ stm-firmware/settings/settings-sd-card.c | 21 ++++++++++++++++ stm-firmware/settings/settings.c | 21 ++++++++++++++++ 5 files changed, 92 insertions(+), 11 deletions(-) create mode 100644 stm-firmware/include/reflow-controller/settings/settings-sd-card.h create mode 100644 stm-firmware/include/reflow-controller/settings/settings.h create mode 100644 stm-firmware/settings/settings-sd-card.c create mode 100644 stm-firmware/settings/settings.c diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index fc35fde..337c6b3 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -34,26 +34,16 @@ DEFINES += -DSHELLMATTA_HELP_ALIAS=\"?\" # RCC Manager CFILES += stm-periph/clock-enable-manager.c - CFILES += stm-periph/uart.c stm-periph/dma-ring-buffer.c - CFILES += digio.c - CFILES += stm-periph/unique-id.c - CFILES += calibration.c - CFILES += temp-converter.c - CFILES += rotary-encoder.c - CFILES += stack-check.c - -#CFILES += onewire-temp-sensors.c - CFILES += fatfs/diskio.c fatfs/ff.c fatfs/ffsystem.c fatfs/ffunicode.c fatfs/shimatta_sdio_driver/shimatta_sdio.c - CFILES += pid-controller.c oven-driver.c +CFILES += settings/settings.c settings-sd-card.c DEFINES += -DDEBUGBUILD diff --git a/stm-firmware/include/reflow-controller/settings/settings-sd-card.h b/stm-firmware/include/reflow-controller/settings/settings-sd-card.h new file mode 100644 index 0000000..c657069 --- /dev/null +++ b/stm-firmware/include/reflow-controller/settings/settings-sd-card.h @@ -0,0 +1,24 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#ifndef __SETTINGS_SETTINGS_SD_CARD_H__ +#define __SETTINGS_SETTINGS_SD_CARD_H__ + +#endif /* __SETTINGS_SETTINGS_SD_CARD_H__ */ diff --git a/stm-firmware/include/reflow-controller/settings/settings.h b/stm-firmware/include/reflow-controller/settings/settings.h new file mode 100644 index 0000000..dcb43dd --- /dev/null +++ b/stm-firmware/include/reflow-controller/settings/settings.h @@ -0,0 +1,25 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + + +#ifndef __SETTINGS_SETTINGS_H__ +#define __SETTINGS_SETTINGS_H__ + +#endif /* __SETTINGS_SETTINGS_H__ */ diff --git a/stm-firmware/settings/settings-sd-card.c b/stm-firmware/settings/settings-sd-card.c new file mode 100644 index 0000000..5239091 --- /dev/null +++ b/stm-firmware/settings/settings-sd-card.c @@ -0,0 +1,21 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#include diff --git a/stm-firmware/settings/settings.c b/stm-firmware/settings/settings.c new file mode 100644 index 0000000..07643ce --- /dev/null +++ b/stm-firmware/settings/settings.c @@ -0,0 +1,21 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#include