From 72def895431ad7a08e635b11f3da738e2b2c4618 Mon Sep 17 00:00:00 2001
From: wujiazhi <1147861305@qq.com>
Date: Thu, 13 Jun 2024 11:31:04 +0800
Subject: [PATCH] add lower model test

---
 CORE/main.c |  106 ++++++++---------------------------------------------
 1 files changed, 16 insertions(+), 90 deletions(-)

diff --git a/CORE/main.c b/CORE/main.c
index 17deeee..2081a69 100644
--- a/CORE/main.c
+++ b/CORE/main.c
@@ -1,98 +1,24 @@
 #include "main.h"
 #include "gpio.h"
 #include "rcc_config.h"
-#include "uart.h"
-#include "tim.h"
-#include "rtc.h"
-#include "exti.h"
-#include "adc.h"
-#include "i2c.h"
-#include "extern_rtc.h"
-#include "spi.h"
-#include "eeprom.h"
-#include "key.h"
-#include "flash.h"
-#include "system_run_fun.h"
-#include "system_general_para.h"
-#include "lcd.h"
-#include "upper_com.h"
-
-FlagStatus key_awaken_flag_g = RESET;
-//uint8_t lcd_only_one_flag = 0;
+#include "project_test.h"
 
 
 int main(void)
 {
-	System_power_on_init();
-
-	/*���ֳ�ʼ��*/
-	//Ӳ��������ʼ��
-	hardwareDriversInit();
-	//�洢�IJ�����ʼ��
-	sysStoredParaInit();
-	//���й��ܲ�����ʼ��
-	sysRunFunParaInit();
-	
-	//ϵͳ��ʼ״̬���
-	
-	
-	
-	
-	//�������ⲿ�����ж�
-	allExtiIRQ();
-	IWDT_Clr();
-	while(1)
-	{
-		if(sys_run_period==SET) 
-		{
-			sys_run_period = RESET;
-			IWDT_Clr();
-			
-			if(Get_Extern_Rtc_Time(&sys_clockBCD_g) ==FAIL) //��ȡʱ��
-			{
-				//RTCʱ���쳣����
-			}
-			
-			//����ʶ��
-			//����������Ҫ�ж�ʶ�𣬳�������ѭ����ʶ��
-			keyPro();
-					
-			//LCD��ʾ
-			lcdDisplayPro();
-			
-			//�������
-			upperComPro();
-			
-			
-			//�ɼ����ϱ��������������
-			
-			//485�ɼ�
-			
-			//����
-			
-			//״̬�֡������ִ���
-			
-			
-			//����������ͨѶ��Ԥ��
-			
-			//˼��ƽ̨����ͨѶ
-			
-			
-			//modbus��ַ�����ݸ���
-			
-			
-			
-			
-			
-			
-			
-			//����
-			
-			
-			
-		}
-	}
+  System_power_on_init();
+  All_GPIO_Init_test();
+  UART_Init_test();
+  ALL_ADC_Init_Test();
+  Iic_Init_Test();
+	project_test_9();// ʱ�Ӿ��Ȳ���
+	project_test_7(); // Һ����ʾ
+  ALL_GPIO_EXTI_test();
+#if Debug_Model 
+  AppNvr_Print();
+#endif
+  while (1)
+  {
+    Project_Test();
+  }
 }
-
-
-

--
Gitblit v1.9.3