Ignore:
Timestamp:
Dec 3, 2024, 8:26:26 AM (6 weeks ago)
Author:
Zed
Message:

Added SPI module for Display.

Location:
ctrl/firmware/Main/CubeMX
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/Core/Inc/main.h

    r11 r45  
    5858
    5959/* Private defines -----------------------------------------------------------*/
     60#define SPI4_NSS_DISPLAY_Pin GPIO_PIN_11
     61#define SPI4_NSS_DISPLAY_GPIO_Port GPIOE
     62#define SPI4_SCK_DISPLAY_Pin GPIO_PIN_12
     63#define SPI4_SCK_DISPLAY_GPIO_Port GPIOE
     64#define SPI4_MOSI_DISPLAY_Pin GPIO_PIN_14
     65#define SPI4_MOSI_DISPLAY_GPIO_Port GPIOE
    6066
    6167/* USER CODE BEGIN Private defines */
  • ctrl/firmware/Main/CubeMX/Core/Inc/stm32h7xx_hal_conf.h

    r39 r45  
    7373/* #define HAL_MMC_MODULE_ENABLED   */
    7474/* #define HAL_SPDIFRX_MODULE_ENABLED   */
    75 /* #define HAL_SPI_MODULE_ENABLED   */
     75#define HAL_SPI_MODULE_ENABLED
    7676/* #define HAL_SWPMI_MODULE_ENABLED   */
    7777/* #define HAL_TIM_MODULE_ENABLED   */
  • ctrl/firmware/Main/CubeMX/Core/Inc/stm32h7xx_it.h

    r13 r45  
    5656void PendSV_Handler(void);
    5757void SysTick_Handler(void);
     58void DMA1_Stream0_IRQHandler(void);
     59void SPI4_IRQHandler(void);
    5860/* USER CODE BEGIN EFP */
    5961
  • ctrl/firmware/Main/CubeMX/Core/Src/main.c

    r39 r45  
    4444RTC_HandleTypeDef hrtc;
    4545
     46SPI_HandleTypeDef hspi4;
     47DMA_HandleTypeDef hdma_spi4_tx;
     48
    4649/* USER CODE BEGIN PV */
    4750
     
    5255static void MPU_Config(void);
    5356static void MX_GPIO_Init(void);
     57static void MX_DMA_Init(void);
    5458static void MX_RTC_Init(void);
     59static void MX_SPI4_Init(void);
    5560/* USER CODE BEGIN PFP */
    5661
     
    102107  /* Initialize all configured peripherals */
    103108  MX_GPIO_Init();
     109  MX_DMA_Init();
    104110  MX_RTC_Init();
     111  MX_SPI4_Init();
    105112  /* USER CODE BEGIN 2 */
    106113
     
    150157  RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
    151158  RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
    152   RCC_OscInitStruct.PLL.PLLM = 25;
    153   RCC_OscInitStruct.PLL.PLLN = 200;
     159  RCC_OscInitStruct.PLL.PLLM = 5;
     160  RCC_OscInitStruct.PLL.PLLN = 40;
    154161  RCC_OscInitStruct.PLL.PLLP = 2;
    155162  RCC_OscInitStruct.PLL.PLLQ = 2;
    156163  RCC_OscInitStruct.PLL.PLLR = 2;
    157   RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_0;
    158   RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOMEDIUM;
     164  RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
     165  RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
    159166  RCC_OscInitStruct.PLL.PLLFRACN = 0;
    160167  if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
     
    219226
    220227/**
     228  * @brief SPI4 Initialization Function
     229  * @param None
     230  * @retval None
     231  */
     232static void MX_SPI4_Init(void)
     233{
     234
     235  /* USER CODE BEGIN SPI4_Init 0 */
     236
     237  /* USER CODE END SPI4_Init 0 */
     238
     239  /* USER CODE BEGIN SPI4_Init 1 */
     240
     241  /* USER CODE END SPI4_Init 1 */
     242  /* SPI4 parameter configuration*/
     243  hspi4.Instance = SPI4;
     244  hspi4.Init.Mode = SPI_MODE_MASTER;
     245  hspi4.Init.Direction = SPI_DIRECTION_1LINE;
     246  hspi4.Init.DataSize = SPI_DATASIZE_9BIT;
     247  hspi4.Init.CLKPolarity = SPI_POLARITY_LOW;
     248  hspi4.Init.CLKPhase = SPI_PHASE_1EDGE;
     249  hspi4.Init.NSS = SPI_NSS_HARD_OUTPUT;
     250  hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
     251  hspi4.Init.FirstBit = SPI_FIRSTBIT_MSB;
     252  hspi4.Init.TIMode = SPI_TIMODE_DISABLE;
     253  hspi4.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
     254  hspi4.Init.CRCPolynomial = 0x0;
     255  hspi4.Init.NSSPMode = SPI_NSS_PULSE_ENABLE;
     256  hspi4.Init.NSSPolarity = SPI_NSS_POLARITY_LOW;
     257  hspi4.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA;
     258  hspi4.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN;
     259  hspi4.Init.RxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN;
     260  hspi4.Init.MasterSSIdleness = SPI_MASTER_SS_IDLENESS_00CYCLE;
     261  hspi4.Init.MasterInterDataIdleness = SPI_MASTER_INTERDATA_IDLENESS_00CYCLE;
     262  hspi4.Init.MasterReceiverAutoSusp = SPI_MASTER_RX_AUTOSUSP_DISABLE;
     263  hspi4.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_DISABLE;
     264  hspi4.Init.IOSwap = SPI_IO_SWAP_DISABLE;
     265  if (HAL_SPI_Init(&hspi4) != HAL_OK)
     266  {
     267    Error_Handler();
     268  }
     269  /* USER CODE BEGIN SPI4_Init 2 */
     270
     271  /* USER CODE END SPI4_Init 2 */
     272
     273}
     274
     275/**
     276  * Enable DMA controller clock
     277  */
     278static void MX_DMA_Init(void)
     279{
     280
     281  /* DMA controller clock enable */
     282  __HAL_RCC_DMA1_CLK_ENABLE();
     283
     284  /* DMA interrupt init */
     285  /* DMA1_Stream0_IRQn interrupt configuration */
     286  HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 0, 0);
     287  HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
     288
     289}
     290
     291/**
    221292  * @brief GPIO Initialization Function
    222293  * @param None
     
    231302  __HAL_RCC_GPIOC_CLK_ENABLE();
    232303  __HAL_RCC_GPIOH_CLK_ENABLE();
     304  __HAL_RCC_GPIOE_CLK_ENABLE();
    233305
    234306/* USER CODE BEGIN MX_GPIO_Init_2 */
  • ctrl/firmware/Main/CubeMX/Core/Src/stm32h7xx_hal_msp.c

    r39 r45  
    2424
    2525/* USER CODE END Includes */
     26extern DMA_HandleTypeDef hdma_spi4_tx;
    2627
    2728/* Private typedef -----------------------------------------------------------*/
     
    133134}
    134135
     136/**
     137* @brief SPI MSP Initialization
     138* This function configures the hardware resources used in this example
     139* @param hspi: SPI handle pointer
     140* @retval None
     141*/
     142void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi)
     143{
     144  GPIO_InitTypeDef GPIO_InitStruct = {0};
     145  RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
     146  if(hspi->Instance==SPI4)
     147  {
     148  /* USER CODE BEGIN SPI4_MspInit 0 */
     149
     150  /* USER CODE END SPI4_MspInit 0 */
     151
     152  /** Initializes the peripherals clock
     153  */
     154    PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_SPI4;
     155    PeriphClkInitStruct.PLL2.PLL2M = 3;
     156    PeriphClkInitStruct.PLL2.PLL2N = 40;
     157    PeriphClkInitStruct.PLL2.PLL2P = 2;
     158    PeriphClkInitStruct.PLL2.PLL2Q = 11;
     159    PeriphClkInitStruct.PLL2.PLL2R = 2;
     160    PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_3;
     161    PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
     162    PeriphClkInitStruct.PLL2.PLL2FRACN = 0.0;
     163    PeriphClkInitStruct.Spi45ClockSelection = RCC_SPI45CLKSOURCE_PLL2;
     164    if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
     165    {
     166      Error_Handler();
     167    }
     168
     169    /* Peripheral clock enable */
     170    __HAL_RCC_SPI4_CLK_ENABLE();
     171
     172    __HAL_RCC_GPIOE_CLK_ENABLE();
     173    /**SPI4 GPIO Configuration
     174    PE11     ------> SPI4_NSS
     175    PE12     ------> SPI4_SCK
     176    PE14     ------> SPI4_MOSI
     177    */
     178    GPIO_InitStruct.Pin = SPI4_NSS_DISPLAY_Pin|SPI4_SCK_DISPLAY_Pin|SPI4_MOSI_DISPLAY_Pin;
     179    GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
     180    GPIO_InitStruct.Pull = GPIO_NOPULL;
     181    GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
     182    GPIO_InitStruct.Alternate = GPIO_AF5_SPI4;
     183    HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
     184
     185    /* SPI4 DMA Init */
     186    /* SPI4_TX Init */
     187    hdma_spi4_tx.Instance = DMA1_Stream0;
     188    hdma_spi4_tx.Init.Request = DMA_REQUEST_SPI4_TX;
     189    hdma_spi4_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
     190    hdma_spi4_tx.Init.PeriphInc = DMA_PINC_DISABLE;
     191    hdma_spi4_tx.Init.MemInc = DMA_MINC_ENABLE;
     192    hdma_spi4_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
     193    hdma_spi4_tx.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
     194    hdma_spi4_tx.Init.Mode = DMA_NORMAL;
     195    hdma_spi4_tx.Init.Priority = DMA_PRIORITY_LOW;
     196    hdma_spi4_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
     197    if (HAL_DMA_Init(&hdma_spi4_tx) != HAL_OK)
     198    {
     199      Error_Handler();
     200    }
     201
     202    __HAL_LINKDMA(hspi,hdmatx,hdma_spi4_tx);
     203
     204    /* SPI4 interrupt Init */
     205    HAL_NVIC_SetPriority(SPI4_IRQn, 0, 0);
     206    HAL_NVIC_EnableIRQ(SPI4_IRQn);
     207  /* USER CODE BEGIN SPI4_MspInit 1 */
     208
     209  /* USER CODE END SPI4_MspInit 1 */
     210
     211  }
     212
     213}
     214
     215/**
     216* @brief SPI MSP De-Initialization
     217* This function freeze the hardware resources used in this example
     218* @param hspi: SPI handle pointer
     219* @retval None
     220*/
     221void HAL_SPI_MspDeInit(SPI_HandleTypeDef* hspi)
     222{
     223  if(hspi->Instance==SPI4)
     224  {
     225  /* USER CODE BEGIN SPI4_MspDeInit 0 */
     226
     227  /* USER CODE END SPI4_MspDeInit 0 */
     228    /* Peripheral clock disable */
     229    __HAL_RCC_SPI4_CLK_DISABLE();
     230
     231    /**SPI4 GPIO Configuration
     232    PE11     ------> SPI4_NSS
     233    PE12     ------> SPI4_SCK
     234    PE14     ------> SPI4_MOSI
     235    */
     236    HAL_GPIO_DeInit(GPIOE, SPI4_NSS_DISPLAY_Pin|SPI4_SCK_DISPLAY_Pin|SPI4_MOSI_DISPLAY_Pin);
     237
     238    /* SPI4 DMA DeInit */
     239    HAL_DMA_DeInit(hspi->hdmatx);
     240
     241    /* SPI4 interrupt DeInit */
     242    HAL_NVIC_DisableIRQ(SPI4_IRQn);
     243  /* USER CODE BEGIN SPI4_MspDeInit 1 */
     244
     245  /* USER CODE END SPI4_MspDeInit 1 */
     246  }
     247
     248}
     249
    135250/* USER CODE BEGIN 1 */
    136251
  • ctrl/firmware/Main/CubeMX/Core/Src/stm32h7xx_it.c

    r13 r45  
    5656
    5757/* External variables --------------------------------------------------------*/
    58 
     58extern DMA_HandleTypeDef hdma_spi4_tx;
     59extern SPI_HandleTypeDef hspi4;
    5960/* USER CODE BEGIN EV */
    6061
     
    199200/******************************************************************************/
    200201
     202/**
     203  * @brief This function handles DMA1 stream0 global interrupt.
     204  */
     205void DMA1_Stream0_IRQHandler(void)
     206{
     207  /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
     208
     209  /* USER CODE END DMA1_Stream0_IRQn 0 */
     210  HAL_DMA_IRQHandler(&hdma_spi4_tx);
     211  /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
     212
     213  /* USER CODE END DMA1_Stream0_IRQn 1 */
     214}
     215
     216/**
     217  * @brief This function handles SPI4 global interrupt.
     218  */
     219void SPI4_IRQHandler(void)
     220{
     221  /* USER CODE BEGIN SPI4_IRQn 0 */
     222
     223  /* USER CODE END SPI4_IRQn 0 */
     224  HAL_SPI_IRQHandler(&hspi4);
     225  /* USER CODE BEGIN SPI4_IRQn 1 */
     226
     227  /* USER CODE END SPI4_IRQn 1 */
     228}
     229
    201230/* USER CODE BEGIN 1 */
    202231
  • ctrl/firmware/Main/CubeMX/charger.ioc

    r39 r45  
    77CORTEX_M7.IPParameters=default_mode_Activation,CPU_ICache,CPU_DCache
    88CORTEX_M7.default_mode_Activation=1
     9Dma.Request0=SPI4_TX
     10Dma.RequestsNb=1
     11Dma.SPI4_TX.0.Direction=DMA_MEMORY_TO_PERIPH
     12Dma.SPI4_TX.0.EventEnable=DISABLE
     13Dma.SPI4_TX.0.FIFOMode=DMA_FIFOMODE_DISABLE
     14Dma.SPI4_TX.0.Instance=DMA1_Stream0
     15Dma.SPI4_TX.0.MemDataAlignment=DMA_MDATAALIGN_HALFWORD
     16Dma.SPI4_TX.0.MemInc=DMA_MINC_ENABLE
     17Dma.SPI4_TX.0.Mode=DMA_NORMAL
     18Dma.SPI4_TX.0.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD
     19Dma.SPI4_TX.0.PeriphInc=DMA_PINC_DISABLE
     20Dma.SPI4_TX.0.Polarity=HAL_DMAMUX_REQ_GEN_RISING
     21Dma.SPI4_TX.0.Priority=DMA_PRIORITY_LOW
     22Dma.SPI4_TX.0.RequestNumber=1
     23Dma.SPI4_TX.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode,SignalID,Polarity,RequestNumber,SyncSignalID,SyncPolarity,SyncEnable,EventEnable,SyncRequestNumber
     24Dma.SPI4_TX.0.SignalID=NONE
     25Dma.SPI4_TX.0.SyncEnable=DISABLE
     26Dma.SPI4_TX.0.SyncPolarity=HAL_DMAMUX_SYNC_NO_EVENT
     27Dma.SPI4_TX.0.SyncRequestNumber=1
     28Dma.SPI4_TX.0.SyncSignalID=NONE
    929File.Version=6
    1030GPIO.groupedBy=
     
    1535Mcu.Family=STM32H7
    1636Mcu.IP0=CORTEX_M7
    17 Mcu.IP1=MEMORYMAP
    18 Mcu.IP2=NVIC
    19 Mcu.IP3=RCC
    20 Mcu.IP4=RTC
    21 Mcu.IP5=SYS
    22 Mcu.IPNb=6
     37Mcu.IP1=DMA
     38Mcu.IP2=MEMORYMAP
     39Mcu.IP3=NVIC
     40Mcu.IP4=RCC
     41Mcu.IP5=RTC
     42Mcu.IP6=SPI4
     43Mcu.IP7=SYS
     44Mcu.IPNb=8
    2345Mcu.Name=STM32H723ZETx
    2446Mcu.Package=LQFP144
     
    2749Mcu.Pin2=PH0-OSC_IN
    2850Mcu.Pin3=PH1-OSC_OUT
    29 Mcu.Pin4=VP_RTC_VS_RTC_Activate
    30 Mcu.Pin5=VP_SYS_VS_Systick
    31 Mcu.Pin6=VP_MEMORYMAP_VS_MEMORYMAP
    32 Mcu.PinsNb=7
     51Mcu.Pin4=PE11
     52Mcu.Pin5=PE12
     53Mcu.Pin6=PE14
     54Mcu.Pin7=VP_RTC_VS_RTC_Activate
     55Mcu.Pin8=VP_SYS_VS_Systick
     56Mcu.Pin9=VP_MEMORYMAP_VS_MEMORYMAP
     57Mcu.PinsNb=10
    3358Mcu.ThirdPartyNb=0
    3459Mcu.UserConstants=
     
    3762MxDb.Version=DB.6.0.130
    3863NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
     64NVIC.DMA1_Stream0_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true
    3965NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    4066NVIC.ForceEnableDMAVector=true
     
    4470NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    4571NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
     72NVIC.SPI4_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true
    4673NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    4774NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false
     
    5178PC15-OSC32_OUT.Mode=LSE-External-Oscillator
    5279PC15-OSC32_OUT.Signal=RCC_OSC32_OUT
     80PE11.GPIOParameters=GPIO_Label
     81PE11.GPIO_Label=SPI4_NSS_DISPLAY
     82PE11.Locked=true
     83PE11.Mode=NSS_Signal_Hard_Output
     84PE11.Signal=SPI4_NSS
     85PE12.GPIOParameters=GPIO_Label
     86PE12.GPIO_Label=SPI4_SCK_DISPLAY
     87PE12.Locked=true
     88PE12.Mode=Simplex_Bidirectional_Master
     89PE12.Signal=SPI4_SCK
     90PE14.GPIOParameters=GPIO_Label
     91PE14.GPIO_Label=SPI4_MOSI_DISPLAY
     92PE14.Locked=true
     93PE14.Mode=Simplex_Bidirectional_Master
     94PE14.Signal=SPI4_MOSI
    5395PH0-OSC_IN.Mode=HSE-External-Oscillator
    5496PH0-OSC_IN.Signal=RCC_OSC_IN
     
    86128ProjectManager.UAScriptBeforePath=
    87129ProjectManager.UnderRoot=false
    88 ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
    89 RCC.ADCFreq_Value=100000000
     130ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_RTC_Init-RTC-false-HAL-true,5-MX_SPI4_Init-SPI4-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
     131RCC.ADCFreq_Value=166666666.66666666
    90132RCC.AHB12Freq_Value=100000000
    91133RCC.AHB4Freq_Value=100000000
     
    102144RCC.DFSDMACLkFreq_Value=100000000
    103145RCC.DFSDMFreq_Value=100000000
    104 RCC.DIVM1=25
    105 RCC.DIVM2=25
     146RCC.DIVM1=5
     147RCC.DIVM2=3
    106148RCC.DIVM3=25
    107 RCC.DIVN1=200
    108 RCC.DIVN2=200
     149RCC.DIVN1=40
     150RCC.DIVN2=40
    109151RCC.DIVN3=200
    110152RCC.DIVP1Freq_Value=100000000
    111 RCC.DIVP2Freq_Value=100000000
     153RCC.DIVP2Freq_Value=166666666.66666666
    112154RCC.DIVP3Freq_Value=100000000
    113155RCC.DIVQ1Freq_Value=100000000
    114 RCC.DIVQ2Freq_Value=100000000
     156RCC.DIVQ2=11
     157RCC.DIVQ2Freq_Value=30303030.3030303
    115158RCC.DIVQ3Freq_Value=100000000
    116159RCC.DIVR1Freq_Value=100000000
    117 RCC.DIVR2Freq_Value=100000000
     160RCC.DIVR2Freq_Value=166666666.66666666
    118161RCC.DIVR3Freq_Value=100000000
    119162RCC.FDCANFreq_Value=100000000
     
    124167RCC.I2C123Freq_Value=100000000
    125168RCC.I2C4Freq_Value=100000000
    126 RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,D1CPREFreq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVM3,DIVN1,DIVN2,DIVN3,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1Freq_Value,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCClockSelection,RTCFreq_Value,SAI1Freq_Value,SAI4AFreq_Value,SAI4BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
     169RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,D1CPREFreq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVM3,DIVN1,DIVN2,DIVN3,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1Freq_Value,DIVQ2,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLL2FRACN,PLLFRACN,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCClockSelection,RTCFreq_Value,SAI1Freq_Value,SAI4AFreq_Value,SAI4BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Spi45ClockSelection,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
    127170RCC.LPTIM1Freq_Value=100000000
    128171RCC.LPTIM2Freq_Value=100000000
     
    132175RCC.MCO1PinFreq_Value=64000000
    133176RCC.MCO2PinFreq_Value=100000000
     177RCC.PLL2FRACN=0
     178RCC.PLLFRACN=0
    134179RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
    135180RCC.QSPIFreq_Value=100000000
     
    143188RCC.SPDIFRXFreq_Value=100000000
    144189RCC.SPI123Freq_Value=100000000
    145 RCC.SPI45Freq_Value=100000000
     190RCC.SPI45Freq_Value=30303030.3030303
    146191RCC.SPI6Freq_Value=100000000
    147192RCC.SWPMI1Freq_Value=100000000
    148193RCC.SYSCLKFreq_VALUE=100000000
    149194RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
     195RCC.Spi45ClockSelection=RCC_SPI45CLKSOURCE_PLL2
    150196RCC.Tim1OutputFreq_Value=100000000
    151197RCC.Tim2OutputFreq_Value=100000000
     
    155201RCC.USBFreq_Value=100000000
    156202RCC.VCO1OutputFreq_Value=200000000
    157 RCC.VCO2OutputFreq_Value=200000000
     203RCC.VCO2OutputFreq_Value=333333333.3333333
    158204RCC.VCO3OutputFreq_Value=200000000
    159 RCC.VCOInput1Freq_Value=1000000
    160 RCC.VCOInput2Freq_Value=1000000
     205RCC.VCOInput1Freq_Value=5000000
     206RCC.VCOInput2Freq_Value=8333333.333333333
    161207RCC.VCOInput3Freq_Value=1000000
     208SPI4.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_2
     209SPI4.CalculateBaudRate=15.151515 MBits/s
     210SPI4.DataSize=SPI_DATASIZE_9BIT
     211SPI4.Direction=SPI_DIRECTION_1LINE
     212SPI4.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,VirtualNSS,DataSize,BaudRatePrescaler
     213SPI4.Mode=SPI_MODE_MASTER
     214SPI4.VirtualNSS=VM_NSSHARD
     215SPI4.VirtualType=VM_MASTER
    162216VP_MEMORYMAP_VS_MEMORYMAP.Mode=CurAppReg
    163217VP_MEMORYMAP_VS_MEMORYMAP.Signal=MEMORYMAP_VS_MEMORYMAP
Note: See TracChangeset for help on using the changeset viewer.