Rev 507 | Rev 728 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 507 | Rev 514 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | #include <avr/io.h> |
21 | #include <avr/io.h> |
22 | #include <avr/interrupt.h> |
22 | #include <avr/interrupt.h> |
23 | #include "spi.h" |
23 | #include "spi.h" |
24 | #include "main.h" |
24 | #include "main.h" |
Line -... | Line 25... | ||
- | 25 | ||
- | 26 | #if !(ALLCHARSDEBUG|(WRITECHARS != -1)) |
|
25 | 27 | ||
26 | volatile uint16_t icnt = 0; |
28 | volatile uint16_t icnt = 0; |
27 | volatile uint8_t request_count = 0; |
29 | volatile uint8_t request_count = 0; |
28 | volatile uint8_t spi_ready = 1; |
30 | volatile uint8_t spi_ready = 1; |
29 | volatile union SPI_buffer_t SPI_buffer; |
31 | volatile union SPI_buffer_t SPI_buffer; |
Line 95... | Line 97... | ||
95 | * send next command through spi |
97 | * send next command through spi |
96 | */ |
98 | */ |
97 | void spi_send_next() { |
99 | void spi_send_next() { |
98 | SPDR = 'A' + request_count; |
100 | SPDR = 'A' + request_count; |
99 | } |
101 | } |
- | 102 | ||
- | 103 | #endif |