From 6fa071e1d1d1c2d776dce9882e4275e665e965c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 16 Feb 2020 14:25:49 +0100 Subject: [PATCH] Add rotary encoder module --- stm-firmware/Makefile | 2 ++ .../reflow-controller/rotary-encoder.h | 25 +++++++++++++++++++ stm-firmware/rotary-encoder.c | 22 ++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 stm-firmware/include/reflow-controller/rotary-encoder.h create mode 100644 stm-firmware/rotary-encoder.c diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index d1ec8f0..52624be 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -45,6 +45,8 @@ CFILES += calibration.c CFILES += temp-converter.c +CFILES += rotary-encoder.c + DEFINES += -DDEBUGBUILD #TODO diff --git a/stm-firmware/include/reflow-controller/rotary-encoder.h b/stm-firmware/include/reflow-controller/rotary-encoder.h new file mode 100644 index 0000000..7caa8f3 --- /dev/null +++ b/stm-firmware/include/reflow-controller/rotary-encoder.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. +* +* GDSII-Converter 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 __ROTARY_ENCODER_H__ +#define __ROTARY_ENCODER_H__ + +#endif /* __ROTARY_ENCODER_H__ */ diff --git a/stm-firmware/rotary-encoder.c b/stm-firmware/rotary-encoder.c new file mode 100644 index 0000000..b871d66 --- /dev/null +++ b/stm-firmware/rotary-encoder.c @@ -0,0 +1,22 @@ +/* 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. +* +* GDSII-Converter 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 \ No newline at end of file