Add SPI driver
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								stm-firmware/include/stm-periph/spi.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								stm-firmware/include/stm-periph/spi.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
/* Reflow Oven Controller
 | 
			
		||||
*
 | 
			
		||||
* Copyright (C) 2021  Mario Hüttel <mario.huettel@gmx.net>
 | 
			
		||||
*
 | 
			
		||||
* 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 <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#ifndef __SPI_H__
 | 
			
		||||
#define __SPI_H__
 | 
			
		||||
 | 
			
		||||
#endif /* __SPI_H__ */
 | 
			
		||||
							
								
								
									
										22
									
								
								stm-firmware/stm-periph/spi.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								stm-firmware/stm-periph/spi.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
/* Reflow Oven Controller
 | 
			
		||||
*
 | 
			
		||||
* Copyright (C) 2021  Mario Hüttel <mario.huettel@gmx.net>
 | 
			
		||||
*
 | 
			
		||||
* 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 <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include <stm-periph/spi.h>
 | 
			
		||||
#include <stm32/stm32f4xx.h>
 | 
			
		||||
		Reference in New Issue
	
	Block a user