fork

Dependencies:   mbed

Fork of LG by igor Apu

Committer:
Kovalev_D
Date:
Mon Sep 04 12:55:13 2017 +0000
Revision:
217:15cd8752bb6c
Parent:
208:19150d2b528f
dd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
igor_v 0:8ad47e2b6f00 1 #ifndef UHOST
igor_v 0:8ad47e2b6f00 2 #define UHOST
igor_v 0:8ad47e2b6f00 3 /*e.****************************************************
igor_v 0:8ad47e2b6f00 4 * Constants for the uHost card *
igor_v 0:8ad47e2b6f00 5 ********************************************************/
igor_v 0:8ad47e2b6f00 6 /*r.****************************************************
igor_v 21:bc8c1cec3da6 7 * Константы для платы uHost *
igor_v 0:8ad47e2b6f00 8 ********************************************************/
igor_v 0:8ad47e2b6f00 9 /*e. file for the C code */
igor_v 21:bc8c1cec3da6 10 /*r. файл для кода на С */
igor_v 0:8ad47e2b6f00 11
igor_v 21:bc8c1cec3da6 12 #define FIRMWARE_VER 0x00 //e. firmware version number //r. номер версии микропрограммы
igor_v 0:8ad47e2b6f00 13
igor_v 21:bc8c1cec3da6 14 //e. ====================== registers of the system controller of the DSP card ================ //r. ====================== регистры системного контроллера платы DSP ================
igor_v 21:bc8c1cec3da6 15 #define Sys_RgE 0x07fb //e. the line1_err register of line errors //r. регистр ошибок линии line1_err
igor_v 21:bc8c1cec3da6 16 #define Sys_RgR 0x07fc //e. the register of a mode of the system (only write) //r. регистр режима системы (только запись)
igor_v 21:bc8c1cec3da6 17 #define Sys_RgS 0x07fc //e. the register of a status of the system (only read) //r. регистр статуса системы (только чтение)
igor_v 21:bc8c1cec3da6 18 #define Trm_data 0x07fd //e. the data stack of the transmitter //r. стек данных передатчика
igor_v 21:bc8c1cec3da6 19 #define Rcv_data 0x07fd //e. the data stack of the receiver //r. стек данных приемника
igor_v 21:bc8c1cec3da6 20 #define Rcv_cntr 0x07fe //e. the counter of the received bytes //r. счетчик принятых байт приемника
igor_v 0:8ad47e2b6f00 21
igor_v 21:bc8c1cec3da6 22 //e. ====================== bits of the Sys_RgS status register ========================= //r. ====================== биты регистра состояния Sys_RgS =========================
igor_v 21:bc8c1cec3da6 23 #define RCV_RDY_MASK 0x0040 //e. a mask of the readiness bit of the receiver //r. маска бита готовности приемника
igor_v 21:bc8c1cec3da6 24 #define RCV_FERR_MASK 0x0020 //e. a mask of the "format error" bit //r. маска бита "ошибка формата"
igor_v 21:bc8c1cec3da6 25 #define RCV_TOUT_MASK 0x0010 //e. a mask of the "time-out" bit //r. маска бита "тайм-аут"
igor_v 21:bc8c1cec3da6 26 #define RCV_RFUL_MASK 0x0008 //e. a mask of the "stack is full" bit//r. маска бита "стек полон"
igor_v 21:bc8c1cec3da6 27 #define RCV_FERR 0x0020 //e. a mask of the "format error" bit //r. маска бита "ошибка формата"
igor_v 21:bc8c1cec3da6 28 #define RCV_TOUT 0x0010 //e. a mask of the "time-out" bit //r. маска бита "тайм-аут"
igor_v 21:bc8c1cec3da6 29 #define RCV_RFUL 0x0008 //e. a mask of the "stack is full" bit//r. маска бита "стек полон"
igor_v 0:8ad47e2b6f00 30
igor_v 0:8ad47e2b6f00 31 #define INT_ERR_TC 0x00000008
igor_v 0:8ad47e2b6f00 32
igor_v 0:8ad47e2b6f00 33 #define FromFLASH 0x00003
igor_v 0:8ad47e2b6f00 34 #define ByDefault 0x00001
igor_v 0:8ad47e2b6f00 35
igor_v 0:8ad47e2b6f00 36
igor_v 0:8ad47e2b6f00 37
Kovalev_D 28:1c9acd3b224d 38 /*
igor_v 0:8ad47e2b6f00 39 #define SetV1 LPC_GPIO1->FIOSET=(1<<25);
igor_v 0:8ad47e2b6f00 40 #define ClrV1 LPC_GPIO1->FIOCLR = (1<<25);
igor_v 0:8ad47e2b6f00 41 #define SetV2 LPC_GPIO1->FIOSET = (1<<28);
igor_v 0:8ad47e2b6f00 42 #define ClrV2 LPC_GPIO1->FIOCLR = (1<<28);
Kovalev_D 28:1c9acd3b224d 43 */
Kovalev_D 208:19150d2b528f 44 //#define LoopOn LPC_GPIO1->FIOSET = (1<<30);
Kovalev_D 208:19150d2b528f 45 //#define LoopOff LPC_GPIO1->FIOCLR = (1<<30);
igor_v 0:8ad47e2b6f00 46 #define StartV1 0
igor_v 0:8ad47e2b6f00 47 #define StartV2 15
igor_v 0:8ad47e2b6f00 48 #define TIME_INTERVAL (7812)
igor_v 0:8ad47e2b6f00 49
igor_v 0:8ad47e2b6f00 50
igor_v 0:8ad47e2b6f00 51
igor_v 0:8ad47e2b6f00 52 extern uint32_t blt_in_test;
igor_v 0:8ad47e2b6f00 53
igor_v 0:8ad47e2b6f00 54 void LoadFlashParam(unsigned );
igor_v 0:8ad47e2b6f00 55 void FlashDMA_Init(void);
igor_v 0:8ad47e2b6f00 56 void init_DefaultParam(void);
igor_v 0:8ad47e2b6f00 57 #endif
igor_v 0:8ad47e2b6f00 58