Skip to content

Commit a5c932c

Browse files
committed
Cheeky whitespace cleanup
1 parent 403abea commit a5c932c

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@
1616

1717
# Jupyter notebook
1818
*.ipynb text eol=lf
19-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ __pycache__/
1919

2020
docs/_build
2121
.cache
22-

chipflow_lib/software/drivers/spi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "spi.h"
33

44
void spi_init(volatile spi_regs_t *spi, uint32_t divider) {
5-
spi->divider = divider;
5+
spi->divider = divider;
66
spi->config = 0x02; // CS=0, SCK_EDGE=1, SCK_IDLE=0
77
}
88

@@ -11,8 +11,8 @@ uint32_t spi_xfer(volatile spi_regs_t *spi, uint32_t data, uint32_t width, bool
1111
spi->send_data = data << (32U - width);
1212
while (!(spi->status & 0x1)) // wait for rx full
1313
;
14-
if (deselect) {
15-
spi->config = ((width - 1) << 3) | 0x02; // CS=0, SCK_EDGE=1, SCK_IDLE=0
14+
if (deselect) {
15+
spi->config = ((width - 1) << 3) | 0x02; // CS=0, SCK_EDGE=1, SCK_IDLE=0
1616
}
1717
return spi->receive_data;
1818
}

chipflow_lib/software/drivers/spiflash.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mv t3, ra
1414
# address of SPI ctrl reg
1515
li a0, 0xb0000000
1616
# enter bypass mode
17-
lbu t1, 0(a0)
17+
lbu t1, 0(a0)
1818
ori t1, t1, 0x1
1919
sb t1, 0(a0)
2020
call flashio_wait_bypass_ready
@@ -40,7 +40,7 @@ j flashio_xfer
4040

4141
flashio_done:
4242
# exit bypass mode
43-
lbu t1, 0(a0)
43+
lbu t1, 0(a0)
4444
andi t1, t1, 0xFE
4545
sb t1, 0(a0)
4646

chipflow_lib/software/drivers/spiflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool spiflash_is_winbond(volatile spiflash_regs_t *flash) {
3939
if ((id & 0x00ff0000) == WINBOND_ID<<16) return true;
4040
else return false;
4141
}
42-
42+
4343
void spiflash_set_qspi_flag(volatile spiflash_regs_t *flash) {
4444
uint8_t buffer[8];
4545

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: BSD-2-Clause
22
import itertools
33
import logging
4-
import pytest #noqa
4+
import pytest #noqa
55

66
from pprint import pformat
77

@@ -102,4 +102,4 @@ def test_pin_annotation_as_json():
102102
print(f"json_output: {json_output}") # Debug print using print()
103103
assert isinstance(json_output, dict)
104104
assert json_output["direction"] == "io"
105-
assert json_output["width"] == 8
105+
assert json_output["width"] == 8

0 commit comments

Comments
 (0)