Skip to content

Commit 1a2a85c

Browse files
authored
Fiy a typo and clarify one comment (#189)
1 parent 6bb6602 commit 1a2a85c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spi/spi_dma/spi_dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main() {
5050
}
5151

5252
// We set the outbound DMA to transfer from a memory buffer to the SPI transmit FIFO paced by the SPI TX FIFO DREQ
53-
// The default is for the read address to increment every element (in this case 1 byte - DMA_SIZE_8)
53+
// The default is for the read address to increment every element (in this case 1 byte = DMA_SIZE_8)
5454
// and for the write address to remain unchanged.
5555

5656
printf("Configure TX DMA\n");
@@ -66,7 +66,7 @@ int main() {
6666
printf("Configure RX DMA\n");
6767

6868
// We set the inbound DMA to transfer from the SPI receive FIFO to a memory buffer paced by the SPI RX FIFO DREQ
69-
// We coinfigure the read address to remain unchanged for each element, but the write
69+
// We configure the read address to remain unchanged for each element, but the write
7070
// address to increment (so data is written throughout the buffer)
7171
c = dma_channel_get_default_config(dma_rx);
7272
channel_config_set_transfer_data_size(&c, DMA_SIZE_8);

0 commit comments

Comments
 (0)