parent
8ea404c3fa
commit
b9a402d64b
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* comm.c
|
||||
*
|
||||
* Created on: 13.02.2019
|
||||
* Author: julian
|
||||
*/
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
void comm_init()
|
||||
{
|
||||
DDRA |= (1<<PA5); // setup MOSI as output
|
||||
USICR = (1<<USIWM0)|(1<<USICS1);
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* comm.h
|
||||
*
|
||||
* Created on: 13.02.2019
|
||||
* Author: julian
|
||||
*/
|
||||
|
||||
#ifndef COMM_H_
|
||||
#define COMM_H_
|
||||
|
||||
void comm_init();
|
||||
|
||||
#endif /* COMM_H_ */
|
Loading…
Reference in new issue