![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
main.c
- Committer:
- Kovalev_D
- Date:
- 2016-12-19
- Revision:
- 205:775d54fdf646
- Parent:
- 197:7a05523bf588
- Child:
- 208:19150d2b528f
File content as of revision 205:775d54fdf646:
//ssdfwewedfsfds /****************************************Copyright (c)**************************************************** **--------------File Info--------------------------------------------------------------------------------- ** File name: main.c ** Last modified Date: 2011-10-24 ** Last Version: V1.00 ** Descriptions: The main() function ** **-------------------------------------------------------------------------------------------------------- ** Created by: Electrooptica Incorp. ** Created date: 2011-08-22 ** Version: V1.00 ** Descriptions: **-------------------------------------------------------------------------------------------------------- *********************************************************************************************************/ #include "Global.h" #include "Device.h" /****************************************************************************** ** Main Function main() ******************************************************************************/ extern Device device; //Single global for all device hardware-independent algorithm unsigned int addres; uint32_t Result[5]; extern uint32_t CMD_Mode; unsigned int secPuls; float DACF, K_DAC; int tempAMP; int temp; unsigned int status; unsigned int Para; int main (void) { SystemInit1(); // Инициализация контроллера: установка тактовых частот SystemCoreClockUpdate1(); // расчет тактовой частоты процессора перед инициализацией UART - 103MHz Param_init(); GLD_Init(); //BackLightOFF //LightUpOFF UART_InitSet (0, 921600, 0x03); UART_InitSet (1, 921600, 0x03); /* UART_InitSet (0, 115200, 0x03); UART_InitSet (1, 115200, 0x03); */ Out_G_photo(Gyro.Gain_Sin, Gyro.Gain_Cos); while ( 1 ) { Event_100KHz(); Event_1KHz(); Event_500Hz(); // Event_250Hz(); Event_1Hz(); Event_Vibro(); G_Photo_Exchange(); Concol (); // Проврка 0 консоли (вход и выход) Concol1 (); // Проврка 1 консоли (вход и выход) Read_CMD(); if (OutBufConCount) OutBufConCount--; if (OutBufCon1Count) OutBufCon1Count--; TechLog();//технологическая выдача //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////выдача параметров через Rate//////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// M_RateA(); AllRegul(); ///////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////Работа с Flash////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// switch(Gyro.FlashMod) { case 1: GoBoot(); break; case 2: WriteFlash(); break; case 3: ReadFlash(); break; case 4: EraseFlash(); break; }//LoopOff } }//main /****************************************************************************** ** End Of File ******************************************************************************/