// ***************** main.c ****************************************** // // Пример реализует мигание светодиодами. // Нужно установить переменную salute_type: // для модуля Салют-ЭЛ24Д1 SALUTE_TYPE=0; // для модуля Салют-ЭЛ24OM SALUTE_TYPE=1; // // ******************************************************************* #include "mcom_runtime/mcom02.h" #include "mcom_runtime/utimers.h" #include "mcom_runtime/erlcommon.h" #include "mcom_runtime/gpio.h" unsigned int Flag_Corr = 0; unsigned int Flag_Timeout = 0; // установка длительности паузы в тактах частоты CPU #define TIMEOUT 10000000 int Salute_type=1; //=0 if salute-d1; =1 if salute-om int main() { Flag_Corr = 0; GATE_SYS_CTR = 0xffffffff; if (Salute_type==0){ gpio_pin_config('c', 20, 1, 1, 0); while (1) { // бесконечный цикл gpio_pin_invert('c', 20); start_utimer(0); while (utimer_tics_get(0)