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 LG by
Diff: Parameters.h
- Revision:
- 0:8ad47e2b6f00
diff -r 000000000000 -r 8ad47e2b6f00 Parameters.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Parameters.h Sat Jan 30 13:00:39 2016 +0000 @@ -0,0 +1,58 @@ +#ifndef UHOST +#define UHOST +/*e.**************************************************** +* Constants for the uHost card * +********************************************************/ +/*r.**************************************************** +* ��������� ��� ����� uHost * +********************************************************/ +/*e. file for the C code */ +/*r. ���� ��� ���� �� � */ + +#define FIRMWARE_VER 0x00 //e. firmware version number //r. ����� ������ �������������� + + //e. ====================== registers of the system controller of the DSP card ================ //r. ====================== �������� ���������� ����������� ����� DSP ================ +#define Sys_RgE 0x07fb //e. the line1_err register of line errors //r. ������� ������ ����� line1_err +#define Sys_RgR 0x07fc //e. the register of a mode of the system (only write) //r. ������� ������ ������� (������ ������) +#define Sys_RgS 0x07fc //e. the register of a status of the system (only read) //r. ������� ������� ������� (������ ������) +#define Trm_data 0x07fd //e. the data stack of the transmitter //r. ���� ������ ����������� +#define Rcv_data 0x07fd //e. the data stack of the receiver //r. ���� ������ ��������� +#define Rcv_cntr 0x07fe //e. the counter of the received bytes //r. ������� �������� ���� ��������� + + //e. ====================== bits of the Sys_RgS status register ========================= //r. ====================== ���� �������� ��������� Sys_RgS ========================= +#define RCV_RDY_MASK 0x0040 //e. a mask of the readiness bit of the receiver //r. ����� ���� ���������� ��������� +#define RCV_FERR_MASK 0x0020 //e. a mask of the "format error" bit //r. ����� ���� "������ �������" +#define RCV_TOUT_MASK 0x0010 //e. a mask of the "time-out" bit //r. ����� ���� "����-���" +#define RCV_RFUL_MASK 0x0008 //e. a mask of the "stack is full" bit//r. ����� ���� "���� �����" +#define RCV_FERR 0x0020 //e. a mask of the "format error" bit //r. ����� ���� "������ �������" +#define RCV_TOUT 0x0010 //e. a mask of the "time-out" bit //r. ����� ���� "����-���" +#define RCV_RFUL 0x0008 //e. a mask of the "stack is full" bit//r. ����� ���� "���� �����" + +#define INT_ERR_TC 0x00000008 + +#define FromFLASH 0x00003 +#define ByDefault 0x00001 + + + +#define SetV1 LPC_GPIO1->FIOSET=(1<<25); +#define ClrV1 LPC_GPIO1->FIOCLR = (1<<25); + +#define SetV2 LPC_GPIO1->FIOSET = (1<<28); +#define ClrV2 LPC_GPIO1->FIOCLR = (1<<28); +#define LoopOn LPC_GPIO1->FIOSET = (1<<30); +#define LoopOff LPC_GPIO1->FIOCLR = (1<<30); +#define StartV1 0 +#define StartV2 15 +#define TIME_INTERVAL (7812) + + + +extern uint32_t blt_in_test; + +void LoadFlashParam(unsigned ); +void FlashDMA_Init(void); +void init_DefaultParam(void); +#endif + +