ADC RESOLUTION 8bit returning 12bit values after switching channels
#include "main.h" #define ADC_BUF_LEN 9000 uint8_t adc_buf[ADC_BUF_LEN]; uint8_t ch = 0; ADC_HandleTypeDef hadc; DMA_HandleTypeDef hdma_adc; TIM_HandleTypeDef htim2; void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_...