Rev 38 | Rev 45 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 38 | Rev 40 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | PA1 ------> ADC1_IN1 |
105 | PA1 ------> ADC1_IN1 |
106 | PA2 ------> ADC1_IN2 |
106 | PA2 ------> ADC1_IN2 |
107 | PA3 ------> ADC1_IN3 |
107 | PA3 ------> ADC1_IN3 |
108 | PA4 ------> ADC1_IN4 |
108 | PA4 ------> ADC1_IN4 |
109 | */ |
109 | */ |
110 | GPIO_InitStruct.Pin = V_Batt1_Pin|V_Batt2_Pin|V_Oil_Pin|V_Map_Pin |
110 | GPIO_InitStruct.Pin = V_Batt1_Pin|V_Batt2_Pin|V_Map_Pin|V_Oil_Pin |
111 | |V_Oil_Temp_Pin; |
111 | |V_Oil_Temp_Pin; |
112 | GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; |
112 | GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; |
113 | HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
113 | HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); |
114 | 114 | ||
115 | /* ADC1 DMA Init */ |
115 | /* ADC1 DMA Init */ |
Line 157... | Line 157... | ||
157 | PA1 ------> ADC1_IN1 |
157 | PA1 ------> ADC1_IN1 |
158 | PA2 ------> ADC1_IN2 |
158 | PA2 ------> ADC1_IN2 |
159 | PA3 ------> ADC1_IN3 |
159 | PA3 ------> ADC1_IN3 |
160 | PA4 ------> ADC1_IN4 |
160 | PA4 ------> ADC1_IN4 |
161 | */ |
161 | */ |
162 | HAL_GPIO_DeInit(GPIOA, V_Batt1_Pin|V_Batt2_Pin|V_Oil_Pin|V_Map_Pin |
162 | HAL_GPIO_DeInit(GPIOA, V_Batt1_Pin|V_Batt2_Pin|V_Map_Pin|V_Oil_Pin |
163 | |V_Oil_Temp_Pin); |
163 | |V_Oil_Temp_Pin); |
164 | 164 | ||
165 | /* ADC1 DMA DeInit */ |
165 | /* ADC1 DMA DeInit */ |
166 | HAL_DMA_DeInit(hadc->DMA_Handle); |
166 | HAL_DMA_DeInit(hadc->DMA_Handle); |
167 | /* USER CODE BEGIN ADC1_MspDeInit 1 */ |
167 | /* USER CODE BEGIN ADC1_MspDeInit 1 */ |