Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG2 by
Parameters.h
00001 #ifndef UHOST 00002 #define UHOST 00003 /*e.**************************************************** 00004 * Constants for the uHost card * 00005 ********************************************************/ 00006 /*r.**************************************************** 00007 * Константы для платы uHost * 00008 ********************************************************/ 00009 /*e. file for the C code */ 00010 /*r. файл для кода на С */ 00011 00012 #define FIRMWARE_VER 0x00 //e. firmware version number //r. номер версии микропрограммы 00013 00014 //e. ====================== registers of the system controller of the DSP card ================ //r. ====================== регистры системного контроллера платы DSP ================ 00015 #define Sys_RgE 0x07fb //e. the line1_err register of line errors //r. регистр ошибок линии line1_err 00016 #define Sys_RgR 0x07fc //e. the register of a mode of the system (only write) //r. регистр режима системы (только запись) 00017 #define Sys_RgS 0x07fc //e. the register of a status of the system (only read) //r. регистр статуса системы (только чтение) 00018 #define Trm_data 0x07fd //e. the data stack of the transmitter //r. стек данных передатчика 00019 #define Rcv_data 0x07fd //e. the data stack of the receiver //r. стек данных приемника 00020 #define Rcv_cntr 0x07fe //e. the counter of the received bytes //r. счетчик принятых байт приемника 00021 00022 //e. ====================== bits of the Sys_RgS status register ========================= //r. ====================== биты регистра состояния Sys_RgS ========================= 00023 #define RCV_RDY_MASK 0x0040 //e. a mask of the readiness bit of the receiver //r. маска бита готовности приемника 00024 #define RCV_FERR_MASK 0x0020 //e. a mask of the "format error" bit //r. маска бита "ошибка формата" 00025 #define RCV_TOUT_MASK 0x0010 //e. a mask of the "time-out" bit //r. маска бита "тайм-аут" 00026 #define RCV_RFUL_MASK 0x0008 //e. a mask of the "stack is full" bit//r. маска бита "стек полон" 00027 #define RCV_FERR 0x0020 //e. a mask of the "format error" bit //r. маска бита "ошибка формата" 00028 #define RCV_TOUT 0x0010 //e. a mask of the "time-out" bit //r. маска бита "тайм-аут" 00029 #define RCV_RFUL 0x0008 //e. a mask of the "stack is full" bit//r. маска бита "стек полон" 00030 00031 #define INT_ERR_TC 0x00000008 00032 00033 #define FromFLASH 0x00003 00034 #define ByDefault 0x00001 00035 00036 00037 00038 /* 00039 #define SetV1 LPC_GPIO1->FIOSET=(1<<25); 00040 #define ClrV1 LPC_GPIO1->FIOCLR = (1<<25); 00041 #define SetV2 LPC_GPIO1->FIOSET = (1<<28); 00042 #define ClrV2 LPC_GPIO1->FIOCLR = (1<<28); 00043 */ 00044 //#define LoopOn LPC_GPIO1->FIOSET = (1<<30); 00045 //#define LoopOff LPC_GPIO1->FIOCLR = (1<<30); 00046 #define StartV1 0 00047 #define StartV2 15 00048 #define TIME_INTERVAL (7812) 00049 00050 00051 00052 extern uint32_t blt_in_test; 00053 00054 void LoadFlashParam(unsigned ); 00055 void FlashDMA_Init(void); 00056 void init_DefaultParam(void); 00057 #endif 00058
Generated on Thu Jul 14 2022 02:34:42 by
 1.7.2
 1.7.2 
    