Date:2015-06-07 00:34:14 (8 years 9 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
3939static void flash_write(const uint8_t *buf, uint16_t size)
4040{
4141    static uint8_t last;
42        const uint8_t *p;
42    const uint8_t *p;
4343
4444    for (p = buf; p != buf+size; p++) {
4545        if (!(payload & (SPM_PAGESIZE-1))) {
...... 
5757            boot_page_write(payload-SPM_PAGESIZE);
5858            boot_spm_busy_wait();
5959        }
60        }
60    }
6161}
6262
6363
atusb/fw/spi.c
3434uint8_t spi_io(uint8_t v)
3535{
3636// 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;
4040}
4141
4242
...... 
5151{
5252    if (!n)
5353        return;
54        UDR1 = 0;
54    UDR1 = 0;
5555    while (--n) {
5656        while (!(UCSR1A & 1 << RXC1));
5757        *buf++ = UDR1;

Archive Download the corresponding diff file



interactive