Rev 902 | Rev 1437 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 902 | Rev 932 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | #include <util/delay.h> |
23 | #include <util/delay.h> |
24 | #include <avr/pgmspace.h> |
24 | #include <avr/pgmspace.h> |
25 | #include <string.h> |
25 | #include <string.h> |
26 | #include <stdlib.h> |
26 | #include <stdlib.h> |
27 | #include "max7456_software_spi.h" |
27 | #include "max7456_software_spi.h" |
- | 28 | #include "usart0.h" |
|
Line 28... | Line 29... | ||
28 | 29 | ||
Line 29... | Line 30... | ||
29 | 30 | ||
Line 68... | Line 69... | ||
68 | spi_send(address); |
69 | spi_send(address); |
69 | spi_send(byte); |
70 | spi_send(byte); |
Line 70... | Line 71... | ||
70 | 71 | ||
71 | // end sending |
72 | // end sending |
- | 73 | MAX_CS_HIGH |
|
- | 74 | ||
- | 75 | #ifdef SERIALDEBUGDRAW |
|
- | 76 | uint8_t c = address + byte; |
|
- | 77 | usart0_puts("#3"); |
|
- | 78 | usart0_putc(address); |
|
- | 79 | usart0_putc(byte); |
|
- | 80 | usart0_putc(c); |
|
- | 81 | usart0_puts("\n"); |
|
72 | MAX_CS_HIGH |
82 | #endif |
Line 73... | Line 83... | ||
73 | } |
83 | } |
74 | 84 | ||
75 | /** |
85 | /** |