pcb and initial code from https://github.com/das-labor/borgware-2d.git
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.
29 lines
399 B
29 lines
399 B
16 years ago
|
#ifndef SPI_H
|
||
|
#define SPI_H
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
/**
|
||
|
* this enables the use of Hardware SPI on ATMEGA
|
||
|
*
|
||
|
* #define SPI_HARDWARE 1
|
||
|
* #define SPI_PORT PORTB
|
||
|
* #define SPI_PIN PINB
|
||
|
* #define SPI_DDR DDRB
|
||
|
*
|
||
|
* #define SPI_PIN_MOSI PB5
|
||
|
* #define SPI_PIN_MISO PB6
|
||
|
* #define SPI_PIN_SCK PB7
|
||
|
* #define SPI_PIN_SS PB4
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
|
||
|
void spi_init();
|
||
|
|
||
|
unsigned char spi_data(unsigned char c);
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|