优化
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ extern "C" {
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EM */
|
||||
#define VERSION_STR "V1.0.0"
|
||||
#define VERSION_STR "V1.1.0"
|
||||
#ifdef BOOTLOADER
|
||||
#define SW_VER "BL for " VERSION_STR
|
||||
#else
|
||||
|
||||
+4
-4
@@ -151,9 +151,9 @@ int main(void)
|
||||
{
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
// #ifndef BOOTLOADER
|
||||
// SCB->VTOR = 0x30000000;
|
||||
// #endif
|
||||
#ifndef BOOTLOADER
|
||||
SCB->VTOR = 0x30000000;
|
||||
#endif
|
||||
/* USER CODE END 1 */
|
||||
|
||||
/* MPU Configuration--------------------------------------------------------*/
|
||||
@@ -542,7 +542,7 @@ static void MX_SPI1_Init(void)
|
||||
hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||
hspi1.Init.CRCPolynomial = 0x0;
|
||||
hspi1.Init.NSSPMode = SPI_NSS_PULSE_ENABLE;
|
||||
hspi1.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
|
||||
hspi1.Init.NSSPolarity = SPI_NSS_POLARITY_LOW;
|
||||
hspi1.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA;
|
||||
hspi1.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN;
|
||||
|
||||
Reference in New Issue
Block a user