working dac dma

This commit is contained in:
2023-12-13 21:26:21 +01:00
parent ca96771e90
commit 75d8c8560d
15 changed files with 59265 additions and 216 deletions

View File

@@ -40,7 +40,7 @@ void MX_TIM7_Init(void)
/* USER CODE END TIM7_Init 1 */
htim7.Instance = TIM7;
htim7.Init.Prescaler = 0;
htim7.Init.Prescaler = 1000;
htim7.Init.CounterMode = TIM_COUNTERMODE_UP;
htim7.Init.Period = 169;
htim7.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
@@ -86,6 +86,16 @@ void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* tim_baseHandle)
/* USER CODE END TIM7_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_TIM7_CLK_DISABLE();
/* TIM7 interrupt Deinit */
/* USER CODE BEGIN TIM7:TIM7_DAC_IRQn disable */
/**
* Uncomment the line below to disable the "TIM7_DAC_IRQn" interrupt
* Be aware, disabling shared interrupt may affect other IPs
*/
/* HAL_NVIC_DisableIRQ(TIM7_DAC_IRQn); */
/* USER CODE END TIM7:TIM7_DAC_IRQn disable */
/* USER CODE BEGIN TIM7_MspDeInit 1 */
/* USER CODE END TIM7_MspDeInit 1 */