fixed all exercices
This commit is contained in:
parent
5763bbb065
commit
2f91952d78
49 changed files with 3151 additions and 24 deletions
16
ex03/include/spi.h
Normal file
16
ex03/include/spi.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef SPI_H
|
||||
#define SPI_H
|
||||
|
||||
#define SPI_DDR DDRB
|
||||
#define CS PINB2
|
||||
#define MOSI PINB3
|
||||
#define MISO PINB4
|
||||
#define SCK PINB5
|
||||
|
||||
#include "mystd.h"
|
||||
|
||||
void spi_init(void);
|
||||
void spi_write(uint8_t data);
|
||||
uint8_t spi_read(void);
|
||||
|
||||
#endif /* SPI_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue