Egor Syomin
/
LG
test fork
Fork of LG by
CntrlGLD.c@13:94b33884508e, 2016-02-02 (annotated)
- Committer:
- DarkPatrick
- Date:
- Tue Feb 02 10:30:13 2016 +0400
- Revision:
- 13:94b33884508e
- Parent:
- 10:30702450ad00
???????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 1:f2adcae3d304 | 1 | #include "Global.h" |
igor_v | 0:8ad47e2b6f00 | 2 | |
igor_v | 0:8ad47e2b6f00 | 3 | #define COMMAND_DEBUG |
igor_v | 0:8ad47e2b6f00 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | uint32_t SRgR; //r. ��������� ������� ������ ����� ADSP |
DarkPatrick | 13:94b33884508e | 6 | //my simple comment |
igor_v | 0:8ad47e2b6f00 | 7 | |
igor_v | 0:8ad47e2b6f00 | 8 | uint32_t RgConA; //r. �������� ������� ���������� ���������� |
igor_v | 10:30702450ad00 | 9 | uint32_t RgConB; //r. �������������� ������� ���������� |
igor_v | 0:8ad47e2b6f00 | 10 | //uint32_t Copy_e5_RgR; //r. ����� �������� ������ ����� E5 |
igor_v | 0:8ad47e2b6f00 | 11 | //uint32_t Copy_e5_RgRA; //r. ����� ��������������� �������� ������ E5 |
igor_v | 0:8ad47e2b6f00 | 12 | |
igor_v | 0:8ad47e2b6f00 | 13 | uint32_t Valid_Data; //r. ����-������� ����������� ������, ������������� ������ �� ������� �� ������� |
igor_v | 0:8ad47e2b6f00 | 14 | |
igor_v | 0:8ad47e2b6f00 | 15 | TDEVICE_BLK Device_blk; //e. union for device constants |
igor_v | 0:8ad47e2b6f00 | 16 | uint32_t ser_num; //e. device serial number |
igor_v | 0:8ad47e2b6f00 | 17 | |
igor_v | 0:8ad47e2b6f00 | 18 | int Device_Mode = DM_INT_10KHZ_LATCH; //r. ����� ������ ������� (�����.�������, �������� ������ ��� ������� �������) |
igor_v | 0:8ad47e2b6f00 | 19 | |
igor_v | 0:8ad47e2b6f00 | 20 | void Sts_Pulse(void); |
igor_v | 0:8ad47e2b6f00 | 21 | void Sts_Pause(void); |
igor_v | 0:8ad47e2b6f00 | 22 | void Sts_Polling(void); |
igor_v | 0:8ad47e2b6f00 | 23 | |
igor_v | 0:8ad47e2b6f00 | 24 | //r. ������� ��������� ��������� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 25 | void (* Tab_Gld_Start[3])(void) = {Sts_Pulse, Sts_Pause, Sts_Polling}; |
igor_v | 0:8ad47e2b6f00 | 26 | //r. ������� ��������� ��������� ������� ������ |
igor_v | 0:8ad47e2b6f00 | 27 | void (* Tab_Gld_Pulse[1])(void) = {Sts_Pulse}; |
igor_v | 0:8ad47e2b6f00 | 28 | |
igor_v | 0:8ad47e2b6f00 | 29 | //e. stack of states of the procedure of starting //r. ���� ���������� ��������� ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 30 | uint32_t Stk_Gld_Start[3] = {LIGHT_UP_PULSE_WDTH, LIGHT_UP_PAUSE, LIGHT_UP_POLLING}; |
igor_v | 0:8ad47e2b6f00 | 31 | |
igor_v | 0:8ad47e2b6f00 | 32 | uint32_t gyro_Sts = 0; //r. ������� ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 33 | uint32_t start_Rq = 1; //r. ������ �� ������ ������� |
igor_v | 0:8ad47e2b6f00 | 34 | uint32_t start_Go = 0; //r. ��������� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 35 | uint32_t stop_Rq = 0; //r. ������ �� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 36 | uint32_t pulse_Rq = 0; //r. ������ �� ������ ������ |
igor_v | 0:8ad47e2b6f00 | 37 | uint32_t pulse_Go = 0; //r. ������� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 38 | |
igor_v | 0:8ad47e2b6f00 | 39 | uint32_t state_index; //r. ������ ��������� ��������� (������) |
igor_v | 0:8ad47e2b6f00 | 40 | uint32_t sts_work; //r. 1 - ������� ��������� - � ������� ����, 0 - ������������� |
igor_v | 0:8ad47e2b6f00 | 41 | uint32_t sts_time; //r. ������� ������� �������� ��������� |
igor_v | 0:8ad47e2b6f00 | 42 | uint32_t attempt_Str; //r. ������� ������� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 43 | |
igor_v | 0:8ad47e2b6f00 | 44 | |
igor_v | 0:8ad47e2b6f00 | 45 | uint32_t BIT_number; |
igor_v | 0:8ad47e2b6f00 | 46 | uint32_t Is_BIT = 0; |
igor_v | 0:8ad47e2b6f00 | 47 | |
igor_v | 0:8ad47e2b6f00 | 48 | void GLD_Stop(void) //e.---------- procedure of GLD stopping -------------------------------------- //r.---------- ��������� �������� ��� -------------------------------------- |
igor_v | 0:8ad47e2b6f00 | 49 | { |
igor_v | 0:8ad47e2b6f00 | 50 | if (!stop_Rq) //r. ��������� ������ �� ���������� ������� |
igor_v | 0:8ad47e2b6f00 | 51 | { |
igor_v | 0:8ad47e2b6f00 | 52 | return; //r. ���� ���, ������� |
igor_v | 0:8ad47e2b6f00 | 53 | } |
igor_v | 0:8ad47e2b6f00 | 54 | |
igor_v | 0:8ad47e2b6f00 | 55 | //r. �������� ����� |
igor_v | 0:8ad47e2b6f00 | 56 | start_Rq = 0; //r. ������� ���������, |
igor_v | 0:8ad47e2b6f00 | 57 | start_Go = 0; //r. ���������� �������� ������� �������, |
igor_v | 0:8ad47e2b6f00 | 58 | stop_Rq = 0; //r. ������� �������� |
igor_v | 0:8ad47e2b6f00 | 59 | open_all_loops(); //r. ��������� ��� ������� ������������� |
igor_v | 0:8ad47e2b6f00 | 60 | |
igor_v | 0:8ad47e2b6f00 | 61 | gyro_Sts = 0; //r. ����� �������� ��������� ���������� ��� |
igor_v | 0:8ad47e2b6f00 | 62 | |
igor_v | 0:8ad47e2b6f00 | 63 | //r. ��������� �������� ����� �������� ���������� ����������� |
igor_v | 0:8ad47e2b6f00 | 64 | #if !defined COMMAND_DEBUG |
igor_v | 0:8ad47e2b6f00 | 65 | disable_DACs(); |
igor_v | 0:8ad47e2b6f00 | 66 | #endif |
igor_v | 0:8ad47e2b6f00 | 67 | } // GLD_Stop |
igor_v | 0:8ad47e2b6f00 | 68 | |
igor_v | 1:f2adcae3d304 | 69 | |
igor_v | 0:8ad47e2b6f00 | 70 | void GLD_Status(void) //r.---------- ���������� �������� ���������� ��� -------------------------- |
igor_v | 0:8ad47e2b6f00 | 71 | { |
igor_v | 0:8ad47e2b6f00 | 72 | static uint32_t Device_Mode_Old = DM_INT_10KHZ_LATCH/*DM_EXT_LATCH_DELTA_SF_PULSE*/; |
igor_v | 0:8ad47e2b6f00 | 73 | if ( loop_is_closed(GLD_ON) == 0 ) |
igor_v | 0:8ad47e2b6f00 | 74 | { |
igor_v | 0:8ad47e2b6f00 | 75 | open_all_loops(); |
igor_v | 0:8ad47e2b6f00 | 76 | GLD_Stop(); |
igor_v | 0:8ad47e2b6f00 | 77 | } |
igor_v | 0:8ad47e2b6f00 | 78 | if (Device_Mode_Old != Device_Mode) //devi�e mode has been changed |
igor_v | 0:8ad47e2b6f00 | 79 | { |
igor_v | 0:8ad47e2b6f00 | 80 | if (SwitchMode()) //e. mode is changed successful |
igor_v | 0:8ad47e2b6f00 | 81 | { |
igor_v | 0:8ad47e2b6f00 | 82 | Device_Mode_Old = Device_Mode; //e. save current mode name |
igor_v | 0:8ad47e2b6f00 | 83 | if (Device_Mode_Old == DM_INT_10KHZ_LATCH) |
igor_v | 0:8ad47e2b6f00 | 84 | trm_ena = 1; //e. enable answer |
igor_v | 0:8ad47e2b6f00 | 85 | } |
igor_v | 0:8ad47e2b6f00 | 86 | } |
igor_v | 0:8ad47e2b6f00 | 87 | } // GLD_Status |
igor_v | 0:8ad47e2b6f00 | 88 | |
igor_v | 1:f2adcae3d304 | 89 | |
igor_v | 0:8ad47e2b6f00 | 90 | void Sts_Pause(void) //r.------- ��������� ��������� ����� -------------------------------------- |
igor_v | 0:8ad47e2b6f00 | 91 | { |
igor_v | 0:8ad47e2b6f00 | 92 | if (sts_work) //r. ��������� � �������� ����? |
igor_v | 0:8ad47e2b6f00 | 93 | { |
igor_v | 0:8ad47e2b6f00 | 94 | sts_time--; //r. ��������� �������� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 95 | if (sts_time > 0) |
igor_v | 0:8ad47e2b6f00 | 96 | { |
igor_v | 0:8ad47e2b6f00 | 97 | return; //r. ���������� ������, ���� ������� ����������� |
igor_v | 0:8ad47e2b6f00 | 98 | } |
igor_v | 0:8ad47e2b6f00 | 99 | //r. ����� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 100 | sts_work = 0; //r. �������� ���� ���������� |
igor_v | 0:8ad47e2b6f00 | 101 | state_index++; //r. ����������� ��������� �� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 102 | } |
igor_v | 0:8ad47e2b6f00 | 103 | else |
igor_v | 0:8ad47e2b6f00 | 104 | { |
igor_v | 0:8ad47e2b6f00 | 105 | sts_time = Stk_Gld_Start[state_index]; //r. ����� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 106 | sts_work = 1; //r. ���������� ���� �������� ���� |
igor_v | 0:8ad47e2b6f00 | 107 | } |
igor_v | 0:8ad47e2b6f00 | 108 | } // Sts_Pause |
igor_v | 0:8ad47e2b6f00 | 109 | |
igor_v | 0:8ad47e2b6f00 | 110 | void Sts_Pulse() //r. ------- ��������� ��������� �������� ������� -------------------------- |
igor_v | 0:8ad47e2b6f00 | 111 | { |
igor_v | 0:8ad47e2b6f00 | 112 | if (sts_work) //r. ��������� � �������� ����? |
igor_v | 0:8ad47e2b6f00 | 113 | { |
igor_v | 0:8ad47e2b6f00 | 114 | sts_time--; //r. ��������� �������� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 115 | if (sts_time > 0) |
igor_v | 0:8ad47e2b6f00 | 116 | { |
igor_v | 0:8ad47e2b6f00 | 117 | return; //r. ���������� ������, ���� ������� ����������� |
igor_v | 0:8ad47e2b6f00 | 118 | } |
igor_v | 0:8ad47e2b6f00 | 119 | //r. ����� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 120 | sts_work = 0; //r. �������� ���� ���������� |
igor_v | 0:8ad47e2b6f00 | 121 | state_index++; //r. ����������� ��������� �� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 122 | |
igor_v | 0:8ad47e2b6f00 | 123 | Set_LightUp; //r. ����� ������ ������� ������ |
igor_v | 0:8ad47e2b6f00 | 124 | |
igor_v | 0:8ad47e2b6f00 | 125 | } |
igor_v | 0:8ad47e2b6f00 | 126 | else |
igor_v | 0:8ad47e2b6f00 | 127 | { |
igor_v | 0:8ad47e2b6f00 | 128 | sts_time = Stk_Gld_Start[state_index]; //r. ����� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 129 | sts_work = 1; //r. ���������� ���� �������� ���� |
igor_v | 0:8ad47e2b6f00 | 130 | |
igor_v | 0:8ad47e2b6f00 | 131 | Reset_LightUp; //r. ������������ ������ ������� ������ |
igor_v | 0:8ad47e2b6f00 | 132 | |
igor_v | 0:8ad47e2b6f00 | 133 | } |
igor_v | 0:8ad47e2b6f00 | 134 | } // Sts_Pulse |
igor_v | 0:8ad47e2b6f00 | 135 | |
igor_v | 0:8ad47e2b6f00 | 136 | void Sts_Polling(void) //r.========== ��������� ��������� ��������� � �������� ������� � ������� |
igor_v | 0:8ad47e2b6f00 | 137 | { |
igor_v | 0:8ad47e2b6f00 | 138 | static int32_t Sum_F_ras = 0; //r. ������������ ����� ����������� ��� ��������� ������ |
igor_v | 0:8ad47e2b6f00 | 139 | |
igor_v | 0:8ad47e2b6f00 | 140 | if (sts_work) //r. ��������� � �������� ����? |
igor_v | 0:8ad47e2b6f00 | 141 | { |
igor_v | 0:8ad47e2b6f00 | 142 | if (Dif_Curr_Vib >0) |
igor_v | 0:8ad47e2b6f00 | 143 | Sum_F_ras = L_add(Sum_F_ras, Dif_Curr_Vib); |
igor_v | 0:8ad47e2b6f00 | 144 | else |
igor_v | 0:8ad47e2b6f00 | 145 | Sum_F_ras = L_sub(Sum_F_ras, Dif_Curr_Vib); |
igor_v | 0:8ad47e2b6f00 | 146 | |
igor_v | 0:8ad47e2b6f00 | 147 | //r. ���, ���������� ���������� ����� ����������� |
igor_v | 0:8ad47e2b6f00 | 148 | sts_time--; //r. ��������� �������� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 149 | if (sts_time > 0) |
igor_v | 0:8ad47e2b6f00 | 150 | { |
igor_v | 0:8ad47e2b6f00 | 151 | return; //r. ���������� ������, ���� ������� ����������� |
igor_v | 0:8ad47e2b6f00 | 152 | } |
igor_v | 0:8ad47e2b6f00 | 153 | //r. ����� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 154 | sts_work = 0; //r. �������� ���� ���������� |
igor_v | 0:8ad47e2b6f00 | 155 | state_index++; //r. ����������� ��������� �� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 156 | //r. ��������� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 157 | if ( Sum_F_ras >= F_RAS_MIN) //e. //r. F_RAS_MIN = 10000 ??? ��� ��� �� �������??? |
igor_v | 0:8ad47e2b6f00 | 158 | { |
igor_v | 0:8ad47e2b6f00 | 159 | gyro_Sts |= LASER_ON; //r. ����� ����� ���������, �������� � �������� ��������� |
igor_v | 0:8ad47e2b6f00 | 160 | return; //r. ������� � ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 161 | } |
igor_v | 0:8ad47e2b6f00 | 162 | //r. ���� ��� ������, ��������� ��� |
igor_v | 0:8ad47e2b6f00 | 163 | attempt_Str--; //r. ��������� �������� ������� ������� ������ |
igor_v | 0:8ad47e2b6f00 | 164 | if (attempt_Str <= 0) |
igor_v | 0:8ad47e2b6f00 | 165 | { |
igor_v | 0:8ad47e2b6f00 | 166 | return; //r. ���� ������� ���������, ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 167 | } |
igor_v | 0:8ad47e2b6f00 | 168 | //r. ����� ���������� ��������� ��������� �� |
igor_v | 0:8ad47e2b6f00 | 169 | state_index = 0; //r. ������ �������� ������� ��� ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 170 | } |
igor_v | 0:8ad47e2b6f00 | 171 | else |
igor_v | 0:8ad47e2b6f00 | 172 | { |
igor_v | 0:8ad47e2b6f00 | 173 | sts_time = Stk_Gld_Start[state_index]; //r. ����� ������� ��������� |
igor_v | 0:8ad47e2b6f00 | 174 | sts_work = 1; //r. ���������� ���� �������� ���� |
igor_v | 0:8ad47e2b6f00 | 175 | Sum_F_ras = 0; //r. ��������� ������������ ����� ����������� |
igor_v | 0:8ad47e2b6f00 | 176 | } |
igor_v | 0:8ad47e2b6f00 | 177 | |
igor_v | 0:8ad47e2b6f00 | 178 | } // Sts_Polling |
igor_v | 0:8ad47e2b6f00 | 179 | |
igor_v | 0:8ad47e2b6f00 | 180 | |
igor_v | 0:8ad47e2b6f00 | 181 | //r.---------- ������� ������� ������� ------------------------------------- |
igor_v | 0:8ad47e2b6f00 | 182 | void GLD_Start(void) |
igor_v | 0:8ad47e2b6f00 | 183 | { |
igor_v | 0:8ad47e2b6f00 | 184 | if (!start_Rq) //r. ��������� ��������� ������� �� ������ ������� |
igor_v | 0:8ad47e2b6f00 | 185 | { |
igor_v | 0:8ad47e2b6f00 | 186 | return; //r. ������� ���, ������� |
igor_v | 0:8ad47e2b6f00 | 187 | } |
igor_v | 0:8ad47e2b6f00 | 188 | |
igor_v | 0:8ad47e2b6f00 | 189 | if (!start_Go) //r. ������� ������� ��� �� ��� �������? |
igor_v | 0:8ad47e2b6f00 | 190 | { |
igor_v | 0:8ad47e2b6f00 | 191 | //r. ��� ������ ������� |
igor_v | 0:8ad47e2b6f00 | 192 | attempt_Str = N_START_MAX; //r. ���������� ������������ ����� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 193 | //r. ���������� ������� ����������� |
igor_v | 0:8ad47e2b6f00 | 194 | //open_loop(VB_FREQ_ON | VB_TAU_ON | WP_REG_ON | HF_REG_ON); // 0xff95 |
igor_v | 0:8ad47e2b6f00 | 195 | //close_all_loops(); |
igor_v | 0:8ad47e2b6f00 | 196 | |
igor_v | 0:8ad47e2b6f00 | 197 | sts_work = 0; //r. �������� ���� �������� ���� ��������� |
igor_v | 0:8ad47e2b6f00 | 198 | state_index= 0; //r. ���������� ��������� ��������� � ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 199 | start_Go = 1; //r. ������� ������ ������� |
igor_v | 0:8ad47e2b6f00 | 200 | } |
igor_v | 0:8ad47e2b6f00 | 201 | |
igor_v | 0:8ad47e2b6f00 | 202 | ( *Tab_Gld_Start[state_index] )(); //r. ����� ��������� ��������� �� ������ � ������� |
igor_v | 0:8ad47e2b6f00 | 203 | |
igor_v | 0:8ad47e2b6f00 | 204 | if (sts_work) //r. ������� ��������� ��������? |
igor_v | 0:8ad47e2b6f00 | 205 | { |
igor_v | 0:8ad47e2b6f00 | 206 | return; //r. ���������� �������� |
igor_v | 0:8ad47e2b6f00 | 207 | } |
igor_v | 0:8ad47e2b6f00 | 208 | //r. ��������� ����������� ��������� ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 209 | if ( state_index >= 3 ) |
igor_v | 0:8ad47e2b6f00 | 210 | { |
igor_v | 0:8ad47e2b6f00 | 211 | //r. ��������� �������� |
igor_v | 0:8ad47e2b6f00 | 212 | //r. �������� ����� |
igor_v | 0:8ad47e2b6f00 | 213 | start_Rq = 0; //r. ������� |
igor_v | 0:8ad47e2b6f00 | 214 | start_Go = 0; //r. � ���������� �������� |
igor_v | 0:8ad47e2b6f00 | 215 | #if !defined COMMAND_DEBUG |
igor_v | 0:8ad47e2b6f00 | 216 | Out_G_photo(Device_blk.Str.Gain_Ph_A, Device_blk.Str.Gain_Ph_B); //r. �������� ���������������� ����-�� �������� �������������� |
igor_v | 0:8ad47e2b6f00 | 217 | #endif |
igor_v | 0:8ad47e2b6f00 | 218 | // close_all_loops(); |
igor_v | 0:8ad47e2b6f00 | 219 | |
igor_v | 0:8ad47e2b6f00 | 220 | } |
igor_v | 0:8ad47e2b6f00 | 221 | |
igor_v | 0:8ad47e2b6f00 | 222 | } // GLD_Start |
igor_v | 0:8ad47e2b6f00 | 223 | |
igor_v | 0:8ad47e2b6f00 | 224 | void GLD_Pulse(void) //r.---------- ������� ������� ������ -------------------------------------- |
igor_v | 0:8ad47e2b6f00 | 225 | { |
igor_v | 0:8ad47e2b6f00 | 226 | if (!pulse_Rq) //r. ��������� ��������� ������� �� ������ ������ |
igor_v | 0:8ad47e2b6f00 | 227 | { |
igor_v | 0:8ad47e2b6f00 | 228 | return; //r. ������� ���, ������� |
igor_v | 0:8ad47e2b6f00 | 229 | } |
igor_v | 0:8ad47e2b6f00 | 230 | |
igor_v | 0:8ad47e2b6f00 | 231 | if (!pulse_Go) //r. ������� ������� ��� �� ��� �������? |
igor_v | 0:8ad47e2b6f00 | 232 | { |
igor_v | 0:8ad47e2b6f00 | 233 | sts_work = 0; //r. �������� ���� �������� ���� ��������� |
igor_v | 0:8ad47e2b6f00 | 234 | state_index = 0; //r. ���������� ��������� ��������� � ��������� ��������� |
igor_v | 0:8ad47e2b6f00 | 235 | pulse_Go = 1; //r. ������� ������ ������� |
igor_v | 0:8ad47e2b6f00 | 236 | } |
igor_v | 0:8ad47e2b6f00 | 237 | |
igor_v | 0:8ad47e2b6f00 | 238 | ( *Tab_Gld_Pulse[state_index] )(); //r. ����� ��������� ��������� �� ������ � ������� |
igor_v | 0:8ad47e2b6f00 | 239 | |
igor_v | 0:8ad47e2b6f00 | 240 | if (sts_work) //r. ������� ��������� ��������? |
igor_v | 0:8ad47e2b6f00 | 241 | { |
igor_v | 0:8ad47e2b6f00 | 242 | return; //r. ���������� �������� |
igor_v | 0:8ad47e2b6f00 | 243 | } |
igor_v | 0:8ad47e2b6f00 | 244 | |
igor_v | 0:8ad47e2b6f00 | 245 | if ( state_index >= 1 ) |
igor_v | 0:8ad47e2b6f00 | 246 | { |
igor_v | 0:8ad47e2b6f00 | 247 | //r. �������� ����� |
igor_v | 0:8ad47e2b6f00 | 248 | pulse_Rq = 0; //r. ������� |
igor_v | 0:8ad47e2b6f00 | 249 | pulse_Go = 0; //r. � ���������� �������� |
igor_v | 0:8ad47e2b6f00 | 250 | } |
igor_v | 0:8ad47e2b6f00 | 251 | |
igor_v | 0:8ad47e2b6f00 | 252 | } // GLD_Pulse |
igor_v | 0:8ad47e2b6f00 | 253 | |
igor_v | 0:8ad47e2b6f00 | 254 | void contrl_GLD(void) //r.========== ��������� ���������� �������� =============================== |
igor_v | 0:8ad47e2b6f00 | 255 | { |
igor_v | 0:8ad47e2b6f00 | 256 | GLD_Start(); //r. ��������� ������, ���� ���� ������ |
igor_v | 0:8ad47e2b6f00 | 257 | GLD_Status(); //r. �������� ��������� ������� |
igor_v | 0:8ad47e2b6f00 | 258 | GLD_Stop(); //r. ���������� ������, ���� ���������� |
igor_v | 0:8ad47e2b6f00 | 259 | GLD_Pulse(); //r. ��������� �������� ������� ��� ������� ������� |
igor_v | 0:8ad47e2b6f00 | 260 | GLD_Output(); //r. ������ ������ ������ �� ��������� |
igor_v | 0:8ad47e2b6f00 | 261 | } // contrl_GLD |
igor_v | 0:8ad47e2b6f00 | 262 | |
igor_v | 0:8ad47e2b6f00 | 263 |