You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
378 B
26 lines
378 B
/*
|
|
* SPI.h
|
|
*
|
|
* Created: 24.10.2023 15:35:09
|
|
* Author: Katya
|
|
*/
|
|
|
|
#ifndef SPI_H_
|
|
#define SPI_H_
|
|
|
|
#define MOSI DDE3
|
|
#define SCK DDC1
|
|
#define SS DDC2
|
|
|
|
#define F_CPU 16000000UL
|
|
|
|
#include <avr/io.h>
|
|
#include <avr/interrupt.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <util/delay.h>
|
|
|
|
void SPI_MasterInit (void);
|
|
void SPI_MasterTransmit(uint8_t data);
|
|
|
|
#endif /* SPI_H_ */ |