We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca37d9e commit 515c4a0Copy full SHA for 515c4a0
1 file changed
hal/spi/spi_drv_stm32f4.h
@@ -4,8 +4,8 @@
4
/** SPI settings **/
5
6
#define SPI1 (0x40013000)/* SPI1 base address */
7
-#define SPI_CS_FLASH 3 /* Flash CS connected to GPIOE1 */
8
-#define SPI_CS_TPM 1 /* TPM CS connected to GPIOE0 */
+#define SPI_CS_FLASH 1 /* Flash CS connected to GPIOE1 */
+#define SPI_CS_TPM 0 /* TPM CS connected to GPIOE0 */
9
#define SPI1_PIN_AF 5 /* Alternate function for SPI pins */
10
#define SPI1_CLOCK_PIN 3 /* SPI_SCK: PB3 */
11
#define SPI1_MISO_PIN 4 /* SPI_MISO PB4 */
@@ -40,7 +40,7 @@
40
#define SPI1_APB2_CLOCK_ER_VAL (1 << 12)
41
42
43
-#define CLOCK_SPEED (168000000)
+#define CLOCK_SPEED (168000000)
44
45
46
#define AHB1_CLOCK_ER (*(volatile uint32_t *)(0x40023830))
0 commit comments