终于把433通讯整出来了,不过程序空间快不够了要好好优化一下
This commit is contained in:
+3
-2
@@ -68,8 +68,9 @@ void Error_Handler(void);
|
||||
#define ADC_CH1_GPIO_Port GPIOA
|
||||
#define U_T_Pin GPIO_PIN_2
|
||||
#define U_T_GPIO_Port GPIOA
|
||||
#define U_R_Pin GPIO_PIN_3
|
||||
#define U_R_GPIO_Port GPIOA
|
||||
#define infeaed_Pin GPIO_PIN_3
|
||||
#define infeaed_GPIO_Port GPIOA
|
||||
#define infeaed_EXTI_IRQn EXTI2_3_IRQn
|
||||
#define I_R_Pin GPIO_PIN_4
|
||||
#define I_R_GPIO_Port GPIOA
|
||||
#define HC595_DLK_Pin GPIO_PIN_5
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
/*#define HAL_RNG_MODULE_ENABLED */
|
||||
/*#define HAL_RTC_MODULE_ENABLED */
|
||||
/*#define HAL_SPI_MODULE_ENABLED */
|
||||
/*#define HAL_TIM_MODULE_ENABLED */
|
||||
#define HAL_TIM_MODULE_ENABLED
|
||||
/*#define HAL_UART_MODULE_ENABLED */
|
||||
/*#define HAL_USART_MODULE_ENABLED */
|
||||
/*#define HAL_IRDA_MODULE_ENABLED */
|
||||
|
||||
@@ -52,6 +52,8 @@ void HardFault_Handler(void);
|
||||
void SVC_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
void EXTI2_3_IRQHandler(void);
|
||||
void TIM14_IRQHandler(void);
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
/* USER CODE END EFP */
|
||||
|
||||
+48
-3
@@ -42,6 +42,8 @@
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
ADC_HandleTypeDef hadc;
|
||||
|
||||
TIM_HandleTypeDef htim14;
|
||||
|
||||
/* USER CODE BEGIN PV */
|
||||
|
||||
/* USER CODE END PV */
|
||||
@@ -50,6 +52,7 @@ ADC_HandleTypeDef hadc;
|
||||
void SystemClock_Config(void);
|
||||
static void MX_GPIO_Init(void);
|
||||
static void MX_ADC_Init(void);
|
||||
static void MX_TIM14_Init(void);
|
||||
/* USER CODE BEGIN PFP */
|
||||
|
||||
/* USER CODE END PFP */
|
||||
@@ -88,6 +91,7 @@ int main(void)
|
||||
/* Initialize all configured peripherals */
|
||||
MX_GPIO_Init();
|
||||
MX_ADC_Init();
|
||||
MX_TIM14_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
my_code();
|
||||
@@ -202,6 +206,37 @@ static void MX_ADC_Init(void)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TIM14 Initialization Function
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
static void MX_TIM14_Init(void)
|
||||
{
|
||||
|
||||
/* USER CODE BEGIN TIM14_Init 0 */
|
||||
|
||||
/* USER CODE END TIM14_Init 0 */
|
||||
|
||||
/* USER CODE BEGIN TIM14_Init 1 */
|
||||
|
||||
/* USER CODE END TIM14_Init 1 */
|
||||
htim14.Instance = TIM14;
|
||||
htim14.Init.Prescaler = 48-1;
|
||||
htim14.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||
htim14.Init.Period = 100-1;
|
||||
htim14.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
|
||||
htim14.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||
if (HAL_TIM_Base_Init(&htim14) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
}
|
||||
/* USER CODE BEGIN TIM14_Init 2 */
|
||||
|
||||
/* USER CODE END TIM14_Init 2 */
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief GPIO Initialization Function
|
||||
* @param None
|
||||
@@ -234,11 +269,21 @@ static void MX_GPIO_Init(void)
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
|
||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||
|
||||
/*Configure GPIO pins : U_R_Pin I_R_Pin */
|
||||
GPIO_InitStruct.Pin = U_R_Pin|I_R_Pin;
|
||||
/*Configure GPIO pin : infeaed_Pin */
|
||||
GPIO_InitStruct.Pin = infeaed_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||
HAL_GPIO_Init(infeaed_GPIO_Port, &GPIO_InitStruct);
|
||||
|
||||
/*Configure GPIO pin : I_R_Pin */
|
||||
GPIO_InitStruct.Pin = I_R_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
|
||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||
HAL_GPIO_Init(I_R_GPIO_Port, &GPIO_InitStruct);
|
||||
|
||||
/* EXTI interrupt init*/
|
||||
HAL_NVIC_SetPriority(EXTI2_3_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(EXTI2_3_IRQn);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -140,6 +140,56 @@ void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TIM_Base MSP Initialization
|
||||
* This function configures the hardware resources used in this example
|
||||
* @param htim_base: TIM_Base handle pointer
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
|
||||
{
|
||||
if(htim_base->Instance==TIM14)
|
||||
{
|
||||
/* USER CODE BEGIN TIM14_MspInit 0 */
|
||||
|
||||
/* USER CODE END TIM14_MspInit 0 */
|
||||
/* Peripheral clock enable */
|
||||
__HAL_RCC_TIM14_CLK_ENABLE();
|
||||
/* TIM14 interrupt Init */
|
||||
HAL_NVIC_SetPriority(TIM14_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(TIM14_IRQn);
|
||||
/* USER CODE BEGIN TIM14_MspInit 1 */
|
||||
|
||||
/* USER CODE END TIM14_MspInit 1 */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TIM_Base MSP De-Initialization
|
||||
* This function freeze the hardware resources used in this example
|
||||
* @param htim_base: TIM_Base handle pointer
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* htim_base)
|
||||
{
|
||||
if(htim_base->Instance==TIM14)
|
||||
{
|
||||
/* USER CODE BEGIN TIM14_MspDeInit 0 */
|
||||
|
||||
/* USER CODE END TIM14_MspDeInit 0 */
|
||||
/* Peripheral clock disable */
|
||||
__HAL_RCC_TIM14_CLK_DISABLE();
|
||||
|
||||
/* TIM14 interrupt DeInit */
|
||||
HAL_NVIC_DisableIRQ(TIM14_IRQn);
|
||||
/* USER CODE BEGIN TIM14_MspDeInit 1 */
|
||||
|
||||
/* USER CODE END TIM14_MspDeInit 1 */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
||||
+29
-1
@@ -56,7 +56,7 @@
|
||||
/* USER CODE END 0 */
|
||||
|
||||
/* External variables --------------------------------------------------------*/
|
||||
|
||||
extern TIM_HandleTypeDef htim14;
|
||||
/* USER CODE BEGIN EV */
|
||||
|
||||
/* USER CODE END EV */
|
||||
@@ -141,6 +141,34 @@ void SysTick_Handler(void)
|
||||
/* please refer to the startup file (startup_stm32f0xx.s). */
|
||||
/******************************************************************************/
|
||||
|
||||
/**
|
||||
* @brief This function handles EXTI line 2 and 3 interrupts.
|
||||
*/
|
||||
void EXTI2_3_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN EXTI2_3_IRQn 0 */
|
||||
|
||||
/* USER CODE END EXTI2_3_IRQn 0 */
|
||||
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_3);
|
||||
/* USER CODE BEGIN EXTI2_3_IRQn 1 */
|
||||
|
||||
/* USER CODE END EXTI2_3_IRQn 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function handles TIM14 global interrupt.
|
||||
*/
|
||||
void TIM14_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN TIM14_IRQn 0 */
|
||||
|
||||
/* USER CODE END TIM14_IRQn 0 */
|
||||
HAL_TIM_IRQHandler(&htim14);
|
||||
/* USER CODE BEGIN TIM14_IRQn 1 */
|
||||
|
||||
/* USER CODE END TIM14_IRQn 1 */
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
||||
@@ -26,6 +26,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \
|
||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/Motor_Controller2/my_software/my_code.h
|
||||
|
||||
../Core/Inc/main.h:
|
||||
@@ -84,4 +86,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/Motor_Controller2/my_software/my_code.h:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
main.c:66:5:main 8 static
|
||||
main.c:111:6:SystemClock_Config 80 static
|
||||
main.c:151:13:MX_ADC_Init 24 static
|
||||
main.c:210:13:MX_GPIO_Init 48 static
|
||||
main.c:253:6:Error_Handler 8 static,ignoring_inline_asm
|
||||
main.c:69:5:main 8 static
|
||||
main.c:115:6:SystemClock_Config 80 static
|
||||
main.c:155:13:MX_ADC_Init 24 static
|
||||
main.c:214:13:MX_TIM14_Init 8 static
|
||||
main.c:245:13:MX_GPIO_Init 48 static
|
||||
main.c:298:6:Error_Handler 8 static,ignoring_inline_asm
|
||||
|
||||
@@ -25,7 +25,9 @@ Core/Src/stm32f0xx_hal_msp.o: ../Core/Src/stm32f0xx_hal_msp.c \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Core/Inc/main.h:
|
||||
|
||||
@@ -82,3 +84,7 @@ Core/Src/stm32f0xx_hal_msp.o: ../Core/Src/stm32f0xx_hal_msp.c \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
stm32f0xx_hal_msp.c:64:6:HAL_MspInit 16 static
|
||||
stm32f0xx_hal_msp.c:86:6:HAL_ADC_MspInit 56 static
|
||||
stm32f0xx_hal_msp.c:120:6:HAL_ADC_MspDeInit 16 static
|
||||
stm32f0xx_hal_msp.c:149:6:HAL_TIM_Base_MspInit 24 static
|
||||
stm32f0xx_hal_msp.c:174:6:HAL_TIM_Base_MspDeInit 16 static
|
||||
|
||||
@@ -26,6 +26,8 @@ Core/Src/stm32f0xx_it.o: ../Core/Src/stm32f0xx_it.c ../Core/Inc/main.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \
|
||||
../Core/Inc/stm32f0xx_it.h
|
||||
|
||||
../Core/Inc/main.h:
|
||||
@@ -84,4 +86,8 @@ Core/Src/stm32f0xx_it.o: ../Core/Src/stm32f0xx_it.c ../Core/Inc/main.h \
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
../Core/Inc/stm32f0xx_it.h:
|
||||
|
||||
@@ -3,3 +3,5 @@ stm32f0xx_it.c:85:6:HardFault_Handler 8 static
|
||||
stm32f0xx_it.c:100:6:SVC_Handler 8 static
|
||||
stm32f0xx_it.c:113:6:PendSV_Handler 8 static
|
||||
stm32f0xx_it.c:126:6:SysTick_Handler 8 static
|
||||
stm32f0xx_it.c:147:6:EXTI2_3_IRQHandler 8 static
|
||||
stm32f0xx_it.c:161:6:TIM14_IRQHandler 8 static
|
||||
|
||||
@@ -25,7 +25,9 @@ Core/Src/system_stm32f0xx.o: ../Core/Src/system_stm32f0xx.c \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:
|
||||
|
||||
@@ -80,3 +82,7 @@ Core/Src/system_stm32f0xx.o: ../Core/Src/system_stm32f0xx.c \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
stm32f0xx_hal_tim.c:266:19:HAL_TIM_Base_Init 16 static
|
||||
stm32f0xx_hal_tim.c:325:19:HAL_TIM_Base_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:368:13:HAL_TIM_Base_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:383:13:HAL_TIM_Base_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:399:19:HAL_TIM_Base_Start 24 static
|
||||
stm32f0xx_hal_tim.c:438:19:HAL_TIM_Base_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:458:19:HAL_TIM_Base_Start_IT 24 static
|
||||
stm32f0xx_hal_tim.c:500:19:HAL_TIM_Base_Stop_IT 16 static
|
||||
stm32f0xx_hal_tim.c:525:19:HAL_TIM_Base_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim.c:594:19:HAL_TIM_Base_Stop_DMA 16 static
|
||||
stm32f0xx_hal_tim.c:649:19:HAL_TIM_OC_Init 16 static
|
||||
stm32f0xx_hal_tim.c:708:19:HAL_TIM_OC_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:751:13:HAL_TIM_OC_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:766:13:HAL_TIM_OC_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:787:19:HAL_TIM_OC_Start 24 static
|
||||
stm32f0xx_hal_tim.c:841:19:HAL_TIM_OC_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:876:19:HAL_TIM_OC_Start_IT 24 static
|
||||
stm32f0xx_hal_tim.c:969:19:HAL_TIM_OC_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim.c:1046:19:HAL_TIM_OC_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim.c:1209:19:HAL_TIM_OC_Stop_DMA 24 static
|
||||
stm32f0xx_hal_tim.c:1312:19:HAL_TIM_PWM_Init 16 static
|
||||
stm32f0xx_hal_tim.c:1371:19:HAL_TIM_PWM_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:1414:13:HAL_TIM_PWM_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:1429:13:HAL_TIM_PWM_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:1450:19:HAL_TIM_PWM_Start 24 static
|
||||
stm32f0xx_hal_tim.c:1504:19:HAL_TIM_PWM_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:1539:19:HAL_TIM_PWM_Start_IT 24 static
|
||||
stm32f0xx_hal_tim.c:1632:19:HAL_TIM_PWM_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim.c:1709:19:HAL_TIM_PWM_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim.c:1871:19:HAL_TIM_PWM_Stop_DMA 24 static
|
||||
stm32f0xx_hal_tim.c:1974:19:HAL_TIM_IC_Init 16 static
|
||||
stm32f0xx_hal_tim.c:2033:19:HAL_TIM_IC_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:2076:13:HAL_TIM_IC_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:2091:13:HAL_TIM_IC_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:2112:19:HAL_TIM_IC_Start 24 static
|
||||
stm32f0xx_hal_tim.c:2164:19:HAL_TIM_IC_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:2194:19:HAL_TIM_IC_Start_IT 24 static
|
||||
stm32f0xx_hal_tim.c:2286:19:HAL_TIM_IC_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim.c:2358:19:HAL_TIM_IC_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim.c:2517:19:HAL_TIM_IC_Stop_DMA 24 static
|
||||
stm32f0xx_hal_tim.c:2622:19:HAL_TIM_OnePulse_Init 16 static
|
||||
stm32f0xx_hal_tim.c:2690:19:HAL_TIM_OnePulse_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:2735:13:HAL_TIM_OnePulse_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:2750:13:HAL_TIM_OnePulse_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:2770:19:HAL_TIM_OnePulse_Start 40 static
|
||||
stm32f0xx_hal_tim.c:2827:19:HAL_TIM_OnePulse_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:2870:19:HAL_TIM_OnePulse_Start_IT 40 static
|
||||
stm32f0xx_hal_tim.c:2933:19:HAL_TIM_OnePulse_Stop_IT 16 static
|
||||
stm32f0xx_hal_tim.c:3012:19:HAL_TIM_Encoder_Init 32 static
|
||||
stm32f0xx_hal_tim.c:3126:19:HAL_TIM_Encoder_DeInit 16 static
|
||||
stm32f0xx_hal_tim.c:3171:13:HAL_TIM_Encoder_MspInit 16 static
|
||||
stm32f0xx_hal_tim.c:3186:13:HAL_TIM_Encoder_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim.c:3206:19:HAL_TIM_Encoder_Start 32 static
|
||||
stm32f0xx_hal_tim.c:3300:19:HAL_TIM_Encoder_Stop 16 static
|
||||
stm32f0xx_hal_tim.c:3360:19:HAL_TIM_Encoder_Start_IT 32 static
|
||||
stm32f0xx_hal_tim.c:3460:19:HAL_TIM_Encoder_Stop_IT 16 static
|
||||
stm32f0xx_hal_tim.c:3525:19:HAL_TIM_Encoder_Start_DMA 40 static
|
||||
stm32f0xx_hal_tim.c:3738:19:HAL_TIM_Encoder_Stop_DMA 16 static
|
||||
stm32f0xx_hal_tim.c:3815:6:HAL_TIM_IRQHandler 16 static
|
||||
stm32f0xx_hal_tim.c:4030:19:HAL_TIM_OC_ConfigChannel 32 static
|
||||
stm32f0xx_hal_tim.c:4109:19:HAL_TIM_IC_ConfigChannel 32 static
|
||||
stm32f0xx_hal_tim.c:4208:19:HAL_TIM_PWM_ConfigChannel 32 static
|
||||
stm32f0xx_hal_tim.c:4322:19:HAL_TIM_OnePulse_ConfigChannel 56 static
|
||||
stm32f0xx_hal_tim.c:4470:19:HAL_TIM_DMABurst_WriteStart 48 static
|
||||
stm32f0xx_hal_tim.c:4524:19:HAL_TIM_DMABurst_MultiWriteStart 32 static
|
||||
stm32f0xx_hal_tim.c:4708:19:HAL_TIM_DMABurst_WriteStop 24 static
|
||||
stm32f0xx_hal_tim.c:4809:19:HAL_TIM_DMABurst_ReadStart 48 static
|
||||
stm32f0xx_hal_tim.c:4862:19:HAL_TIM_DMABurst_MultiReadStart 32 static
|
||||
stm32f0xx_hal_tim.c:5046:19:HAL_TIM_DMABurst_ReadStop 24 static
|
||||
stm32f0xx_hal_tim.c:5129:19:HAL_TIM_GenerateEvent 16 static
|
||||
stm32f0xx_hal_tim.c:5166:19:HAL_TIM_ConfigOCrefClear 32 static
|
||||
stm32f0xx_hal_tim.c:5305:19:HAL_TIM_ConfigClockSource 24 static
|
||||
stm32f0xx_hal_tim.c:5459:19:HAL_TIM_ConfigTI1Input 24 static
|
||||
stm32f0xx_hal_tim.c:5491:19:HAL_TIM_SlaveConfigSynchro 16 static
|
||||
stm32f0xx_hal_tim.c:5531:19:HAL_TIM_SlaveConfigSynchro_IT 16 static
|
||||
stm32f0xx_hal_tim.c:5574:10:HAL_TIM_ReadCapturedValue 24 static
|
||||
stm32f0xx_hal_tim.c:5658:13:HAL_TIM_PeriodElapsedCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5673:13:HAL_TIM_PeriodElapsedHalfCpltCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5688:13:HAL_TIM_OC_DelayElapsedCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5703:13:HAL_TIM_IC_CaptureCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5718:13:HAL_TIM_IC_CaptureHalfCpltCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5733:13:HAL_TIM_PWM_PulseFinishedCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5748:13:HAL_TIM_PWM_PulseFinishedHalfCpltCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5763:13:HAL_TIM_TriggerCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5778:13:HAL_TIM_TriggerHalfCpltCallback 16 static
|
||||
stm32f0xx_hal_tim.c:5793:13:HAL_TIM_ErrorCallback 16 static
|
||||
stm32f0xx_hal_tim.c:6351:22:HAL_TIM_Base_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6361:22:HAL_TIM_OC_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6371:22:HAL_TIM_PWM_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6381:22:HAL_TIM_IC_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6391:22:HAL_TIM_OnePulse_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6401:22:HAL_TIM_Encoder_GetState 16 static
|
||||
stm32f0xx_hal_tim.c:6411:23:HAL_TIM_GetActiveChannel 16 static
|
||||
stm32f0xx_hal_tim.c:6429:29:HAL_TIM_GetChannelState 24 static
|
||||
stm32f0xx_hal_tim.c:6446:30:HAL_TIM_DMABurstState 16 static
|
||||
stm32f0xx_hal_tim.c:6471:6:TIM_DMAError 24 static
|
||||
stm32f0xx_hal_tim.c:6514:13:TIM_DMADelayPulseCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6573:6:TIM_DMADelayPulseHalfCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6612:6:TIM_DMACaptureCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6675:6:TIM_DMACaptureHalfCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6714:13:TIM_DMAPeriodElapsedCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6735:13:TIM_DMAPeriodElapsedHalfCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6751:13:TIM_DMATriggerCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6772:13:TIM_DMATriggerHalfCplt 24 static
|
||||
stm32f0xx_hal_tim.c:6789:6:TIM_Base_SetConfig 24 static
|
||||
stm32f0xx_hal_tim.c:6837:13:TIM_OC1_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:6912:6:TIM_OC2_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:6988:13:TIM_OC3_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7062:13:TIM_OC4_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7122:26:TIM_SlaveTimer_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7256:6:TIM_TI1_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7303:13:TIM_TI1_ConfigInputStage 32 static
|
||||
stm32f0xx_hal_tim.c:7346:13:TIM_TI2_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7386:13:TIM_TI2_ConfigInputStage 32 static
|
||||
stm32f0xx_hal_tim.c:7429:13:TIM_TI3_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7477:13:TIM_TI4_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7520:13:TIM_ITRx_SetConfig 24 static
|
||||
stm32f0xx_hal_tim.c:7550:6:TIM_ETR_SetConfig 32 static
|
||||
stm32f0xx_hal_tim.c:7580:6:TIM_CCxChannelCmd 32 static
|
||||
|
||||
@@ -26,7 +26,9 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
@@ -81,3 +83,7 @@ Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o: \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
stm32f0xx_hal_tim_ex.c:139:19:HAL_TIMEx_HallSensor_Init 48 static
|
||||
stm32f0xx_hal_tim_ex.c:240:19:HAL_TIMEx_HallSensor_DeInit 16 static
|
||||
stm32f0xx_hal_tim_ex.c:285:13:HAL_TIMEx_HallSensor_MspInit 16 static
|
||||
stm32f0xx_hal_tim_ex.c:300:13:HAL_TIMEx_HallSensor_MspDeInit 16 static
|
||||
stm32f0xx_hal_tim_ex.c:315:19:HAL_TIMEx_HallSensor_Start 40 static
|
||||
stm32f0xx_hal_tim_ex.c:369:19:HAL_TIMEx_HallSensor_Stop 16 static
|
||||
stm32f0xx_hal_tim_ex.c:397:19:HAL_TIMEx_HallSensor_Start_IT 40 static
|
||||
stm32f0xx_hal_tim_ex.c:454:19:HAL_TIMEx_HallSensor_Stop_IT 16 static
|
||||
stm32f0xx_hal_tim_ex.c:487:19:HAL_TIMEx_HallSensor_Start_DMA 40 static
|
||||
stm32f0xx_hal_tim_ex.c:563:19:HAL_TIMEx_HallSensor_Stop_DMA 16 static
|
||||
stm32f0xx_hal_tim_ex.c:625:19:HAL_TIMEx_OCN_Start 24 static
|
||||
stm32f0xx_hal_tim_ex.c:676:19:HAL_TIMEx_OCN_Stop 16 static
|
||||
stm32f0xx_hal_tim_ex.c:708:19:HAL_TIMEx_OCN_Start_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:795:19:HAL_TIMEx_OCN_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:870:19:HAL_TIMEx_OCN_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim_ex.c:1007:19:HAL_TIMEx_OCN_Stop_DMA 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1108:19:HAL_TIMEx_PWMN_Start 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1158:19:HAL_TIMEx_PWMN_Stop 16 static
|
||||
stm32f0xx_hal_tim_ex.c:1190:19:HAL_TIMEx_PWMN_Start_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1276:19:HAL_TIMEx_PWMN_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1351:19:HAL_TIMEx_PWMN_Start_DMA 32 static
|
||||
stm32f0xx_hal_tim_ex.c:1488:19:HAL_TIMEx_PWMN_Stop_DMA 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1579:19:HAL_TIMEx_OnePulseN_Start 40 static
|
||||
stm32f0xx_hal_tim_ex.c:1628:19:HAL_TIMEx_OnePulseN_Stop 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1667:19:HAL_TIMEx_OnePulseN_Start_IT 40 static
|
||||
stm32f0xx_hal_tim_ex.c:1722:19:HAL_TIMEx_OnePulseN_Stop_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1801:19:HAL_TIMEx_ConfigCommutEvent 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1857:19:HAL_TIMEx_ConfigCommutEvent_IT 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1914:19:HAL_TIMEx_ConfigCommutEvent_DMA 24 static
|
||||
stm32f0xx_hal_tim_ex.c:1963:19:HAL_TIMEx_MasterConfigSynchronization 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2024:19:HAL_TIMEx_ConfigBreakDeadTime 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2076:19:HAL_TIMEx_RemapConfig 16 static
|
||||
stm32f0xx_hal_tim_ex.c:2116:13:HAL_TIMEx_CommutCallback 16 static
|
||||
stm32f0xx_hal_tim_ex.c:2130:13:HAL_TIMEx_CommutHalfCpltCallback 16 static
|
||||
stm32f0xx_hal_tim_ex.c:2145:13:HAL_TIMEx_BreakCallback 16 static
|
||||
stm32f0xx_hal_tim_ex.c:2178:22:HAL_TIMEx_HallSensor_GetState 16 static
|
||||
stm32f0xx_hal_tim_ex.c:2193:29:HAL_TIMEx_GetChannelNState 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2222:6:TIMEx_DMACommutationCplt 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2241:6:TIMEx_DMACommutationHalfCplt 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2261:13:TIM_DMADelayPulseNCplt 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2320:13:TIM_DMAErrorCCxN 24 static
|
||||
stm32f0xx_hal_tim_ex.c:2365:13:TIM_CCxNChannelCmd 32 static
|
||||
|
||||
Binary file not shown.
+7347
-5562
File diff suppressed because it is too large
Load Diff
+1153
-464
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,9 @@ my_software/button.o: ../my_software/button.c ../my_software/button.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../my_software/button.h:
|
||||
|
||||
@@ -84,3 +86,7 @@ my_software/button.o: ../my_software/button.c ../my_software/button.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
my_software/flash.o: ../my_software/flash.c ../my_software/flash.h \
|
||||
../Core/Inc/main.h ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \
|
||||
../Core/Inc/stm32f0xx_hal_conf.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h \
|
||||
../Drivers/CMSIS/Include/core_cm0.h \
|
||||
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../my_software/flash.h:
|
||||
|
||||
../Core/Inc/main.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
../Core/Inc/stm32f0xx_hal_conf.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h:
|
||||
|
||||
../Drivers/CMSIS/Include/core_cm0.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
@@ -0,0 +1,3 @@
|
||||
flash.c:12:10:STMFLASH_ReadWord 16 static
|
||||
flash.c:17:6:STMFLASH_Write 64 static
|
||||
flash.c:62:6:STMFLASH_Read 40 static
|
||||
@@ -26,6 +26,8 @@ my_software/ht1621.o: ../my_software/ht1621.c ../my_software/ht1621.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \
|
||||
../my_software/my_code.h
|
||||
|
||||
../my_software/ht1621.h:
|
||||
@@ -86,4 +88,8 @@ my_software/ht1621.o: ../my_software/ht1621.c ../my_software/ht1621.h \
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
../my_software/my_code.h:
|
||||
|
||||
@@ -26,7 +26,10 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../my_software/button.h ../my_software/ht1621.h
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \
|
||||
../my_software/button.h ../my_software/ht1621.h ../my_software/flash.h \
|
||||
../my_software/r480r.h
|
||||
|
||||
../my_software/my_code.h:
|
||||
|
||||
@@ -86,6 +89,14 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
|
||||
../my_software/button.h:
|
||||
|
||||
../my_software/ht1621.h:
|
||||
|
||||
../my_software/flash.h:
|
||||
|
||||
../my_software/r480r.h:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
my_code.c:45:6:ds_in_or_out 48 static
|
||||
my_code.c:63:9:Read_Ds 8 static
|
||||
my_code.c:71:6:Sand_Byte_to_595_2 24 static
|
||||
my_code.c:92:6:hc2_sever 16 static
|
||||
my_code.c:119:6:moto_server 8 static
|
||||
my_code.c:225:6:HT1621_Display_GetButton 24 static
|
||||
my_code.c:269:6:my_code 32 static
|
||||
my_code.c:46:6:ds_in_or_out 48 static
|
||||
my_code.c:64:9:Read_Ds 8 static
|
||||
my_code.c:72:6:Sand_Byte_to_595_2 24 static
|
||||
my_code.c:93:6:hc2_sever 16 static
|
||||
my_code.c:120:6:moto_server 8 static
|
||||
my_code.c:226:6:HT1621_Display_GetButton 24 static
|
||||
my_code.c:270:6:my_code 32 static
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
my_software/r480r.o: ../my_software/r480r.c ../my_software/r480r.h \
|
||||
../Core/Inc/main.h ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \
|
||||
../Core/Inc/stm32f0xx_hal_conf.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h \
|
||||
../Drivers/CMSIS/Include/core_cm0.h \
|
||||
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h
|
||||
|
||||
../my_software/r480r.h:
|
||||
|
||||
../Core/Inc/main.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:
|
||||
|
||||
../Core/Inc/stm32f0xx_hal_conf.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h:
|
||||
|
||||
../Drivers/CMSIS/Include/core_cm0.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||
|
||||
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||
|
||||
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h:
|
||||
|
||||
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h:
|
||||
@@ -0,0 +1,4 @@
|
||||
r480r.c:19:6:r480_init 8 static
|
||||
r480r.c:25:6:read_433_exit 24 static
|
||||
r480r.c:91:6:HAL_GPIO_EXTI_Callback 16 static
|
||||
r480r.c:101:6:HAL_TIM_PeriodElapsedCallback 16 static
|
||||
@@ -6,18 +6,24 @@
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../my_software/button.c \
|
||||
../my_software/flash.c \
|
||||
../my_software/ht1621.c \
|
||||
../my_software/my_code.c
|
||||
../my_software/my_code.c \
|
||||
../my_software/r480r.c
|
||||
|
||||
OBJS += \
|
||||
./my_software/button.o \
|
||||
./my_software/flash.o \
|
||||
./my_software/ht1621.o \
|
||||
./my_software/my_code.o
|
||||
./my_software/my_code.o \
|
||||
./my_software/r480r.o
|
||||
|
||||
C_DEPS += \
|
||||
./my_software/button.d \
|
||||
./my_software/flash.d \
|
||||
./my_software/ht1621.d \
|
||||
./my_software/my_code.d
|
||||
./my_software/my_code.d \
|
||||
./my_software/r480r.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
|
||||
@@ -23,5 +23,7 @@
|
||||
"./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o"
|
||||
"./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o"
|
||||
"./my_software/button.o"
|
||||
"./my_software/flash.o"
|
||||
"./my_software/ht1621.o"
|
||||
"./my_software/my_code.o"
|
||||
"./my_software/r480r.o"
|
||||
|
||||
@@ -89,5 +89,6 @@
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"/>"/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
|
||||
+20
-7
@@ -1,12 +1,14 @@
|
||||
#MicroXplorer Configuration settings - do not modify
|
||||
File.Version=6
|
||||
GPIO.groupedBy=Group By Peripherals
|
||||
KeepUserPlacement=false
|
||||
Mcu.Family=STM32F0
|
||||
Mcu.IP0=ADC
|
||||
Mcu.IP1=NVIC
|
||||
Mcu.IP2=RCC
|
||||
Mcu.IP3=SYS
|
||||
Mcu.IPNb=4
|
||||
Mcu.IP4=TIM14
|
||||
Mcu.IPNb=5
|
||||
Mcu.Name=STM32F030F4Px
|
||||
Mcu.Package=TSSOP20
|
||||
Mcu.Pin0=PF0-OSC_IN
|
||||
@@ -15,6 +17,7 @@ Mcu.Pin10=PA9
|
||||
Mcu.Pin11=PA13
|
||||
Mcu.Pin12=PA14
|
||||
Mcu.Pin13=VP_SYS_VS_Systick
|
||||
Mcu.Pin14=VP_TIM14_VS_ClockSourceINT
|
||||
Mcu.Pin2=PA0
|
||||
Mcu.Pin3=PA1
|
||||
Mcu.Pin4=PA2
|
||||
@@ -23,18 +26,20 @@ Mcu.Pin6=PA4
|
||||
Mcu.Pin7=PA5
|
||||
Mcu.Pin8=PA6
|
||||
Mcu.Pin9=PA7
|
||||
Mcu.PinsNb=14
|
||||
Mcu.PinsNb=15
|
||||
Mcu.ThirdPartyNb=0
|
||||
Mcu.UserConstants=
|
||||
Mcu.UserName=STM32F030F4Px
|
||||
MxCube.Version=6.3.0
|
||||
MxDb.Version=DB.6.0.30
|
||||
NVIC.EXTI2_3_IRQn=true\:0\:0\:false\:false\:true\:true\:true
|
||||
NVIC.ForceEnableDMAVector=true
|
||||
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||
NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||
NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||
NVIC.SVC_IRQn=true\:0\:0\:false\:false\:true\:false\:false
|
||||
NVIC.SysTick_IRQn=true\:3\:0\:false\:false\:true\:false\:true
|
||||
NVIC.TIM14_IRQn=true\:0\:0\:false\:false\:true\:true\:true
|
||||
PA0.GPIOParameters=GPIO_Label
|
||||
PA0.GPIO_Label=ADC_CH0
|
||||
PA0.Locked=true
|
||||
@@ -53,11 +58,12 @@ PA2.GPIO_PuPd=GPIO_PULLDOWN
|
||||
PA2.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
|
||||
PA2.Locked=true
|
||||
PA2.Signal=GPIO_Output
|
||||
PA3.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PA3.GPIO_Label=U_R
|
||||
PA3.GPIO_PuPd=GPIO_PULLDOWN
|
||||
PA3.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI
|
||||
PA3.GPIO_Label=infeaed
|
||||
PA3.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_RISING_FALLING
|
||||
PA3.GPIO_PuPd=GPIO_PULLUP
|
||||
PA3.Locked=true
|
||||
PA3.Signal=GPIO_Input
|
||||
PA3.Signal=GPXTI3
|
||||
PA4.GPIOParameters=GPIO_PuPd,GPIO_Label
|
||||
PA4.GPIO_Label=I_R
|
||||
PA4.GPIO_PuPd=GPIO_PULLDOWN
|
||||
@@ -125,7 +131,7 @@ ProjectManager.StackSize=0x400
|
||||
ProjectManager.TargetToolchain=STM32CubeIDE
|
||||
ProjectManager.ToolChainLocation=
|
||||
ProjectManager.UnderRoot=true
|
||||
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true
|
||||
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_ADC_Init-ADC-false-HAL-true,4-MX_TIM3_Init-TIM3-false-HAL-true
|
||||
RCC.AHBFreq_Value=48000000
|
||||
RCC.APB1Freq_Value=48000000
|
||||
RCC.APB1TimFreq_Value=48000000
|
||||
@@ -139,13 +145,20 @@ RCC.SYSCLKFreq_VALUE=48000000
|
||||
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
|
||||
RCC.TimSysFreq_Value=48000000
|
||||
RCC.USART1Freq_Value=48000000
|
||||
SH.GPXTI3.0=GPIO_EXTI3
|
||||
SH.GPXTI3.ConfNb=1
|
||||
SH.SharedAnalog_PA0.0=GPIO_Analog
|
||||
SH.SharedAnalog_PA0.1=ADC_IN0,IN0
|
||||
SH.SharedAnalog_PA0.ConfNb=2
|
||||
SH.SharedAnalog_PA1.0=GPIO_Analog
|
||||
SH.SharedAnalog_PA1.1=ADC_IN1,IN1
|
||||
SH.SharedAnalog_PA1.ConfNb=2
|
||||
TIM14.IPParameters=Prescaler,Period
|
||||
TIM14.Period=100-1
|
||||
TIM14.Prescaler=48-1
|
||||
VP_SYS_VS_Systick.Mode=SysTick
|
||||
VP_SYS_VS_Systick.Signal=SYS_VS_Systick
|
||||
VP_TIM14_VS_ClockSourceINT.Mode=Enable_Timer
|
||||
VP_TIM14_VS_ClockSourceINT.Signal=TIM14_VS_ClockSourceINT
|
||||
board=custom
|
||||
isbadioc=false
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* flash.c
|
||||
*
|
||||
* Created on: 2021年10月15日
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
|
||||
|
||||
#include "flash.h"
|
||||
|
||||
|
||||
uint32_t STMFLASH_ReadWord(uint32_t faddr)
|
||||
{
|
||||
return *(uint32_t*)faddr;
|
||||
}
|
||||
|
||||
void STMFLASH_Write(uint32_t WriteAddr,uint32_t *pBuffer,uint32_t NumToWrite)
|
||||
{
|
||||
FLASH_EraseInitTypeDef FlashEraseInit;
|
||||
HAL_StatusTypeDef FlashStatus=HAL_OK;
|
||||
uint32_t PageError=0;
|
||||
uint32_t addrx=0;
|
||||
uint32_t endaddr=0;
|
||||
if(WriteAddr<STM32_FLASH_BASE||WriteAddr%4)return; //非法地址
|
||||
|
||||
HAL_FLASH_Unlock(); //解锁
|
||||
addrx=WriteAddr; //写入的起始地址
|
||||
endaddr=WriteAddr+NumToWrite*8; //写入的结束地址
|
||||
if(addrx<0X1FFF0000)
|
||||
{
|
||||
while(addrx<endaddr) //扫清一切障碍.(对非FFFFFFFF的地方,先擦除)
|
||||
{
|
||||
if(STMFLASH_ReadWord(addrx)!=0XFFFFFFFF) //有非0XFFFFFFFF的地方,要擦除这个扇区
|
||||
{
|
||||
FlashEraseInit.TypeErase=FLASH_TYPEERASE_PAGES; //擦除类型,页擦除
|
||||
FlashEraseInit.PageAddress=31; //从哪页开始擦除
|
||||
FlashEraseInit.NbPages=1; //一次只擦除一页
|
||||
if(HAL_FLASHEx_Erase(&FlashEraseInit,&PageError)!=HAL_OK)
|
||||
{
|
||||
break;//发生错误了
|
||||
}
|
||||
}else addrx+=4;
|
||||
FLASH_WaitForLastOperation(FLASH_WAITETIME); //等待上次操作完成
|
||||
}
|
||||
}
|
||||
FlashStatus=FLASH_WaitForLastOperation(FLASH_WAITETIME); //等待上次操作完成
|
||||
if(FlashStatus==HAL_OK)
|
||||
{
|
||||
while(WriteAddr<endaddr) //写数据
|
||||
{
|
||||
if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD,WriteAddr,*(uint64_t*) pBuffer)!=HAL_OK)//写入数据
|
||||
{
|
||||
break; //写入异常
|
||||
}
|
||||
WriteAddr+=8;
|
||||
pBuffer+=2;
|
||||
}
|
||||
}
|
||||
HAL_FLASH_Lock(); //上锁
|
||||
}
|
||||
|
||||
void STMFLASH_Read(uint32_t ReadAddr,uint32_t *pBuffer,uint32_t NumToRead) //连续读取
|
||||
{
|
||||
uint32_t i;
|
||||
for(i=0;i<NumToRead;i++)
|
||||
{
|
||||
pBuffer[i]=STMFLASH_ReadWord(ReadAddr); //读取4个字节.
|
||||
ReadAddr+=4; //偏移4个字节.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* flash.h
|
||||
*
|
||||
* Created on: 2021年10月15日
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
|
||||
#ifndef FLASH_H_
|
||||
#define FLASH_H_
|
||||
|
||||
#include "main.h"
|
||||
|
||||
#define STM32_FLASH_BASE 0x08007c00
|
||||
#define FLASH_WAITETIME 100
|
||||
|
||||
void STMFLASH_Write(uint32_t WriteAddr,uint32_t *pBuffer,uint32_t NumToWrite);
|
||||
void STMFLASH_Read(uint32_t ReadAddr,uint32_t *pBuffer,uint32_t NumToRead);
|
||||
#endif /* FLASH_H_ */
|
||||
+58
-8
@@ -7,7 +7,8 @@
|
||||
#include "my_code.h"
|
||||
#include "button.h"
|
||||
#include "ht1621.h"
|
||||
|
||||
#include "flash.h"
|
||||
#include "r480r.h"
|
||||
|
||||
extern ADC_HandleTypeDef hadc;
|
||||
|
||||
@@ -294,6 +295,8 @@ void my_code()
|
||||
moto.moto2b_=0;
|
||||
|
||||
HT1621_Init();
|
||||
r480_init();
|
||||
|
||||
while(1)
|
||||
{
|
||||
//get ADC
|
||||
@@ -415,7 +418,7 @@ void my_code()
|
||||
dis_buff.d_num[2]=(countdown/1000)%10;
|
||||
dis_buff.d_num[1]=((countdown/10000)%10);
|
||||
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
|
||||
dis_buff.dot3=1;
|
||||
dis_buff.dot4=1;
|
||||
|
||||
if(key3.code!=0)
|
||||
{
|
||||
@@ -461,7 +464,7 @@ void my_code()
|
||||
dis_buff.d_num[2]=(countdown/1000)%10;
|
||||
dis_buff.d_num[1]=((countdown/10000)%10);
|
||||
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
|
||||
dis_buff.dot3=1;
|
||||
dis_buff.dot4=1;
|
||||
if(key2.code!=0)
|
||||
{
|
||||
mode=2;
|
||||
@@ -487,12 +490,12 @@ void my_code()
|
||||
if(HAL_GetTick()>move)
|
||||
{
|
||||
move=HAL_GetTick()+100;
|
||||
if(dis_buff.dot1==1)
|
||||
if(dis_buff.dot4==1)
|
||||
{
|
||||
dis_buff.dot1=0;
|
||||
dis_buff.dot4=0;
|
||||
}else
|
||||
{
|
||||
dis_buff.dot1=1;
|
||||
dis_buff.dot4=1;
|
||||
}
|
||||
countdown-=100;
|
||||
if(countdown<0)
|
||||
@@ -510,12 +513,12 @@ void my_code()
|
||||
if(countdown_set<100){countdown_set=100;}
|
||||
if(countdown_set>60000){countdown_set=60000;}
|
||||
|
||||
if(key1.code!=0){mode=1;}
|
||||
if(key4.code!=0){mode=1;}
|
||||
dis_buff.d_num[3]=(countdown_set/100)%10;
|
||||
dis_buff.d_num[2]=(countdown_set/1000)%10;
|
||||
dis_buff.d_num[1]=((countdown_set/10000)%10);
|
||||
dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1];
|
||||
dis_buff.dot3=1;
|
||||
|
||||
|
||||
break;
|
||||
case 5:
|
||||
@@ -558,6 +561,26 @@ void my_code()
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
case 6:
|
||||
//debug
|
||||
if(HAL_GetTick()>runtime)
|
||||
{
|
||||
runtime+=1000;
|
||||
|
||||
if(dis_buff.led_run==1)
|
||||
{
|
||||
dis_buff.led_run=0;
|
||||
dis_buff.dot4=1;
|
||||
}else
|
||||
{
|
||||
dis_buff.led_run=1;
|
||||
dis_buff.dot4=0;
|
||||
}
|
||||
}
|
||||
dis_buff.d_num[3]=(r480.times/100)%10;
|
||||
dis_buff.d_num[2]=(r480.times/1000)%10;
|
||||
dis_buff.d_num[1]=((r480.times/10000)%10);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -569,10 +592,37 @@ void my_code()
|
||||
GEI_BUTTON_CODE(&overload,0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
switch(r480.key)
|
||||
{
|
||||
case 0xd7:
|
||||
dis_buff.button_flag[0]=1;
|
||||
break;
|
||||
case 0xdb:
|
||||
dis_buff.button_flag[1]=1;
|
||||
break;
|
||||
case 0xdd:
|
||||
dis_buff.button_flag[2]=1;
|
||||
break;
|
||||
case 0xde:
|
||||
dis_buff.button_flag[3]=1;
|
||||
break;
|
||||
}
|
||||
r480.key=0;
|
||||
|
||||
GEI_BUTTON_CODE(&key1,dis_buff.button_flag[0]);
|
||||
GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]);
|
||||
GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]);
|
||||
GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]);
|
||||
|
||||
dis_buff.button_flag[0]=0;
|
||||
dis_buff.button_flag[1]=0;
|
||||
dis_buff.button_flag[2]=0;
|
||||
dis_buff.button_flag[3]=0;
|
||||
|
||||
|
||||
HT1621_Display_GetButton();
|
||||
hc2_sever();
|
||||
moto_server();
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* r480r.c
|
||||
*
|
||||
* Created on: 2021年10月15日
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
|
||||
|
||||
#include "r480r.h"
|
||||
#define read_infrared HAL_GPIO_ReadPin(infeaed_GPIO_Port,infeaed_Pin)
|
||||
|
||||
extern TIM_HandleTypeDef htim14;
|
||||
uint16_t timer_100us_tick=0;
|
||||
int read_bit_flag=0;
|
||||
int read_char_flag=0;
|
||||
char read_data_buffer[3];
|
||||
char read_begin=0;
|
||||
|
||||
void r480_init()
|
||||
{
|
||||
HAL_TIM_Base_Start_IT(&htim14);
|
||||
r480.times=0;
|
||||
}
|
||||
|
||||
void read_433_exit()
|
||||
{
|
||||
|
||||
char a=read_infrared;
|
||||
int b;
|
||||
if(read_begin==0)
|
||||
{
|
||||
if(a==0)
|
||||
{
|
||||
timer_100us_tick=0;
|
||||
return ;
|
||||
}else
|
||||
{
|
||||
if(timer_100us_tick>70&&timer_100us_tick<100)
|
||||
{
|
||||
read_begin=1;
|
||||
r480.times++;
|
||||
read_bit_flag=0;
|
||||
read_char_flag=0;
|
||||
timer_100us_tick=0;
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
}else
|
||||
{
|
||||
if(timer_100us_tick<5)
|
||||
{
|
||||
timer_100us_tick=0;
|
||||
return ;
|
||||
}else if(timer_100us_tick<12)
|
||||
{
|
||||
read_data_buffer[read_char_flag]<<=1;
|
||||
if(a==1)
|
||||
{
|
||||
read_data_buffer[read_char_flag]|=0x01;
|
||||
}
|
||||
read_bit_flag++;
|
||||
if(read_bit_flag==8)
|
||||
{
|
||||
read_bit_flag=0;
|
||||
read_char_flag++;
|
||||
if(read_char_flag==3)
|
||||
{
|
||||
//got data
|
||||
|
||||
read_char_flag=0;
|
||||
timer_100us_tick=0;
|
||||
|
||||
r480.add[0]=read_data_buffer[0];
|
||||
r480.add[1]=read_data_buffer[1];
|
||||
r480.key=read_data_buffer[2];
|
||||
}
|
||||
}
|
||||
timer_100us_tick=0;
|
||||
return ;
|
||||
}else//time out
|
||||
{
|
||||
read_begin=0;
|
||||
timer_100us_tick=0;
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
||||
{
|
||||
switch(GPIO_Pin)
|
||||
{
|
||||
case infeaed_Pin:
|
||||
read_433_exit();
|
||||
return ;
|
||||
break;
|
||||
}
|
||||
}
|
||||
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//100us
|
||||
{
|
||||
if (htim == (&htim14))
|
||||
{
|
||||
timer_100us_tick++;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* r480r.h
|
||||
*
|
||||
* Created on: 2021年10月15日
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
|
||||
#ifndef R480R_H_
|
||||
#define R480R_H_
|
||||
|
||||
#include "main.h"
|
||||
|
||||
struct
|
||||
{
|
||||
char add[2];
|
||||
char key;
|
||||
uint16_t times;
|
||||
}r480;
|
||||
|
||||
void r480_init();
|
||||
|
||||
|
||||
|
||||
#endif /* R480R_H_ */
|
||||
Reference in New Issue
Block a user