⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basiccar.c

📁 一款车载DVD的车机源程序(正在生成中的哦)
💻 C
字号:
/***************************************************************************
Project  :  Car two ting dvd System
Compiler :  ST7 HiCross C (HiWARE)
Module   :  autos.c 
Version  :  V 1.0
Created  :  24 11, 2005
Author   :  tomi / SA
Description
         -  Main Program of the car two ting dvd System.  
Modified
		 - tomi
***************************************************************************/
#include "Inter.h"
#include "Libr.h"
#include "St72321.h"
#include "IOport.h"
#include "Sys_config.h"
#include "i2c_drv.h"
#include "System_operation.h"
#include "Csp.h"
#include "Video_switch.h"
#include "Radio_tuner.h"
#include "OSD.h"
#include "TW101reg.h"
#include "OSD_string.h"
#include "Touch.h"
#include "Clock.h"
#include "TV_tuner.h"
#include "SPI.h"
#include "Menu.h"
#include "CDC.h"

/***************************************************************************
        Main Program after Start-Up
****************************************************************************/


void main (void)
{
	unsigned char i;
	Init_IO_port();
	Init_each_process();
	First_wait_unchain_stby();
/*Program main loop here*********************/
	while(1)
		{
		Detect_ACC();
		if(ValBit(System_flag,ACC_on_flag))	/*ACC on then process system,otherwise then detect the ACC*/
			{
			Detect_key();
			if(ValBit(System_flag,ACC_on_flag))
				Process_KEY_IR_system();
			if(!ValBit(System_flag1,ST_BY_flag) && ValBit(System_flag,ACC_on_flag))
				{
				#ifndef No_touch_system
				if(ValBit(System_flag,ACC_on_flag))
					Detect_touch_panel();
				if(ValBit(System_flag,ACC_on_flag))
					Process_touch_system();
				#endif
				if(ValBit(System_flag,ACC_on_flag))
					Display_process();
				if(ValBit(System_flag,ACC_on_flag))
					Detect_panel_finish_open_close_active();
				if(ValBit(System_flag,ACC_on_flag))
					Radio_tuner();
				if(ValBit(System_flag,ACC_on_flag))
					TV_autosearch();
				if(ValBit(System_flag,ACC_on_flag))
					Detect_NTSCPAL();
				if(ValBit(System_flag,ACC_on_flag))
					T100_detect_video_signal(0);
				if(ValBit(System_flag,ACC_on_flag))
           				ReadCdc1();                  /* Read Status of CD Changer */
				if(ValBit(System_flag,ACC_on_flag))
           				WriteCdc1();                 /* Send a Command to CD Changer */
           			if(ValBit(System_flag,ACC_on_flag))
           				Process_dvd_disc_in();
           			if(ValBit(System_flag,ACC_on_flag))
           				Detect_BACK_CAR();
           			if(ValBit(System_flag,ACC_on_flag))
           				Detect_telephone_mute();
           			if(ValBit(System_flag,ACC_on_flag))
           				Detect_BACK_CHCH();
           			if(ValBit(System_flag,ACC_on_flag))
           				Time_full_disable_OSD_process();
           			if(ValBit(System_flag,ACC_on_flag))
           				Disc_in_detect_close_panel_process();
           			if(ValBit(System_flag,ACC_on_flag))
           				Check_long_IR_key();
				}
			}
		}
}
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -