Skip to content

Commit a96317d

Browse files
committed
requested style changes
1 parent 3d1b6d9 commit a96317d

File tree

1 file changed

+3
-1
lines changed
  • ports/stm32f4/common-hal/busio

1 file changed

+3
-1
lines changed

ports/stm32f4/common-hal/busio/SPI.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
#define MAX_SPI 6 //TODO; replace this as part of periph cleanup
4040
#define ALL_CLOCKS 0xFF
41+
42+
//arrays use 0 based numbering: SPI1 is stored at index 0
4143
STATIC bool reserved_spi[MAX_SPI];
4244
STATIC bool never_reset_spi[MAX_SPI];
4345

@@ -360,4 +362,4 @@ STATIC void spi_clock_disable(uint8_t mask) {
360362
#ifdef SPI6
361363
if (mask & 1<<5) __HAL_RCC_SPI6_CLK_DISABLE();
362364
#endif
363-
}
365+
}

0 commit comments

Comments
 (0)