Dmitry Kovalev
/
LGstaandart
forkd
Fork of LG2 by
main.c
- Committer:
- Kovalev_D
- Date:
- 2016-09-23
- Revision:
- 196:f76dbc081e63
- Parent:
- 195:bcc769f5292b
- Child:
- 197:7a05523bf588
File content as of revision 196:f76dbc081e63:
//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 GLD_Init(); BackLightOFF LightUpOFF UART_InitSet (0, 921600, 0x03); UART_InitSet (1, 921600, 0x03); while ( 1 ) { //основной цикл. G_Photo_Exchange(); Concol (); // Проврка 0 консоли (вход и выход) Concol1 (); // Проврка 0 консоли (вход и выход) Read_CMD(); if (OutBufConCount) OutBufConCount--; if (OutBufCon1Count) OutBufCon1Count--; TechLog();//технологическая выдача Event_100KHz(); Event_1KHz(); Event_500Hz(); Event_1Hz(); Event_Vibro(); /* if(Gyro.QEIznak1) { // событие перехода востановленного синуса от - к + }*/ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////выдача параметров через Rate//////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// M_RateA(); AllRegul(); ///////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////Работа с Flash////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// switch(Gyro.FlashMod) { case 1: GoBoot(); break; case 2: WriteFlash(); break; case 3: ReadFlash(); break; } } }//main /****************************************************************************** ** End Of File ******************************************************************************/