diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index e6dd5d2..73df565 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -36,7 +36,7 @@ DEFINES += -DSHELLMATTA_HELP_ALIAS=\"?\" # RCC Manager CFILES += stm-periph/rcc-manager.c CFILES += stm-periph/uart.c stm-periph/dma-ring-buffer.c stm-periph/backup-ram.c -CFILES += stm-periph/rng.c +CFILES += stm-periph/rng.c stm-periph/spi.c CFILES += digio.c CFILES += stm-periph/unique-id.c CFILES += calibration.c diff --git a/stm-firmware/include/stm-periph/spi.h b/stm-firmware/include/stm-periph/spi.h new file mode 100644 index 0000000..d7541f3 --- /dev/null +++ b/stm-firmware/include/stm-periph/spi.h @@ -0,0 +1,24 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2021 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 __SPI_H__ +#define __SPI_H__ + +#endif /* __SPI_H__ */ diff --git a/stm-firmware/stm-periph/spi.c b/stm-firmware/stm-periph/spi.c new file mode 100644 index 0000000..2143c25 --- /dev/null +++ b/stm-firmware/stm-periph/spi.c @@ -0,0 +1,22 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2021 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 +#include