/* USER CODE BEGIN Header */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include"main.h" #include"adc.h" #include"dma.h" #include"i2c.h" #include"tim.h" #include"usart.h" #include"gpio.h"
/* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include"ssd1306.h" #include"stdio.h" #include"Delay.h" /* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */
/* Private function prototypes -----------------------------------------------*/ voidSystemClock_Config(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ int ERR = 0; char bufnum[7]; volatileuint16_t ADC_Value[9]; uint16_t ADC_Vout,ADC_Fb,ADC_Vin,ADC_TEMP0,ADC_TEMP1,ADC_KNOB0,ADC_KNOB1,ADC_SW,ADC_TEMPSTM; float Vout,Iout,Vin,TEMP0,TEMP1,KNOB0,KNOB1,SW,TEMPSTM; int status_SW,status_KNOB; int DIM_9209; /* USER CODE END 0 */
/** * @brief The application entry point. * @retval int */ intmain(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */
/** * @brief This function is executed in case of error occurrence. * @retval None */ voidError_Handler(void) { /* USER CODE BEGIN Error_Handler_Debug */ /* USER CODE END Error_Handler_Debug */ }
#ifdef USE_FULL_ASSERT /** * @brief Reports the name of the source file and the source line number * where the assert_param error has occurred. * @param file: pointer to the source file name * @param line: assert_param error line source number * @retval None */ voidassert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ /* USER CODE END 6 */ } #endif/* USE_FULL_ASSERT */
The domain name of this website has been changed to triority.cc(Using CDN via cloudflare, recommended) / www.triority.cc(Connecting directly, works better in Chinese mainland). Please contact me if you have any questions.