跨文件使用变量

This commit is contained in:
wantong
2024-01-30 17:50:49 +08:00
parent c4ca59d53e
commit 0732984a64
12 changed files with 4415 additions and 4350 deletions

View File

@ -73,7 +73,7 @@ static void MPU_Config(void);
int main(void)
{
/* USER CODE BEGIN 1 */
uint8_t len;
int age;
/* USER CODE END 1 */
@ -108,7 +108,7 @@ int main(void)
/* USER CODE BEGIN 2 */
RetargetInit(&huart1);
int value;
/* USER CODE END 2 */
/* Infinite loop */
@ -118,10 +118,13 @@ int main(void)
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
struct paramstruct *paramstruct;
paramstruct = GetParametesptr();
paramstruct->age=20;
SerialDataProcess();
SerialDataProcess();
age= Change_Age();
printf("Age is %d\r\n",age);
// printf("Hello World\r\n");
}
/* USER CODE END 3 */