更新2024.3.26 19:30
This commit is contained in:
parent
0ec6123184
commit
e9718b615e
|
@ -0,0 +1,8 @@
|
|||
#ifndef _APP_H
|
||||
#define _APP_H
|
||||
|
||||
|
||||
void app_act(void);
|
||||
|
||||
|
||||
#endif
|
|
@ -9,5 +9,8 @@ extern int Key_Mode[3]; // 模式0:按住执行,抬起停止;
|
|||
// 模式1:只要按下就执行,不考虑抬起;
|
||||
// 模式2:完成(按下+抬起)的动作才执行。
|
||||
// K1, K2, K3三者模式独立
|
||||
//按键功能
|
||||
void key_act(void);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : app.c
|
||||
* @brief : app program body
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2024 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
/* USER CODE END Header */
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "main.h"
|
||||
#include "i2c.h"
|
||||
#include "spi.h"
|
||||
#include "tim.h"
|
||||
#include "usart.h"
|
||||
#include "gpio.h"
|
||||
#include "key.h"
|
||||
|
||||
void app_act (void)
|
||||
{
|
||||
//1、按键操作
|
||||
Key_Scan();//按键扫描
|
||||
key_act(); //按键执行功能
|
||||
|
||||
//2、
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
496
App/Src/key.c
496
App/Src/key.c
|
@ -18,241 +18,323 @@ void Key_Init(void) // 按键状态&模式初始化
|
|||
Key_Mode[2] = 2;
|
||||
}
|
||||
|
||||
unsigned char key_i = 0;
|
||||
unsigned int key_cnt[3];//计数
|
||||
unsigned char key_no[3];//哪个按键
|
||||
unsigned char key_msg[3];//按键标识
|
||||
unsigned char key_val[3];//按键值
|
||||
|
||||
#define KEY_CNT 10000
|
||||
|
||||
//清除
|
||||
void key_clr(char no)
|
||||
{
|
||||
key_cnt[no] = 0;
|
||||
key_msg[no] = 0;
|
||||
key_no[no] = 0;
|
||||
}
|
||||
|
||||
void Key_Scan(void) // 扫描K1-K3的状态
|
||||
{
|
||||
int i = 0;
|
||||
if (Key_State[2] == 0)//K3使能K1,K2 begin
|
||||
{
|
||||
/*********************************** K1 begin **************************************/
|
||||
// mode 0 begin
|
||||
if (Key_Mode[0] == 0)
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
{
|
||||
Key_State[0] = 1;
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
{
|
||||
Key_State[0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 0 end
|
||||
// char no = 0;
|
||||
key_val[0] = HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin);
|
||||
key_val[1] = HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin);
|
||||
key_val[2] = HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin);
|
||||
|
||||
// mode 1 begin
|
||||
if (Key_Mode[0] == 1)
|
||||
//检测按键
|
||||
if(key_i >= 3) key_i = 0;
|
||||
if (key_val[key_i] == 0 && key_msg[key_i] == 0)//按键按下
|
||||
{
|
||||
if ((HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0) && (Key_Busy[0] == 0))
|
||||
key_cnt[key_i]++;
|
||||
if(key_cnt[key_i] > KEY_CNT)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
{
|
||||
Key_State[0] = !Key_State[0];
|
||||
Key_Busy[0] = 1;
|
||||
key_cnt[key_i] = 0;
|
||||
key_msg[key_i] = 1;//按键按下
|
||||
key_no[key_i] = 1; //哪个按键
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
{
|
||||
Key_Busy[0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 1 end
|
||||
|
||||
// mode 2 begin
|
||||
if (Key_Mode[0] == 2)
|
||||
if (key_val[key_i] == 1 && key_msg[key_i] == 2)//按键抬起
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
key_cnt[key_i]++;
|
||||
if(key_cnt[key_i] > KEY_CNT)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
{
|
||||
Key_Busy[0] = 1; // 完成按下
|
||||
key_cnt[key_i] = 0;
|
||||
key_msg[key_i] = 3;//按键抬起2
|
||||
key_no[key_i] = 1; //哪个按键
|
||||
}
|
||||
}
|
||||
if ((HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1) && (Key_Busy[0] == 1))
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
{
|
||||
// 完成抬起
|
||||
Key_State[0] = !Key_State[0];
|
||||
Key_Busy[0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 2 end
|
||||
/*********************************** K1 end **************************************/
|
||||
|
||||
/*********************************** K2 begin **************************************/
|
||||
// mode 0 begin
|
||||
if (Key_Mode[1] == 0)
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
{
|
||||
Key_State[1] = 1;
|
||||
//按键按顺序增加
|
||||
key_i++;
|
||||
if(key_i >= 3) key_i = 0;
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
{
|
||||
Key_State[1] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 0 end
|
||||
|
||||
// mode 1 begin
|
||||
if (Key_Mode[1] == 1)
|
||||
{
|
||||
if ((HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0) && (Key_Busy[1] == 0))
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
{
|
||||
Key_State[1] = !Key_State[1];
|
||||
Key_Busy[1] = 1;
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
{
|
||||
Key_Busy[1] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 1 end
|
||||
|
||||
// mode 2 begin
|
||||
if (Key_Mode[1] == 2)
|
||||
//按键功能
|
||||
void key_act(void)
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
switch(key_no[key_i])
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
case 1 :
|
||||
{
|
||||
Key_Busy[1] = 1; // 完成按下
|
||||
}
|
||||
}
|
||||
if ((HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1) && (Key_Busy[1] == 1))
|
||||
if(key_msg[key_i] == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
{
|
||||
// 完成抬起
|
||||
Key_Mode[0] = (Key_Mode[0] + 1) * ((Key_Mode[0] + 1) < 3); // 使用K2切换K1模式
|
||||
Key_State[1] = !Key_State[1];
|
||||
Key_Busy[1] = 0;
|
||||
HAL_GPIO_WritePin(GPIOA, LED_NOR_Pin, GPIO_PIN_RESET);//LED 执行一次
|
||||
key_clr(key_i);//清除
|
||||
key_msg[key_i] = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 2 end
|
||||
/*********************************** K2 end **************************************/
|
||||
}//K3使能K1,K2 begin
|
||||
|
||||
/*********************************** K3 begin **************************************/
|
||||
// mode 0 begin
|
||||
if (Key_Mode[2] == 0)
|
||||
if(key_msg[key_i] == 3)
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
{
|
||||
Key_State[2] = 1;
|
||||
HAL_GPIO_WritePin(GPIOA, LED_NOR_Pin, GPIO_PIN_SET);//LED 执行一次
|
||||
key_clr(key_i);//清除
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
{
|
||||
Key_State[2] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 0 end
|
||||
break;
|
||||
|
||||
// mode 1 begin
|
||||
if (Key_Mode[2] == 1)
|
||||
{
|
||||
if ((HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0) && (Key_Busy[2] == 0))
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
{
|
||||
Key_State[2] = !Key_State[2];
|
||||
Key_Busy[2] = 1;
|
||||
}
|
||||
}
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 抬起延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
{
|
||||
Key_Busy[2] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// mode 1 end
|
||||
|
||||
// mode 2 begin
|
||||
if (Key_Mode[2] == 2)
|
||||
{
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
{
|
||||
Key_Busy[2] = 1; // 完成按下
|
||||
}
|
||||
}
|
||||
if ((HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1) && (Key_Busy[2] == 1))
|
||||
{
|
||||
for (i = 0; i < 10000; i++)
|
||||
; // 按下延时防抖
|
||||
if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
{
|
||||
// 完成抬起
|
||||
Key_State[2] = !Key_State[2];
|
||||
Key_Busy[2] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// int i = 0;
|
||||
// if (Key_State[2] == 0)//K3使能K1,K2 begin
|
||||
// {
|
||||
// /*********************************** K1 begin **************************************/
|
||||
// // mode 0 begin
|
||||
// if (Key_Mode[0] == 0)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
// {
|
||||
// Key_State[0] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
// {
|
||||
// Key_State[0] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 0 end
|
||||
|
||||
// // mode 1 begin
|
||||
// if (Key_Mode[0] == 1)
|
||||
// {
|
||||
// if ((HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0) && (Key_Busy[0] == 0))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
// {
|
||||
// Key_State[0] = !Key_State[0];
|
||||
// Key_Busy[0] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
// {
|
||||
// Key_Busy[0] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 1 end
|
||||
|
||||
// // mode 2 begin
|
||||
// if (Key_Mode[0] == 2)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 0)
|
||||
// {
|
||||
// Key_Busy[0] = 1; // 完成按下
|
||||
// }
|
||||
// }
|
||||
// if ((HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1) && (Key_Busy[0] == 1))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == 1)
|
||||
// {
|
||||
// // 完成抬起
|
||||
// Key_State[0] = !Key_State[0];
|
||||
// Key_Busy[0] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 2 end
|
||||
// /*********************************** K1 end **************************************/
|
||||
|
||||
// /*********************************** K2 begin **************************************/
|
||||
// // mode 0 begin
|
||||
// if (Key_Mode[1] == 0)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
// {
|
||||
// Key_State[1] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
// {
|
||||
// Key_State[1] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 0 end
|
||||
|
||||
// // mode 1 begin
|
||||
// if (Key_Mode[1] == 1)
|
||||
// {
|
||||
// if ((HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0) && (Key_Busy[1] == 0))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
// {
|
||||
// Key_State[1] = !Key_State[1];
|
||||
// Key_Busy[1] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
// {
|
||||
// Key_Busy[1] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 1 end
|
||||
|
||||
// // mode 2 begin
|
||||
// if (Key_Mode[1] == 2)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 0)
|
||||
// {
|
||||
// Key_Busy[1] = 1; // 完成按下
|
||||
// }
|
||||
// }
|
||||
// if ((HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1) && (Key_Busy[1] == 1))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) == 1)
|
||||
// {
|
||||
// // 完成抬起
|
||||
// Key_Mode[0] = (Key_Mode[0] + 1) * ((Key_Mode[0] + 1) < 3); // 使用K2切换K1模式
|
||||
// Key_State[1] = !Key_State[1];
|
||||
// Key_Busy[1] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 2 end
|
||||
// /*********************************** K2 end **************************************/
|
||||
// }//K3使能K1,K2 begin
|
||||
|
||||
// /*********************************** K3 begin **************************************/
|
||||
// // mode 0 begin
|
||||
// if (Key_Mode[2] == 0)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
// {
|
||||
// Key_State[2] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
// {
|
||||
// Key_State[2] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 0 end
|
||||
|
||||
// // mode 1 begin
|
||||
// if (Key_Mode[2] == 1)
|
||||
// {
|
||||
// if ((HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0) && (Key_Busy[2] == 0))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
// {
|
||||
// Key_State[2] = !Key_State[2];
|
||||
// Key_Busy[2] = 1;
|
||||
// }
|
||||
// }
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 抬起延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
// {
|
||||
// Key_Busy[2] = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // mode 1 end
|
||||
|
||||
// // mode 2 begin
|
||||
// if (Key_Mode[2] == 2)
|
||||
// {
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 0)
|
||||
// {
|
||||
// Key_Busy[2] = 1; // 完成按下
|
||||
// }
|
||||
// }
|
||||
// if ((HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1) && (Key_Busy[2] == 1))
|
||||
// {
|
||||
// for (i = 0; i < 10000; i++)
|
||||
// ; // 按下延时防抖
|
||||
// if (HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) == 1)
|
||||
// {
|
||||
// // 完成抬起
|
||||
// Key_State[2] = !Key_State[2];
|
||||
// Key_Busy[2] = 0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// mode 2 end
|
||||
/*********************************** K3 end **************************************/
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<component_viewer schemaVersion="0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
|
||||
|
||||
<component name="EventRecorderStub" version="1.0.0"/> <!--name and version of the component-->
|
||||
<events>
|
||||
</events>
|
||||
|
||||
</component_viewer>
|
File diff suppressed because one or more lines are too long
|
@ -117,6 +117,26 @@
|
|||
<pMon>STLink\ST-LINKIII-KEIL_SWO.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>ARMRTXEVENTFLAGS</Key>
|
||||
<Name>-L70 -Z18 -C0 -M0 -T1</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>DLGTARM</Key>
|
||||
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>ARMDBGFLAGS</Key>
|
||||
<Name></Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>DLGUARM</Key>
|
||||
<Name>(105=-1,-1,-1,-1,0)</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
|
@ -140,7 +160,7 @@
|
|||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<viewmode>1</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
|
@ -555,6 +575,18 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\App\Src\app.c</PathWithFileName>
|
||||
<FilenameWithoutPath>app.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
|
|
|
@ -1615,6 +1615,11 @@
|
|||
<FileType>5</FileType>
|
||||
<FilePath>..\App\Inc\key.h</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>app.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\App\Src\app.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[EXTDLL]
|
||||
Count=0
|
Binary file not shown.
|
@ -0,0 +1,38 @@
|
|||
mfps\app.o: ..\App\Src\app.c
|
||||
mfps\app.o: ../Inc/main.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h
|
||||
mfps\app.o: ../Inc/stm32f1xx_hal_conf.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Include/core_cm3.h
|
||||
mfps\app.o: C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin\..\include\stdint.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Include/cmsis_version.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Include/cmsis_compiler.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Include/cmsis_armcc.h
|
||||
mfps\app.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
|
||||
mfps\app.o: C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin\..\include\stddef.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
|
||||
mfps\app.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h
|
||||
mfps\app.o: ../Inc/i2c.h
|
||||
mfps\app.o: ../Inc/spi.h
|
||||
mfps\app.o: ../Inc/tim.h
|
||||
mfps\app.o: ../Inc/usart.h
|
||||
mfps\app.o: ../Inc/gpio.h
|
||||
mfps\app.o: ..\App\Inc\key.h
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -36,3 +36,4 @@ mfps\main.o: ../Inc/tim.h
|
|||
mfps\main.o: ../Inc/usart.h
|
||||
mfps\main.o: ../Inc/gpio.h
|
||||
mfps\main.o: ..\App\Inc\key.h
|
||||
mfps\main.o: ..\App\Inc\app.h
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -26,36 +26,11 @@ Project File Date: 03/26/2024
|
|||
|
||||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin'
|
||||
Rebuild target 'mfps'
|
||||
assembling startup_stm32f103xe.s...
|
||||
compiling stm32f1xx_hal_msp.c...
|
||||
compiling stm32f1xx_it.c...
|
||||
compiling spi.c...
|
||||
compiling gpio.c...
|
||||
compiling stm32f1xx_hal_rcc_ex.c...
|
||||
compiling tim.c...
|
||||
compiling i2c.c...
|
||||
compiling stm32f1xx_hal.c...
|
||||
compiling stm32f1xx_hal_dma.c...
|
||||
compiling main.c...
|
||||
compiling usart.c...
|
||||
compiling stm32f1xx_hal_gpio_ex.c...
|
||||
compiling stm32f1xx_hal_rcc.c...
|
||||
compiling stm32f1xx_hal_gpio.c...
|
||||
compiling stm32f1xx_hal_i2c.c...
|
||||
compiling system_stm32f1xx.c...
|
||||
compiling stm32f1xx_hal_flash_ex.c...
|
||||
compiling stm32f1xx_hal_cortex.c...
|
||||
compiling stm32f1xx_hal_exti.c...
|
||||
Build target 'mfps'
|
||||
compiling app.c...
|
||||
compiling key.c...
|
||||
compiling stm32f1xx_hal_pwr.c...
|
||||
compiling stm32f1xx_hal_flash.c...
|
||||
compiling stm32f1xx_hal_spi.c...
|
||||
compiling stm32f1xx_hal_tim_ex.c...
|
||||
compiling stm32f1xx_hal_uart.c...
|
||||
compiling stm32f1xx_hal_tim.c...
|
||||
linking...
|
||||
Program Size: Code=12000 RO-data=380 RW-data=16 ZI-data=2288
|
||||
Program Size: Code=11220 RO-data=380 RW-data=28 ZI-data=2292
|
||||
FromELF: creating hex file...
|
||||
"mfps\mfps.axf" - 0 Error(s), 0 Warning(s).
|
||||
|
||||
|
@ -80,7 +55,7 @@ Package Vendor: Keil
|
|||
<h2>Collection of Component Files used:</h2>
|
||||
|
||||
* Component: ARM::CMSIS:CORE@5.6.0
|
||||
Build Time Elapsed: 00:00:06
|
||||
Build Time Elapsed: 00:00:02
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,7 @@
|
|||
<title>Static Call Graph - [mfps\mfps.axf]</title></head>
|
||||
<body><HR>
|
||||
<H1>Static Call Graph for image mfps\mfps.axf</H1><HR>
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Tue Mar 26 17:27:27 2024
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Tue Mar 26 19:14:57 2024
|
||||
<BR><P>
|
||||
<H3>Maximum Stack Usage = 136 bytes + Unknown(Functions without stacksize, Cycles, Untraceable Function Pointers)</H3><H3>
|
||||
Call chain for Maximum Stack Depth:</H3>
|
||||
|
@ -124,9 +124,9 @@ Global Symbols
|
|||
<BR><BR>[Calls]<UL><LI><a href="#[50]">>></a> __rt_entry
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b6]"></a>__scatterload_rt2_thumb_only</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __scatter.o(!!!scatter), UNUSED)
|
||||
<P><STRONG><a name="[b8]"></a>__scatterload_rt2_thumb_only</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __scatter.o(!!!scatter), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[b7]"></a>__scatterload_null</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __scatter.o(!!!scatter), UNUSED)
|
||||
<P><STRONG><a name="[b9]"></a>__scatterload_null</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __scatter.o(!!!scatter), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[52]"></a>__scatterload_copy</STRONG> (Thumb, 26 bytes, Stack size unknown bytes, __scatter_copy.o(!!handler_copy), UNUSED)
|
||||
<BR><BR>[Calls]<UL><LI><a href="#[52]">>></a> __scatterload_copy
|
||||
|
@ -134,80 +134,80 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[52]">>></a> __scatterload_copy
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b8]"></a>__scatterload_zeroinit</STRONG> (Thumb, 28 bytes, Stack size unknown bytes, __scatter_zi.o(!!handler_zi), UNUSED)
|
||||
<P><STRONG><a name="[ba]"></a>__scatterload_zeroinit</STRONG> (Thumb, 28 bytes, Stack size unknown bytes, __scatter_zi.o(!!handler_zi), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[56]"></a>__rt_lib_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit.o(.ARM.Collect$$libinit$$00000000))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[55]">>></a> __rt_entry_li
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b9]"></a>__rt_lib_init_alloca_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000002E))
|
||||
<P><STRONG><a name="[bb]"></a>__rt_lib_init_alloca_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000002E))
|
||||
|
||||
<P><STRONG><a name="[ba]"></a>__rt_lib_init_argv_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000002C))
|
||||
<P><STRONG><a name="[bc]"></a>__rt_lib_init_argv_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000002C))
|
||||
|
||||
<P><STRONG><a name="[bb]"></a>__rt_lib_init_atexit_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001B))
|
||||
<P><STRONG><a name="[bd]"></a>__rt_lib_init_atexit_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001B))
|
||||
|
||||
<P><STRONG><a name="[bc]"></a>__rt_lib_init_clock_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000021))
|
||||
<P><STRONG><a name="[be]"></a>__rt_lib_init_clock_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000021))
|
||||
|
||||
<P><STRONG><a name="[bd]"></a>__rt_lib_init_cpp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000032))
|
||||
<P><STRONG><a name="[bf]"></a>__rt_lib_init_cpp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000032))
|
||||
|
||||
<P><STRONG><a name="[be]"></a>__rt_lib_init_exceptions_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000030))
|
||||
<P><STRONG><a name="[c0]"></a>__rt_lib_init_exceptions_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000030))
|
||||
|
||||
<P><STRONG><a name="[bf]"></a>__rt_lib_init_fp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000002))
|
||||
<P><STRONG><a name="[c1]"></a>__rt_lib_init_fp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000002))
|
||||
|
||||
<P><STRONG><a name="[c0]"></a>__rt_lib_init_fp_trap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001F))
|
||||
<P><STRONG><a name="[c2]"></a>__rt_lib_init_fp_trap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001F))
|
||||
|
||||
<P><STRONG><a name="[c1]"></a>__rt_lib_init_getenv_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000023))
|
||||
<P><STRONG><a name="[c3]"></a>__rt_lib_init_getenv_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000023))
|
||||
|
||||
<P><STRONG><a name="[c2]"></a>__rt_lib_init_heap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000A))
|
||||
<P><STRONG><a name="[c4]"></a>__rt_lib_init_heap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000A))
|
||||
|
||||
<P><STRONG><a name="[c3]"></a>__rt_lib_init_lc_collate_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000011))
|
||||
<P><STRONG><a name="[c5]"></a>__rt_lib_init_lc_collate_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000011))
|
||||
|
||||
<P><STRONG><a name="[c4]"></a>__rt_lib_init_lc_ctype_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000013))
|
||||
<P><STRONG><a name="[c6]"></a>__rt_lib_init_lc_ctype_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000013))
|
||||
|
||||
<P><STRONG><a name="[c5]"></a>__rt_lib_init_lc_monetary_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000015))
|
||||
<P><STRONG><a name="[c7]"></a>__rt_lib_init_lc_monetary_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000015))
|
||||
|
||||
<P><STRONG><a name="[c6]"></a>__rt_lib_init_lc_numeric_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000017))
|
||||
<P><STRONG><a name="[c8]"></a>__rt_lib_init_lc_numeric_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000017))
|
||||
|
||||
<P><STRONG><a name="[c7]"></a>__rt_lib_init_lc_time_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000019))
|
||||
<P><STRONG><a name="[c9]"></a>__rt_lib_init_lc_time_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000019))
|
||||
|
||||
<P><STRONG><a name="[c8]"></a>__rt_lib_init_preinit_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000004))
|
||||
<P><STRONG><a name="[ca]"></a>__rt_lib_init_preinit_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000004))
|
||||
|
||||
<P><STRONG><a name="[c9]"></a>__rt_lib_init_rand_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000E))
|
||||
<P><STRONG><a name="[cb]"></a>__rt_lib_init_rand_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000E))
|
||||
|
||||
<P><STRONG><a name="[ca]"></a>__rt_lib_init_return</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000033))
|
||||
<P><STRONG><a name="[cc]"></a>__rt_lib_init_return</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000033))
|
||||
|
||||
<P><STRONG><a name="[cb]"></a>__rt_lib_init_signal_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001D))
|
||||
<P><STRONG><a name="[cd]"></a>__rt_lib_init_signal_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000001D))
|
||||
|
||||
<P><STRONG><a name="[cc]"></a>__rt_lib_init_stdio_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000025))
|
||||
<P><STRONG><a name="[ce]"></a>__rt_lib_init_stdio_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$00000025))
|
||||
|
||||
<P><STRONG><a name="[cd]"></a>__rt_lib_init_user_alloc_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000C))
|
||||
<P><STRONG><a name="[cf]"></a>__rt_lib_init_user_alloc_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libinit2.o(.ARM.Collect$$libinit$$0000000C))
|
||||
|
||||
<P><STRONG><a name="[5b]"></a>__rt_lib_shutdown</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown.o(.ARM.Collect$$libshutdown$$00000000))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[5a]">>></a> __rt_exit_ls
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[ce]"></a>__rt_lib_shutdown_cpp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000004))
|
||||
<P><STRONG><a name="[d0]"></a>__rt_lib_shutdown_cpp_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000004))
|
||||
|
||||
<P><STRONG><a name="[cf]"></a>__rt_lib_shutdown_fini_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000002))
|
||||
<P><STRONG><a name="[d1]"></a>__rt_lib_shutdown_fini_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000002))
|
||||
|
||||
<P><STRONG><a name="[d0]"></a>__rt_lib_shutdown_fp_trap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000009))
|
||||
<P><STRONG><a name="[d2]"></a>__rt_lib_shutdown_fp_trap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000009))
|
||||
|
||||
<P><STRONG><a name="[d1]"></a>__rt_lib_shutdown_heap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000011))
|
||||
<P><STRONG><a name="[d3]"></a>__rt_lib_shutdown_heap_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000011))
|
||||
|
||||
<P><STRONG><a name="[d2]"></a>__rt_lib_shutdown_return</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000012))
|
||||
<P><STRONG><a name="[d4]"></a>__rt_lib_shutdown_return</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000012))
|
||||
|
||||
<P><STRONG><a name="[d3]"></a>__rt_lib_shutdown_signal_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$0000000C))
|
||||
<P><STRONG><a name="[d5]"></a>__rt_lib_shutdown_signal_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$0000000C))
|
||||
|
||||
<P><STRONG><a name="[d4]"></a>__rt_lib_shutdown_stdio_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000006))
|
||||
<P><STRONG><a name="[d6]"></a>__rt_lib_shutdown_stdio_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$00000006))
|
||||
|
||||
<P><STRONG><a name="[d5]"></a>__rt_lib_shutdown_user_alloc_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$0000000E))
|
||||
<P><STRONG><a name="[d7]"></a>__rt_lib_shutdown_user_alloc_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, libshutdown2.o(.ARM.Collect$$libshutdown$$0000000E))
|
||||
|
||||
<P><STRONG><a name="[50]"></a>__rt_entry</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry.o(.ARM.Collect$$rtentry$$00000000))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[4e]">>></a> __main
|
||||
<LI><a href="#[51]">>></a> __scatterload_rt2
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[d6]"></a>__rt_entry_presh_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$00000002))
|
||||
<P><STRONG><a name="[d8]"></a>__rt_entry_presh_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$00000002))
|
||||
|
||||
<P><STRONG><a name="[53]"></a>__rt_entry_sh</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry4.o(.ARM.Collect$$rtentry$$00000004))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 8 + Unknown Stack Size
|
||||
|
@ -220,7 +220,7 @@ Global Symbols
|
|||
<BR><BR>[Calls]<UL><LI><a href="#[56]">>></a> __rt_lib_init
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[d7]"></a>__rt_entry_postsh_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$00000009))
|
||||
<P><STRONG><a name="[d9]"></a>__rt_entry_postsh_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$00000009))
|
||||
|
||||
<P><STRONG><a name="[57]"></a>__rt_entry_main</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$0000000D))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 136 + Unknown Stack Size
|
||||
|
@ -230,7 +230,7 @@ Global Symbols
|
|||
<LI><a href="#[59]">>></a> exit
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[d8]"></a>__rt_entry_postli_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$0000000C))
|
||||
<P><STRONG><a name="[da]"></a>__rt_entry_postli_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, __rtentry2.o(.ARM.Collect$$rtentry$$0000000C))
|
||||
|
||||
<P><STRONG><a name="[60]"></a>__rt_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rtexit.o(.ARM.Collect$$rtexit$$00000000))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[59]">>></a> exit
|
||||
|
@ -240,7 +240,7 @@ Global Symbols
|
|||
<BR><BR>[Calls]<UL><LI><a href="#[5b]">>></a> __rt_lib_shutdown
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[d9]"></a>__rt_exit_prels_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rtexit2.o(.ARM.Collect$$rtexit$$00000002))
|
||||
<P><STRONG><a name="[db]"></a>__rt_exit_prels_1</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rtexit2.o(.ARM.Collect$$rtexit$$00000002))
|
||||
|
||||
<P><STRONG><a name="[5c]"></a>__rt_exit_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rtexit2.o(.ARM.Collect$$rtexit$$00000004))
|
||||
<BR><BR>[Calls]<UL><LI><a href="#[5d]">>></a> _sys_exit
|
||||
|
@ -420,17 +420,17 @@ Global Symbols
|
|||
<LI><a href="#[ae]">>></a> SystemClock_Config
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[da]"></a>__aeabi_memclr8</STRONG> (Thumb, 0 bytes, Stack size 4 bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[dc]"></a>__aeabi_memclr8</STRONG> (Thumb, 0 bytes, Stack size 4 bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[db]"></a>__rt_memclr_w</STRONG> (Thumb, 78 bytes, Stack size 4 bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[dd]"></a>__rt_memclr_w</STRONG> (Thumb, 78 bytes, Stack size 4 bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[dc]"></a>_memset_w</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[de]"></a>_memset_w</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, rt_memclr_w.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[dd]"></a>__use_two_region_memory</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[df]"></a>__use_two_region_memory</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[de]"></a>__rt_heap_escrow$2region</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e0]"></a>__rt_heap_escrow$2region</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[df]"></a>__rt_heap_expand$2region</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e1]"></a>__rt_heap_expand$2region</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, heapauxi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[54]"></a>__user_setup_stackheap</STRONG> (Thumb, 74 bytes, Stack size 8 bytes, sys_stackheap_outer.o(.text))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 8 + Unknown Stack Size
|
||||
|
@ -451,21 +451,21 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[57]">>></a> __rt_entry_main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[e0]"></a>__user_libspace</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, libspace.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e2]"></a>__user_libspace</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, libspace.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[5e]"></a>__user_perproc_libspace</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, libspace.o(.text))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[54]">>></a> __user_setup_stackheap
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[e1]"></a>__user_perthread_libspace</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, libspace.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e3]"></a>__user_perthread_libspace</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, libspace.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[5d]"></a>_sys_exit</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, sys_exit.o(.text))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[5c]">>></a> __rt_exit_exit
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[e2]"></a>__I$use$semihosting</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, use_no_semi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e4]"></a>__I$use$semihosting</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, use_no_semi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[e3]"></a>__use_no_semihosting_swi</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, use_no_semi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e5]"></a>__use_no_semihosting_swi</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, use_no_semi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[7]"></a>BusFault_Handler</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.BusFault_Handler))
|
||||
<BR><BR>[Calls]<UL><LI><a href="#[7]">>></a> BusFault_Handler
|
||||
|
@ -474,7 +474,7 @@ Global Symbols
|
|||
</UL>
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f103xe.o(RESET)
|
||||
</UL>
|
||||
<P><STRONG><a name="[e4]"></a>__semihosting_library_function</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, indicate_semi.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[e6]"></a>__semihosting_library_function</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, indicate_semi.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[a]"></a>DebugMon_Handler</STRONG> (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DebugMon_Handler))
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f103xe.o(RESET)
|
||||
|
@ -522,13 +522,10 @@ Global Symbols
|
|||
<BR><BR>[Called By]<UL><LI><a href="#[9e]">>></a> Key_Scan
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b5]"></a>HAL_GPIO_TogglePin</STRONG> (Thumb, 16 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_TogglePin))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[58]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[a1]"></a>HAL_GPIO_WritePin</STRONG> (Thumb, 10 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[a0]">>></a> MX_GPIO_Init
|
||||
<LI><a href="#[58]">>></a> main
|
||||
<LI><a href="#[b5]">>></a> key_act
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[7d]"></a>HAL_GetTick</STRONG> (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_hal.o(i.HAL_GetTick))
|
||||
|
@ -865,16 +862,16 @@ Global Symbols
|
|||
</UL>
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f103xe.o(RESET)
|
||||
</UL>
|
||||
<P><STRONG><a name="[b4]"></a>Key_Init</STRONG> (Thumb, 24 bytes, Stack size 0 bytes, key.o(i.Key_Init))
|
||||
<P><STRONG><a name="[b7]"></a>Key_Init</STRONG> (Thumb, 24 bytes, Stack size 0 bytes, key.o(i.Key_Init))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[58]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[9e]"></a>Key_Scan</STRONG> (Thumb, 892 bytes, Stack size 40 bytes, key.o(i.Key_Scan))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 40<LI>Call Chain = Key_Scan
|
||||
<P><STRONG><a name="[9e]"></a>Key_Scan</STRONG> (Thumb, 158 bytes, Stack size 24 bytes, key.o(i.Key_Scan))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 24<LI>Call Chain = Key_Scan
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[9f]">>></a> HAL_GPIO_ReadPin
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[58]">>></a> main
|
||||
<BR>[Called By]<UL><LI><a href="#[b4]">>></a> app_act
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[a0]"></a>MX_GPIO_Init</STRONG> (Thumb, 308 bytes, Stack size 56 bytes, gpio.o(i.MX_GPIO_Init))
|
||||
|
@ -1060,10 +1057,28 @@ Global Symbols
|
|||
</UL>
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f103xe.o(RESET)
|
||||
</UL>
|
||||
<P><STRONG><a name="[58]"></a>main</STRONG> (Thumb, 214 bytes, Stack size 0 bytes, main.o(i.main))
|
||||
<P><STRONG><a name="[b4]"></a>app_act</STRONG> (Thumb, 14 bytes, Stack size 8 bytes, app.o(i.app_act))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 32<LI>Call Chain = app_act ⇒ Key_Scan
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[9e]">>></a> Key_Scan
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[58]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b5]"></a>key_act</STRONG> (Thumb, 66 bytes, Stack size 16 bytes, key.o(i.key_act), UNUSED)
|
||||
<BR><BR>[Calls]<UL><LI><a href="#[a1]">>></a> HAL_GPIO_WritePin
|
||||
<LI><a href="#[b6]">>></a> key_clr
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b6]"></a>key_clr</STRONG> (Thumb, 18 bytes, Stack size 0 bytes, key.o(i.key_clr), UNUSED)
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[b5]">>></a> key_act
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[58]"></a>main</STRONG> (Thumb, 78 bytes, Stack size 0 bytes, main.o(i.main))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 136<LI>Call Chain = main ⇒ SystemClock_Config ⇒ HAL_RCC_ClockConfig ⇒ HAL_InitTick ⇒ HAL_NVIC_SetPriority
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[ac]">>></a> MX_USART3_UART_Init
|
||||
<BR>[Calls]<UL><LI><a href="#[b4]">>></a> app_act
|
||||
<LI><a href="#[ac]">>></a> MX_USART3_UART_Init
|
||||
<LI><a href="#[ab]">>></a> MX_USART2_UART_Init
|
||||
<LI><a href="#[aa]">>></a> MX_USART1_UART_Init
|
||||
<LI><a href="#[a9]">>></a> MX_UART4_Init
|
||||
|
@ -1072,11 +1087,9 @@ Global Symbols
|
|||
<LI><a href="#[a4]">>></a> MX_SPI1_Init
|
||||
<LI><a href="#[a2]">>></a> MX_I2C1_Init
|
||||
<LI><a href="#[a0]">>></a> MX_GPIO_Init
|
||||
<LI><a href="#[9e]">>></a> Key_Scan
|
||||
<LI><a href="#[b4]">>></a> Key_Init
|
||||
<LI><a href="#[b7]">>></a> Key_Init
|
||||
<LI><a href="#[76]">>></a> HAL_Init
|
||||
<LI><a href="#[a1]">>></a> HAL_GPIO_WritePin
|
||||
<LI><a href="#[b5]">>></a> HAL_GPIO_TogglePin
|
||||
<LI><a href="#[ae]">>></a> SystemClock_Config
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[57]">>></a> __rt_entry_main
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"mfps\stm32f1xx_hal_uart.o"
|
||||
"mfps\system_stm32f1xx.o"
|
||||
"mfps\key.o"
|
||||
"mfps\app.o"
|
||||
--strict --scatter "mfps\mfps.sct"
|
||||
--summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols
|
||||
--info sizes --info totals --info unused --info veneers
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
Dependencies for Project 'mfps', Target 'mfps': (DO NOT MODIFY !)
|
||||
CompilerVersion: 5060960::V5.06 update 7 (build 960)::.\ARM_Compiler_5.06u7
|
||||
F (startup_stm32f103xe.s)(0x66022047)(--cpu Cortex-M3 -g --apcs=interwork
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
--pd "__UVISION_VERSION SETA 539" --pd "_RTE_ SETA 1" --pd "STM32F10X_HD SETA 1" --pd "_RTE_ SETA 1"
--list startup_stm32f103xe.lst --xref -o mfps\startup_stm32f103xe.o --depend mfps\startup_stm32f103xe.d)
|
||||
F (../Src/main.c)(0x660294F9)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\main.o --omf_browse mfps\main.crf --depend mfps\main.d)
|
||||
F (../Src/main.c)(0x6602ACCF)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\main.o --omf_browse mfps\main.crf --depend mfps\main.d)
|
||||
I (../Inc/main.h)(0x66022045)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x66011731)
|
||||
I (../Inc/stm32f1xx_hal_conf.h)(0x66022045)
|
||||
|
@ -37,7 +37,8 @@ I (../Inc/spi.h)(0x66022044)
|
|||
I (../Inc/tim.h)(0x660209D4)
|
||||
I (../Inc/usart.h)(0x66022044)
|
||||
I (../Inc/gpio.h)(0x6602097F)
|
||||
I (..\App\Inc\key.h)(0x66026F4F)
|
||||
I (..\App\Inc\key.h)(0x6602A1D5)
|
||||
I (..\App\Inc\app.h)(0x6602ACA7)
|
||||
F (../Src/gpio.c)(0x66022043)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\gpio.o --omf_browse mfps\gpio.crf --depend mfps\gpio.d)
|
||||
I (../Inc/gpio.h)(0x6602097F)
|
||||
I (../Inc/main.h)(0x66022045)
|
||||
|
@ -771,8 +772,8 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x66011731)
|
|||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x66011731)
|
||||
F (..\App\Src\key.c)(0x6602932B)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\key.o --omf_browse mfps\key.crf --depend mfps\key.d)
|
||||
I (..\App\Inc\key.h)(0x66026F4F)
|
||||
F (..\App\Src\key.c)(0x6602AE28)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\key.o --omf_browse mfps\key.crf --depend mfps\key.d)
|
||||
I (..\App\Inc\key.h)(0x6602A1D5)
|
||||
I (../Inc/main.h)(0x66022045)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x66011731)
|
||||
I (../Inc/stm32f1xx_hal_conf.h)(0x66022045)
|
||||
|
@ -803,4 +804,41 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x66011731)
|
|||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x66011731)
|
||||
F (..\App\Inc\key.h)(0x66026F4F)()
|
||||
F (..\App\Inc\key.h)(0x6602A1D5)()
|
||||
F (..\App\Src\app.c)(0x6602AD69)(--c99 -c --cpu Cortex-M3 -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ..\App\Src -I ..\App\Inc
-I.\RTE\_mfps
-IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.9.0\CMSIS\Core\Include
-IC:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="539" -D_RTE_ -DSTM32F10X_HD -D_RTE_ -DSTM32F103xE -DUSE_HAL_DRIVER
-o mfps\app.o --omf_browse mfps\app.crf --depend mfps\app.d)
|
||||
I (../Inc/main.h)(0x66022045)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x66011731)
|
||||
I (../Inc/stm32f1xx_hal_conf.h)(0x66022045)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x66011731)
|
||||
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x66011731)
|
||||
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h)(0x66011731)
|
||||
I (../Drivers/CMSIS/Include/core_cm3.h)(0x66011729)
|
||||
I (C:\Keil_v5\ARM\ARM_Compiler_5.06u7\include\stdint.h)(0x5E8E3CC2)
|
||||
I (../Drivers/CMSIS/Include/cmsis_version.h)(0x66011729)
|
||||
I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x66011729)
|
||||
I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x66011729)
|
||||
I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x66011731)
|
||||
I (C:\Keil_v5\ARM\ARM_Compiler_5.06u7\include\stddef.h)(0x5E8E3CC2)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x66011731)
|
||||
I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x66011731)
|
||||
I (../Inc/i2c.h)(0x66022044)
|
||||
I (../Inc/spi.h)(0x66022044)
|
||||
I (../Inc/tim.h)(0x660209D4)
|
||||
I (../Inc/usart.h)(0x66022044)
|
||||
I (../Inc/gpio.h)(0x6602097F)
|
||||
I (..\App\Inc\key.h)(0x6602A1D5)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
41
Src/main.c
41
Src/main.c
|
@ -24,6 +24,7 @@
|
|||
#include "usart.h"
|
||||
#include "gpio.h"
|
||||
#include "key.h"
|
||||
#include "app.h"
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
@ -99,7 +100,7 @@ int main(void)
|
|||
MX_USART2_UART_Init();
|
||||
MX_USART3_UART_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
int i;
|
||||
|
||||
Key_Init();
|
||||
HAL_GPIO_WritePin(LED_NOR_GPIO_Port, LED_NOR_Pin, GPIO_PIN_SET); // 绿灯初始为灭
|
||||
HAL_GPIO_WritePin(LED_ERR_GPIO_Port, LED_ERR_Pin, GPIO_PIN_SET); // 蓝灯初始为灭
|
||||
|
@ -113,41 +114,15 @@ int main(void)
|
|||
|
||||
/* USER CODE BEGIN 3 */
|
||||
|
||||
if(Key_State[2]==1)//K3 使能失效后初始化按键,蓝灯熄灭
|
||||
{
|
||||
Key_Init();
|
||||
HAL_GPIO_WritePin(LED_ERR_GPIO_Port, LED_ERR_Pin, GPIO_PIN_SET);
|
||||
}
|
||||
|
||||
Key_Scan();
|
||||
|
||||
// K1 控制NOR绿灯 begin
|
||||
if (Key_State[0] == 1)
|
||||
{
|
||||
HAL_GPIO_WritePin(LED_NOR_GPIO_Port, LED_NOR_Pin, GPIO_PIN_RESET);
|
||||
}
|
||||
else
|
||||
{
|
||||
HAL_GPIO_WritePin(LED_NOR_GPIO_Port, LED_NOR_Pin, GPIO_PIN_SET);
|
||||
}
|
||||
// K1 控制NOR绿灯 end
|
||||
/* USER CODE BEGIN 2 */
|
||||
//功能
|
||||
app_act();
|
||||
|
||||
/* USER CODE END 2 */
|
||||
|
||||
|
||||
if ((Key_Mode[0] == 0) && (Key_State[2] == 0))
|
||||
{
|
||||
HAL_GPIO_WritePin(LED_ERR_GPIO_Port, LED_ERR_Pin, GPIO_PIN_RESET); // K1模式0,蓝灯长亮
|
||||
}
|
||||
if ((Key_Mode[0] == 1)&& (Key_State[2] == 0))
|
||||
{
|
||||
for (i = 0; i < 100000; i++)
|
||||
;
|
||||
HAL_GPIO_TogglePin(LED_ERR_GPIO_Port, LED_ERR_Pin); // K1模式1,蓝灯快速闪烁
|
||||
}
|
||||
if ((Key_Mode[0] == 2)&& (Key_State[2] == 0))
|
||||
{
|
||||
for (i = 0; i < 1000000; i++)
|
||||
;
|
||||
HAL_GPIO_TogglePin(LED_ERR_GPIO_Port, LED_ERR_Pin); // K1模式2,蓝灯慢速闪烁
|
||||
}
|
||||
|
||||
}
|
||||
/* USER CODE END 3 */
|
||||
|
|
Reference in New Issue