commit for SPI1 config, working on 32 Mbit/s speed with low clock polarity (CPOL) and first edge clock phase (CPHA); PB3 has now been set as SPI1_CS pin with named user label, working on push pull mode.

This commit is contained in:
2026-09-14 10:27:29 +08:00
parent 23eb7b4e27
commit 1f6822dcbe
14 changed files with 8073 additions and 21 deletions
+2
View File
@@ -22,6 +22,7 @@
#include "adc.h"
#include "dma.h"
#include "i2c.h"
#include "spi.h"
#include "tim.h"
#include "usart.h"
#include "gpio.h"
@@ -99,6 +100,7 @@ int main(void)
MX_I2C1_Init();
MX_I2C2_Init();
MX_ADC1_Init();
MX_SPI1_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */