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
@@ -70,6 +70,8 @@ void Error_Handler(void);
#define ENCODER_S_EXTI4_EXTI_IRQn EXTI4_15_IRQn
#define BUZZER_PWM_OUT_Pin GPIO_PIN_8
#define BUZZER_PWM_OUT_GPIO_Port GPIOA
#define SPI1_CS_Pin GPIO_PIN_3
#define SPI1_CS_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */