Commit 0cd6379f authored by Flax's avatar Flax

Re-done ADC configuration.

parent cac76c6d
......@@ -388,5 +388,7 @@
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="refreshScope"/>
</cproject>
This diff is collapsed.
/*
* analogh.h
*
* Created on: Apr 28, 2021
* Author: Florian
*/
#ifndef INC_ANALOGH_H_
#define INC_ANALOGH_H_
void AnalogH_Init (void);
void AnalogH_Start(void);
void AnalogH_Stop(void);
#endif /* INC_ANALOGH_H_ */
......@@ -34,6 +34,7 @@ extern "C" {
/* USER CODE BEGIN Includes */
#include "common.h"
#include "timemgt.h"
#include "analogh.h"
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
......@@ -111,16 +112,12 @@ void MAINTask1ms (void);
#define LD1_GPIO_Port GPIOB
#define DIG_IN_1_Pin GPIO_PIN_11
#define DIG_IN_1_GPIO_Port GPIOF
#define DIG_IN_2_Pin GPIO_PIN_12
#define DIG_IN_2_GPIO_Port GPIOF
#define DIG_IN_3_Pin GPIO_PIN_13
#define DIG_IN_3_GPIO_Port GPIOF
#define DIG_IN_4_Pin GPIO_PIN_14
#define DIG_IN_4_GPIO_Port GPIOF
#define DIG_IN_5_Pin GPIO_PIN_15
#define DIG_IN_5_GPIO_Port GPIOF
#define LED_CMD_1_Pin GPIO_PIN_0
#define LED_CMD_1_GPIO_Port GPIOG
#define LED_CMD_2_Pin GPIO_PIN_1
#define LED_CMD_2_GPIO_Port GPIOG
#define RMII_TXD1_Pin GPIO_PIN_13
......
......@@ -33,7 +33,7 @@
*/
#define HAL_MODULE_ENABLED
/*#define HAL_ADC_MODULE_ENABLED */
#define HAL_ADC_MODULE_ENABLED
/*#define HAL_CRYP_MODULE_ENABLED */
#define HAL_CAN_MODULE_ENABLED
/*#define HAL_CAN_LEGACY_MODULE_ENABLED */
......
/*
* analogh.c
*
* Created on: Apr 28, 2021
* Author: Florian
*/
#include "analogh.h"
void AnalogH_Init (void)
{
}
void AnalogH_Start(void)
{
}
void AnalogH_Stop(void)
{
}
......@@ -41,6 +41,10 @@
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
ADC_HandleTypeDef hadc1;
ADC_HandleTypeDef hadc2;
ADC_HandleTypeDef hadc3;
CAN_HandleTypeDef hcan1;
I2C_HandleTypeDef hi2c1;
......@@ -63,6 +67,9 @@ DMA_HandleTypeDef hdma_usart2_tx;
* TIM8 : analog outputs PWM (APB2 @ 60MHz)
*
* */
uint32_t AnalogValue_ADC1_U32A[4U];
uint32_t AnalogValue_ADC2_U32A[4U];
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
......@@ -77,6 +84,9 @@ static void MX_USART2_UART_Init(void);
static void MX_TIM1_Init(void);
static void MX_TIM6_Init(void);
static void MX_TIM8_Init(void);
static void MX_ADC1_Init(void);
static void MX_ADC2_Init(void);
static void MX_ADC3_Init(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
......@@ -124,6 +134,9 @@ int main(void)
MX_TIM1_Init();
MX_TIM6_Init();
MX_TIM8_Init();
MX_ADC1_Init();
MX_ADC2_Init();
MX_ADC3_Init();
/* USER CODE BEGIN 2 */
TimeMgt_Init();
/* USER CODE END 2 */
......@@ -136,6 +149,10 @@ int main(void)
// Start 1ms interrupt
HAL_TIM_Base_Start_IT(&htim6);
// ADC DMA start
HAL_ADC_Start_DMA(&hadc1, (uint32_t*)&AnalogValue_ADC1_U32A[0], 4U);
HAL_ADC_Start_DMA(&hadc1, (uint32_t*)&AnalogValue_ADC2_U32A[0], 4U);
while (1)
{
/* USER CODE END WHILE */
......@@ -185,6 +202,156 @@ void SystemClock_Config(void)
}
}
/**
* @brief ADC1 Initialization Function
* @param None
* @retval None
*/
static void MX_ADC1_Init(void)
{
/* USER CODE BEGIN ADC1_Init 0 */
/* USER CODE END ADC1_Init 0 */
ADC_ChannelConfTypeDef sConfig = {0};
/* USER CODE BEGIN ADC1_Init 1 */
/* USER CODE END ADC1_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc1.Instance = ADC1;
hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2;
hadc1.Init.Resolution = ADC_RESOLUTION_12B;
hadc1.Init.ScanConvMode = DISABLE;
hadc1.Init.ContinuousConvMode = DISABLE;
hadc1.Init.DiscontinuousConvMode = DISABLE;
hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc1.Init.NbrOfConversion = 1;
hadc1.Init.DMAContinuousRequests = DISABLE;
hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
if (HAL_ADC_Init(&hadc1) != HAL_OK)
{
Error_Handler();
}
/** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_3;
sConfig.Rank = 1;
sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;
if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC1_Init 2 */
/* USER CODE END ADC1_Init 2 */
}
/**
* @brief ADC2 Initialization Function
* @param None
* @retval None
*/
static void MX_ADC2_Init(void)
{
/* USER CODE BEGIN ADC2_Init 0 */
/* USER CODE END ADC2_Init 0 */
ADC_ChannelConfTypeDef sConfig = {0};
/* USER CODE BEGIN ADC2_Init 1 */
/* USER CODE END ADC2_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc2.Instance = ADC2;
hadc2.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2;
hadc2.Init.Resolution = ADC_RESOLUTION_12B;
hadc2.Init.ScanConvMode = DISABLE;
hadc2.Init.ContinuousConvMode = DISABLE;
hadc2.Init.DiscontinuousConvMode = DISABLE;
hadc2.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc2.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc2.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc2.Init.NbrOfConversion = 1;
hadc2.Init.DMAContinuousRequests = DISABLE;
hadc2.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
if (HAL_ADC_Init(&hadc2) != HAL_OK)
{
Error_Handler();
}
/** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_9;
sConfig.Rank = 1;
sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;
if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC2_Init 2 */
/* USER CODE END ADC2_Init 2 */
}
/**
* @brief ADC3 Initialization Function
* @param None
* @retval None
*/
static void MX_ADC3_Init(void)
{
/* USER CODE BEGIN ADC3_Init 0 */
/* USER CODE END ADC3_Init 0 */
ADC_ChannelConfTypeDef sConfig = {0};
/* USER CODE BEGIN ADC3_Init 1 */
/* USER CODE END ADC3_Init 1 */
/** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc3.Instance = ADC3;
hadc3.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2;
hadc3.Init.Resolution = ADC_RESOLUTION_12B;
hadc3.Init.ScanConvMode = DISABLE;
hadc3.Init.ContinuousConvMode = DISABLE;
hadc3.Init.DiscontinuousConvMode = DISABLE;
hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc3.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc3.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc3.Init.NbrOfConversion = 1;
hadc3.Init.DMAContinuousRequests = DISABLE;
hadc3.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
if (HAL_ADC_Init(&hadc3) != HAL_OK)
{
Error_Handler();
}
/** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_0;
sConfig.Rank = 1;
sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;
if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN ADC3_Init 2 */
/* USER CODE END ADC3_Init 2 */
}
/**
* @brief CAN1 Initialization Function
* @param None
......@@ -618,7 +785,7 @@ static void MX_GPIO_Init(void)
HAL_GPIO_WritePin(GPIOB, LD1_Pin|LD3_Pin|LD2_Pin, GPIO_PIN_RESET);
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOG, LED_CMD_1_Pin|LED_CMD_2_Pin|USB_PowerSwitchOn_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOG, GPIO_PIN_0|LED_CMD_2_Pin|USB_PowerSwitchOn_Pin, GPIO_PIN_RESET);
/*Configure GPIO pins : DIG_IN_6_Pin DIG_IN_7_Pin DIG_IN_8_Pin DIG_IN_9_Pin
DIG_IN_10_Pin */
......@@ -652,41 +819,21 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/*Configure GPIO pins : DIG_IN_1_Pin DIG_IN_2_Pin DIG_IN_3_Pin DIG_IN_4_Pin
/*Configure GPIO pins : DIG_IN_1_Pin PF12 DIG_IN_3_Pin DIG_IN_4_Pin
DIG_IN_5_Pin */
GPIO_InitStruct.Pin = DIG_IN_1_Pin|DIG_IN_2_Pin|DIG_IN_3_Pin|DIG_IN_4_Pin
GPIO_InitStruct.Pin = DIG_IN_1_Pin|GPIO_PIN_12|DIG_IN_3_Pin|DIG_IN_4_Pin
|DIG_IN_5_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
/*Configure GPIO pins : LED_CMD_1_Pin LED_CMD_2_Pin USB_PowerSwitchOn_Pin */
GPIO_InitStruct.Pin = LED_CMD_1_Pin|LED_CMD_2_Pin|USB_PowerSwitchOn_Pin;
/*Configure GPIO pins : PG0 LED_CMD_2_Pin USB_PowerSwitchOn_Pin */
GPIO_InitStruct.Pin = GPIO_PIN_0|LED_CMD_2_Pin|USB_PowerSwitchOn_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
/*Configure GPIO pins : PB12 PB15 */
GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/*Configure GPIO pins : PD10 PD11 PD12 PD13
PD14 PD15 */
GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13
|GPIO_PIN_14|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
/*Configure GPIO pins : PG2 PG3 PG4 PG5 */
GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
/*Configure GPIO pin : USB_OverCurrent_Pin */
GPIO_InitStruct.Pin = USB_OverCurrent_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
......@@ -749,3 +896,4 @@ void assert_failed(uint8_t *file, uint32_t line)
#endif /* USE_FULL_ASSERT */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
......@@ -82,6 +82,163 @@ void HAL_MspInit(void)
/* USER CODE END MspInit 1 */
}
/**
* @brief ADC MSP Initialization
* This function configures the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspInit 0 */
/* USER CODE END ADC1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_ADC1_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/**ADC1 GPIO Configuration
PA3 ------> ADC1_IN3
PA4 ------> ADC1_IN4
PA5 ------> ADC1_IN5
PA6 ------> ADC1_IN6
*/
GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USER CODE BEGIN ADC1_MspInit 1 */
/* USER CODE END ADC1_MspInit 1 */
}
else if(hadc->Instance==ADC2)
{
/* USER CODE BEGIN ADC2_MspInit 0 */
/* USER CODE END ADC2_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_ADC2_CLK_ENABLE();
__HAL_RCC_GPIOC_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
/**ADC2 GPIO Configuration
PC0 ------> ADC2_IN10
PC2 ------> ADC2_IN12
PC3 ------> ADC2_IN13
PB1 ------> ADC2_IN9
*/
GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_2|GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_1;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/* USER CODE BEGIN ADC2_MspInit 1 */
/* USER CODE END ADC2_MspInit 1 */
}
else if(hadc->Instance==ADC3)
{
/* USER CODE BEGIN ADC3_MspInit 0 */
/* USER CODE END ADC3_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_ADC3_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/**ADC3 GPIO Configuration
PA0-WKUP ------> ADC3_IN0
*/
GPIO_InitStruct.Pin = GPIO_PIN_0;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USER CODE BEGIN ADC3_MspInit 1 */
/* USER CODE END ADC3_MspInit 1 */
}
}
/**
* @brief ADC MSP De-Initialization
* This function freeze the hardware resources used in this example
* @param hadc: ADC handle pointer
* @retval None
*/
void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
{
if(hadc->Instance==ADC1)
{
/* USER CODE BEGIN ADC1_MspDeInit 0 */
/* USER CODE END ADC1_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC1_CLK_DISABLE();
/**ADC1 GPIO Configuration
PA3 ------> ADC1_IN3
PA4 ------> ADC1_IN4
PA5 ------> ADC1_IN5
PA6 ------> ADC1_IN6
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6);
/* USER CODE BEGIN ADC1_MspDeInit 1 */
/* USER CODE END ADC1_MspDeInit 1 */
}
else if(hadc->Instance==ADC2)
{
/* USER CODE BEGIN ADC2_MspDeInit 0 */
/* USER CODE END ADC2_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC2_CLK_DISABLE();
/**ADC2 GPIO Configuration
PC0 ------> ADC2_IN10
PC2 ------> ADC2_IN12
PC3 ------> ADC2_IN13
PB1 ------> ADC2_IN9
*/
HAL_GPIO_DeInit(GPIOC, GPIO_PIN_0|GPIO_PIN_2|GPIO_PIN_3);
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_1);
/* USER CODE BEGIN ADC2_MspDeInit 1 */
/* USER CODE END ADC2_MspDeInit 1 */
}
else if(hadc->Instance==ADC3)
{
/* USER CODE BEGIN ADC3_MspDeInit 0 */
/* USER CODE END ADC3_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_ADC3_CLK_DISABLE();
/**ADC3 GPIO Configuration
PA0-WKUP ------> ADC3_IN0
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0);
/* USER CODE BEGIN ADC3_MspDeInit 1 */
/* USER CODE END ADC3_MspDeInit 1 */
}
}
/**
* @brief CAN MSP Initialization
* This function configures the hardware resources used in this example
......@@ -402,20 +559,12 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
/* Peripheral clock enable */
__HAL_RCC_USART2_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOD_CLK_ENABLE();
/**USART2 GPIO Configuration
PA3 ------> USART2_RX
PD5 ------> USART2_TX
PD6 ------> USART2_RX
*/
GPIO_InitStruct.Pin = GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_5;
GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
......@@ -507,12 +656,10 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
__HAL_RCC_USART2_CLK_DISABLE();
/**USART2 GPIO Configuration
PA3 ------> USART2_RX
PD5 ------> USART2_TX
PD6 ------> USART2_RX
*/
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_3);
HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5);
HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5|GPIO_PIN_6);
/* USART2 DMA DeInit */
HAL_DMA_DeInit(huart->hdmarx);
......
analogh.c:10:6:AnalogH_Init 4 static
analogh.c:15:6:AnalogH_Start 4 static
analogh.c:20:6:AnalogH_Stop 4 static
main.c:93:5:main 8 static
main.c:152:6:SystemClock_Config 80 static
main.c:193:13:MX_CAN1_Init 8 static
main.c:230:13:MX_I2C1_Init 8 static
main.c:264:13:MX_TIM1_Init 96 static
main.c:351:13:MX_TIM2_Init 32 static
main.c:396:13:MX_TIM6_Init 16 static
main.c:434:13:MX_TIM8_Init 96 static
main.c:513:13:MX_USART2_UART_Init 8 static
main.c:546:13:MX_USART3_UART_Init 8 static
main.c:577:13:MX_DMA_Init 16 static
main.c:598:13:MX_GPIO_Init 64 static
main.c:713:6:MAINTask1ms 8 static
main.c:723:6:Error_Handler 4 static,ignoring_inline_asm
main.c:103:5:main 8 static
main.c:169:6:SystemClock_Config 80 static
main.c:210:13:MX_ADC1_Init 24 static
main.c:260:13:MX_ADC2_Init 24 static
main.c:310:13:MX_ADC3_Init 24 static
main.c:360:13:MX_CAN1_Init 8 static
main.c:397:13:MX_I2C1_Init 8 static
main.c:431:13:MX_TIM1_Init 96 static
main.c:518:13:MX_TIM2_Init 32 static
main.c:563:13:MX_TIM6_Init 16 static
main.c:601:13:MX_TIM8_Init 96 static
main.c:680:13:MX_USART2_UART_Init 8 static
main.c:713:13:MX_USART3_UART_Init 8 static
main.c:744:13:MX_DMA_Init 16 static
main.c:765:13:MX_GPIO_Init 64 static
main.c:860:6:MAINTask1ms 8 static
main.c:870:6:Error_Handler 4 static,ignoring_inline_asm
stm32f2xx_hal_msp.c:69:6:HAL_MspInit 16 static
stm32f2xx_hal_msp.c:91:6:HAL_CAN_MspInit 48 static
stm32f2xx_hal_msp.c:130:6:HAL_CAN_MspDeInit 16 static
stm32f2xx_hal_msp.c:161:6:HAL_I2C_MspInit 48 static
stm32f2xx_hal_msp.c:197:6:HAL_I2C_MspDeInit 16 static
stm32f2xx_hal_msp.c:228:6:HAL_TIM_Base_MspInit 32 static
stm32f2xx_hal_msp.c:280:6:HAL_TIM_MspPostInit 48 static
stm32f2xx_hal_msp.c:336:6:HAL_TIM_Base_MspDeInit 16 static
stm32f2xx_hal_msp.c:394:6:HAL_UART_MspInit 56 static
stm32f2xx_hal_msp.c:499:6:HAL_UART_MspDeInit 16 static
stm32f2xx_hal_msp.c:91:6:HAL_ADC_MspInit 64 static
stm32f2xx_hal_msp.c:178:6:HAL_ADC_MspDeInit 16 static
stm32f2xx_hal_msp.c:248:6:HAL_CAN_MspInit 48 static
stm32f2xx_hal_msp.c:287:6:HAL_CAN_MspDeInit 16 static
stm32f2xx_hal_msp.c:318:6:HAL_I2C_MspInit 48 static
stm32f2xx_hal_msp.c:354:6:HAL_I2C_MspDeInit 16 static
stm32f2xx_hal_msp.c:385:6:HAL_TIM_Base_MspInit 32 static
stm32f2xx_hal_msp.c:437:6:HAL_TIM_MspPostInit 48 static
stm32f2xx_hal_msp.c:493:6:HAL_TIM_Base_MspDeInit 16 static
stm32f2xx_hal_msp.c:551:6:HAL_UART_MspInit 56 static
stm32f2xx_hal_msp.c:648:6:HAL_UART_MspDeInit 16 static
......@@ -5,6 +5,7 @@
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Core/Src/analogh.c \
../Core/Src/main.c \
../Core/Src/stm32f2xx_hal_msp.c \
../Core/Src/stm32f2xx_it.c \
......@@ -14,6 +15,7 @@ C_SRCS += \
../Core/Src/timemgt.c
OBJS += \
./Core/Src/analogh.o \
./Core/Src/main.o \
./Core/Src/stm32f2xx_hal_msp.o \
./Core/Src/stm32f2xx_it.o \
......@@ -23,6 +25,7 @@ OBJS += \
./Core/Src/timemgt.o
C_DEPS += \
./Core/Src/analogh.d \
./Core/Src/main.d \
./Core/Src/stm32f2xx_hal_msp.d \
./Core/Src/stm32f2xx_it.d \
......@@ -33,6 +36,8 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Core/Src/analogh.o: ../Core/Src/analogh.c Core/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/analogh.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Core/Src/main.o: ../Core/Src/main.c Core/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Core/Src/main.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Core/Src/stm32f2xx_hal_msp.o: ../Core/Src/stm32f2xx_hal_msp.c Core/Src/subdir.mk
......
stm32f2xx_hal_adc.c:312:19:HAL_ADC_Init 24 static
stm32f2xx_hal_adc.c:406:19:HAL_ADC_DeInit 24 static
stm32f2xx_hal_adc.c:665:13:HAL_ADC_MspInit 16 static
stm32f2xx_hal_adc.c:680:13:HAL_ADC_MspDeInit 16 static
stm32f2xx_hal_adc.c:719:19:HAL_ADC_Start 24 static
stm32f2xx_hal_adc.c:828:19:HAL_ADC_Stop 16 static
stm32f2xx_hal_adc.c:871:19:HAL_ADC_PollForConversion 24 static
stm32f2xx_hal_adc.c:956:19:HAL_ADC_PollForEvent 32 static
stm32f2xx_hal_adc.c:1018:19:HAL_ADC_Start_IT 24 static
stm32f2xx_hal_adc.c:1129:19:HAL_ADC_Stop_IT 16 static
stm32f2xx_hal_adc.c:1166:6:HAL_ADC_IRQHandler 24 static
stm32f2xx_hal_adc.c:1327:19:HAL_ADC_Start_DMA 32 static
stm32f2xx_hal_adc.c:1454:19:HAL_ADC_Stop_DMA 24 static
stm32f2xx_hal_adc.c:1503:10:HAL_ADC_GetValue 16 static
stm32f2xx_hal_adc.c:1515:13:HAL_ADC_ConvCpltCallback 16 static
stm32f2xx_hal_adc.c:1530:13:HAL_ADC_ConvHalfCpltCallback 16 static
stm32f2xx_hal_adc.c:1545:13:HAL_ADC_LevelOutOfWindowCallback 16 static
stm32f2xx_hal_adc.c:1566:13:HAL_ADC_ErrorCallback 16 static
stm32f2xx_hal_adc.c:1604:19:HAL_ADC_ConfigChannel 24 static
stm32f2xx_hal_adc.c:1710:19:HAL_ADC_AnalogWDGConfig 16 static
stm32f2xx_hal_adc.c:1792:10:HAL_ADC_GetState 16 static
stm32f2xx_hal_adc.c:1804:10:HAL_ADC_GetError 16 static
stm32f2xx_hal_adc.c:1824:13:ADC_Init 24 static,ignoring_inline_asm
stm32f2xx_hal_adc.c:1905:13:ADC_DMAConvCplt 24 static
stm32f2xx_hal_adc.c:1974:13:ADC_DMAHalfConvCplt 24 static
stm32f2xx_hal_adc.c:1992:13:ADC_DMAError 24 static
stm32f2xx_hal_adc_ex.c:148:19:HAL_ADCEx_InjectedStart 32 static
stm32f2xx_hal_adc_ex.c:245:19:HAL_ADCEx_InjectedStart_IT 32 static
stm32f2xx_hal_adc_ex.c:350:19:HAL_ADCEx_InjectedStop 24 static
stm32f2xx_hal_adc_ex.c:404:19:HAL_ADCEx_InjectedPollForConversion 24 static
stm32f2xx_hal_adc_ex.c:471:19:HAL_ADCEx_InjectedStop_IT 24 static
stm32f2xx_hal_adc_ex.c:533:10:HAL_ADCEx_InjectedGetValue 24 static
stm32f2xx_hal_adc_ex.c:584:19:HAL_ADCEx_MultiModeStart_DMA 32 static
stm32f2xx_hal_adc_ex.c:705:19:HAL_ADCEx_MultiModeStop_DMA 24 static
stm32f2xx_hal_adc_ex.c:752:10:HAL_ADCEx_MultiModeGetValue 16 static
stm32f2xx_hal_adc_ex.c:766:13:HAL_ADCEx_InjectedConvCpltCallback 16 static
stm32f2xx_hal_adc_ex.c:783:19:HAL_ADCEx_InjectedConfigChannel 16 static
stm32f2xx_hal_adc_ex.c:939:19:HAL_ADCEx_MultiModeConfigChannel 16 static
stm32f2xx_hal_adc_ex.c:978:13:ADC_MultiModeDMAConvCplt 24 static
stm32f2xx_hal_adc_ex.c:1031:13:ADC_MultiModeDMAHalfConvCplt 24 static
stm32f2xx_hal_adc_ex.c:1044:13:ADC_MultiModeDMAError 24 static
......@@ -6,6 +6,8 @@
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.c \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.c \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.c \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.c \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_cortex.c \
../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_dma.c \
......@@ -26,6 +28,8 @@ C_SRCS += \
OBJS += \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.o \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.o \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.o \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.o \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_cortex.o \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_dma.o \
......@@ -46,6 +50,8 @@ OBJS += \
C_DEPS += \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.d \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.d \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.d \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.d \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_cortex.d \
./Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_dma.d \
......@@ -68,6 +74,10 @@ C_DEPS += \
# Each subdirectory must supply rules for building sources it contributes
Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.o: ../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.c Drivers/STM32F2xx_HAL_Driver/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.o: ../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.c Drivers/STM32F2xx_HAL_Driver/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.o: ../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.c Drivers/STM32F2xx_HAL_Driver/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_adc_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.o: ../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.c Drivers/STM32F2xx_HAL_Driver/Src/subdir.mk
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F207xx -c -I../Core/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc -I../Drivers/STM32F2xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F2xx/Include -I../Drivers/CMSIS/Include -I../LWIP/App -I../LWIP/Target -I../Middlewares/Third_Party/LwIP/src/include -I../Middlewares/Third_Party/LwIP/system -I../Middlewares/Third_Party/LwIP/src/include/netif/ppp -I../Middlewares/Third_Party/LwIP/src/include/lwip -I../Middlewares/Third_Party/LwIP/src/include/lwip/apps -I../Middlewares/Third_Party/LwIP/src/include/lwip/priv -I../Middlewares/Third_Party/LwIP/src/include/lwip/prot -I../Middlewares/Third_Party/LwIP/src/include/netif -I../Middlewares/Third_Party/LwIP/src/include/posix -I../Middlewares/Third_Party/LwIP/src/include/posix/sys -I../Middlewares/Third_Party/LwIP/system/arch -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_can.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_cortex.o: ../Drivers/STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_cortex.c Drivers/STM32F2xx_HAL_Driver/Src/subdir.mk
......
This diff is collapsed.