![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
host/Source/App/Parameters.h@23:12e6183f04d4, 2016-02-03 (annotated)
- Committer:
- Kovalev_D
- Date:
- Wed Feb 03 10:44:42 2016 +0300
- Revision:
- 23:12e6183f04d4
[thyz
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kovalev_D |
23:12e6183f04d4 | 1 | #ifndef UHOST |
Kovalev_D |
23:12e6183f04d4 | 2 | #define UHOST |
Kovalev_D |
23:12e6183f04d4 | 3 | /*e.**************************************************** |
Kovalev_D |
23:12e6183f04d4 | 4 | * Constants for the uHost card * |
Kovalev_D |
23:12e6183f04d4 | 5 | ********************************************************/ |
Kovalev_D |
23:12e6183f04d4 | 6 | /*r.**************************************************** |
Kovalev_D |
23:12e6183f04d4 | 7 | * Êîíñòàíòû äëÿ ïëàòû uHost * |
Kovalev_D |
23:12e6183f04d4 | 8 | ********************************************************/ |
Kovalev_D |
23:12e6183f04d4 | 9 | /*e. file for the C code */ |
Kovalev_D |
23:12e6183f04d4 | 10 | /*r. ôàéë äëÿ êîäà íà Ñ */ |
Kovalev_D |
23:12e6183f04d4 | 11 | |
Kovalev_D |
23:12e6183f04d4 | 12 | #define FIRMWARE_VER 0x00 //e. firmware version number //r. íîìåð âåðñèè ìèêðîïðîãðàììû |
Kovalev_D |
23:12e6183f04d4 | 13 | |
Kovalev_D |
23:12e6183f04d4 | 14 | //e. ====================== registers of the system controller of the DSP card ================ //r. ====================== ðåãèñòðû ñèñòåìíîãî êîíòðîëëåðà ïëàòû DSP ================ |
Kovalev_D |
23:12e6183f04d4 | 15 | #define Sys_RgE 0x07fb //e. the line1_err register of line errors //r. ðåãèñòð îøèáîê ëèíèè line1_err |
Kovalev_D |
23:12e6183f04d4 | 16 | #define Sys_RgR 0x07fc //e. the register of a mode of the system (only write) //r. ðåãèñòð ðåæèìà ñèñòåìû (òîëüêî çàïèñü) |
Kovalev_D |
23:12e6183f04d4 | 17 | #define Sys_RgS 0x07fc //e. the register of a status of the system (only read) //r. ðåãèñòð ñòàòóñà ñèñòåìû (òîëüêî ÷òåíèå) |
Kovalev_D |
23:12e6183f04d4 | 18 | #define Trm_data 0x07fd //e. the data stack of the transmitter //r. ñòåê äàííûõ ïåðåäàò÷èêà |
Kovalev_D |
23:12e6183f04d4 | 19 | #define Rcv_data 0x07fd //e. the data stack of the receiver //r. ñòåê äàííûõ ïðèåìíèêà |
Kovalev_D |
23:12e6183f04d4 | 20 | #define Rcv_cntr 0x07fe //e. the counter of the received bytes //r. ñ÷åò÷èê ïðèíÿòûõ áàéò ïðèåìíèêà |
Kovalev_D |
23:12e6183f04d4 | 21 | |
Kovalev_D |
23:12e6183f04d4 | 22 | //e. ====================== bits of the Sys_RgS status register ========================= //r. ====================== áèòû ðåãèñòðà ñîñòîÿíèÿ Sys_RgS ========================= |
Kovalev_D |
23:12e6183f04d4 | 23 | #define RCV_RDY_MASK 0x0040 //e. a mask of the readiness bit of the receiver //r. ìàñêà áèòà ãîòîâíîñòè ïðèåìíèêà |
Kovalev_D |
23:12e6183f04d4 | 24 | #define RCV_FERR_MASK 0x0020 //e. a mask of the "format error" bit //r. ìàñêà áèòà "îøèáêà ôîðìàòà" |
Kovalev_D |
23:12e6183f04d4 | 25 | #define RCV_TOUT_MASK 0x0010 //e. a mask of the "time-out" bit //r. ìàñêà áèòà "òàéì-àóò" |
Kovalev_D |
23:12e6183f04d4 | 26 | #define RCV_RFUL_MASK 0x0008 //e. a mask of the "stack is full" bit//r. ìàñêà áèòà "ñòåê ïîëîí" |
Kovalev_D |
23:12e6183f04d4 | 27 | #define RCV_FERR 0x0020 //e. a mask of the "format error" bit //r. ìàñêà áèòà "îøèáêà ôîðìàòà" |
Kovalev_D |
23:12e6183f04d4 | 28 | #define RCV_TOUT 0x0010 //e. a mask of the "time-out" bit //r. ìàñêà áèòà "òàéì-àóò" |
Kovalev_D |
23:12e6183f04d4 | 29 | #define RCV_RFUL 0x0008 //e. a mask of the "stack is full" bit//r. ìàñêà áèòà "ñòåê ïîëîí" |
Kovalev_D |
23:12e6183f04d4 | 30 | |
Kovalev_D |
23:12e6183f04d4 | 31 | #define INT_ERR_TC 0x00000008 |
Kovalev_D |
23:12e6183f04d4 | 32 | |
Kovalev_D |
23:12e6183f04d4 | 33 | #define FromFLASH 0x00003 |
Kovalev_D |
23:12e6183f04d4 | 34 | #define ByDefault 0x00001 |
Kovalev_D |
23:12e6183f04d4 | 35 | |
Kovalev_D |
23:12e6183f04d4 | 36 | |
Kovalev_D |
23:12e6183f04d4 | 37 | |
Kovalev_D |
23:12e6183f04d4 | 38 | |
Kovalev_D |
23:12e6183f04d4 | 39 | #define SetV1 LPC_GPIO1->FIOSET=(1<<25); |
Kovalev_D |
23:12e6183f04d4 | 40 | #define ClrV1 LPC_GPIO1->FIOCLR = (1<<25); |
Kovalev_D |
23:12e6183f04d4 | 41 | #define SetV2 LPC_GPIO1->FIOSET = (1<<28); |
Kovalev_D |
23:12e6183f04d4 | 42 | #define ClrV2 LPC_GPIO1->FIOCLR = (1<<28); |
Kovalev_D |
23:12e6183f04d4 | 43 | #define LoopOn LPC_GPIO1->FIOSET = (1<<30); |
Kovalev_D |
23:12e6183f04d4 | 44 | #define LoopOff LPC_GPIO1->FIOCLR = (1<<30); |
Kovalev_D |
23:12e6183f04d4 | 45 | #define StartV1 0 |
Kovalev_D |
23:12e6183f04d4 | 46 | #define StartV2 15 |
Kovalev_D |
23:12e6183f04d4 | 47 | #define TIME_INTERVAL (7812) |
Kovalev_D |
23:12e6183f04d4 | 48 | |
Kovalev_D |
23:12e6183f04d4 | 49 | |
Kovalev_D |
23:12e6183f04d4 | 50 | |
Kovalev_D |
23:12e6183f04d4 | 51 | extern uint32_t blt_in_test; |
Kovalev_D |
23:12e6183f04d4 | 52 | |
Kovalev_D |
23:12e6183f04d4 | 53 | void LoadFlashParam(unsigned ); |
Kovalev_D |
23:12e6183f04d4 | 54 | void FlashDMA_Init(void); |
Kovalev_D |
23:12e6183f04d4 | 55 | void init_DefaultParam(void); |
Kovalev_D |
23:12e6183f04d4 | 56 | #endif |
Kovalev_D |
23:12e6183f04d4 | 57 |