feat(ex02): done
This commit is contained in:
parent
b7580c043c
commit
0fe7dbdc0f
23 changed files with 1469 additions and 0 deletions
16
ex02/include/spi.h
Normal file
16
ex02/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