/* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */ SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */ MX_GPIO_Init(); MX_USART1_UART_Init(); MX_TIM2_Init(); HAL_TIM_Base_Start_IT(&htim2); /* USER CODE BEGIN 2 */ // /* USER CODE END 2 */
/* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */
/* USER CODE BEGIN PV */ voidkeys(void); uint8_tkey_judge(void); /* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/ voidSystemClock_Config(void); /* USER CODE BEGIN PFP */ voidset_dac(float v);
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/** * @brief The application entry point. * @retval int */ intmain(void) { /* USER CODE BEGIN 1 */
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */ SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */ MX_GPIO_Init(); MX_USART1_UART_Init(); MX_TIM2_Init(); MX_RTC_Init(); MX_SDIO_SD_Init(); MX_FSMC_Init(); MX_TIM3_Init(); MX_DAC_Init(); /* USER CODE BEGIN 2 */ /* USER CODE BEGIN 1 */ uint8_t key = 0; /* USER CODE END 1 */ /* USER CODE END 2 */
/* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */