IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2015-06-07 00:34:14 (8 years 6 months ago) |
---|---|
Author: | Stefan Schmidt |
Commit: | 15b15b9524c1eb4222759878c18d4369274554e1 |
Message: | flashi/spi: Use tabs instead of spaces. Purely cosmetic. No idea when this sneaked in here. |
Files: |
atusb/fw/flash.c (2 diffs) atusb/fw/spi.c (2 diffs) |
Change Details
atusb/fw/flash.c | ||
---|---|---|
39 | 39 | static void flash_write(const uint8_t *buf, uint16_t size) |
40 | 40 | { |
41 | 41 | static uint8_t last; |
42 | const uint8_t *p; | |
42 | const uint8_t *p; | |
43 | 43 | |
44 | 44 | for (p = buf; p != buf+size; p++) { |
45 | 45 | if (!(payload & (SPM_PAGESIZE-1))) { |
... | ... | |
57 | 57 | boot_page_write(payload-SPM_PAGESIZE); |
58 | 58 | boot_spm_busy_wait(); |
59 | 59 | } |
60 | } | |
60 | } | |
61 | 61 | } |
62 | 62 | |
63 | 63 |
atusb/fw/spi.c | ||
---|---|---|
34 | 34 | uint8_t spi_io(uint8_t v) |
35 | 35 | { |
36 | 36 | // while (!(UCSR1A & 1 << UDRE1)); |
37 | UDR1 = v; | |
38 | while (!(UCSR1A & 1 << RXC1)); | |
39 | return UDR1; | |
37 | UDR1 = v; | |
38 | while (!(UCSR1A & 1 << RXC1)); | |
39 | return UDR1; | |
40 | 40 | } |
41 | 41 | |
42 | 42 | |
... | ... | |
51 | 51 | { |
52 | 52 | if (!n) |
53 | 53 | return; |
54 | UDR1 = 0; | |
54 | UDR1 = 0; | |
55 | 55 | while (--n) { |
56 | 56 | while (!(UCSR1A & 1 << RXC1)); |
57 | 57 | *buf++ = UDR1; |