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
Diff: el_lin.h
- Revision:
- 21:bc8c1cec3da6
- Parent:
- 0:8ad47e2b6f00
- Child:
- 91:a2bb81eaa183
diff -r 18e3fd7b92d0 -r bc8c1cec3da6 el_lin.h --- a/el_lin.h Tue Feb 02 17:14:25 2016 +0000 +++ b/el_lin.h Wed Feb 03 07:19:30 2016 +0000 @@ -1,40 +1,39 @@ - /**--------------File Info--------------------------------------------------------------------------------- ** File name: el_lin.h ** Last modified Date: 2011-08-22 ** Last Version: V1.00 -** Descriptions: +** Descriptions: ** **-------------------------------------------------------------------------------------------------------- ** Created by: Electrooptika incor. ** Created date: 2011-08-22 ** Version: V1.00 ** -**-------------------------------------------------------------------------------------------------------- +**-------------------------------------------------------------------------------------------------------- *********************************************************************************************************/ -#ifndef __DMA_H +#ifndef __DMA_H #define __DMA_H -#define STRT_ERR 0x0080 //e. error of the start bit //r. îøèáêà ñòàðò-áèòà -#define STOP_ERR 0x0040 //e. error of the stop bit //r. îøèáêà ñòîï-áèòà -#define SIZE_ERR 0x0004 //e. size of the received data packet mismatches the agreement //r. ðàçìåð ïðèíÿòîãî ïàêåòà íå ñîîòâåòñòâóåò ñîãëàøåíèþ -#define LCC_ERR 0x0002 //e. checksum has not coincided //r. íå ñîâïàëà êîíòðîëüíàÿ ñóììà -#define NO_CMD_ERR 0x0100 //e. in the received packet there is no attribute of command //r. â ïðèíÿòîì ïàêåòå íåò ïðèçíàêà êîìàíäû -#define CODE_ERR 0x0200 //e. unknown code of a command //r. íåèçâåñòíûé êîä êîìàíäû -#define MODE_ERR 0x0400 //e. code of a command mismatches a current mode //r. êîä êîìàíäû íå ñîîòâåòñòâóåò òåêóùåìó ðåæèìó -#define PARAM_ERR 0x0800 //e. parameters of a command was set incorrectly //r. íåâåðíî çàäàííûå ïàðàìåòðû êîìàíäû -#define MAXSIZE_ERR 0x1000 //e. receiver buffer overflow //r. ïåðåïîëíåíèå áóôåðà ïðèåìíèêà -#define ADDR_ERR 0x2000 //e. incorrect address of the device //r. íåâåðíûé àäðåñ óñòðîéñòâà -#define READ_ERR 0x4000 //e. stop of link because of untimely data read //r. îñòàíîâ ñâÿçè íåñâîåâðåìåííûì ÷òåíèåì äàííûõ -#define WASQ_ERR 0x8000 //e. error of waiting of authentic answer //r. îøèáêà îæèäàíèÿ äîñòîâåðíîãî îòâåòà +#define STRT_ERR 0x0080 //e. error of the start bit //r. оÑибка ÑÑаÑÑ-биÑа +#define STOP_ERR 0x0040 //e. error of the stop bit //r. оÑибка ÑÑоп-биÑа +#define SIZE_ERR 0x0004 //e. size of the received data packet mismatches the agreement //r. ÑÐ°Ð·Ð¼ÐµÑ Ð¿ÑинÑÑого пакеÑа не ÑооÑвеÑÑÑвÑÐµÑ ÑоглаÑÐµÐ½Ð¸Ñ +#define LCC_ERR 0x0002 //e. checksum has not coincided //r. не Ñовпала конÑÑолÑÐ½Ð°Ñ ÑÑмма +#define NO_CMD_ERR 0x0100 //e. in the received packet there is no attribute of command //r. в пÑинÑÑом пакеÑе Ð½ÐµÑ Ð¿Ñизнака ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ +#define CODE_ERR 0x0200 //e. unknown code of a command //r. неизвеÑÑнÑй код ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ +#define MODE_ERR 0x0400 //e. code of a command mismatches a current mode //r. код ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ Ð½Ðµ ÑооÑвеÑÑÑвÑÐµÑ ÑекÑÑÐµÐ¼Ñ ÑÐµÐ¶Ð¸Ð¼Ñ +#define PARAM_ERR 0x0800 //e. parameters of a command was set incorrectly //r. невеÑно заданнÑе паÑамеÑÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ +#define MAXSIZE_ERR 0x1000 //e. receiver buffer overflow //r. пеÑеполнение бÑÑеÑа пÑиемника +#define ADDR_ERR 0x2000 //e. incorrect address of the device //r. невеÑнÑй адÑÐµÑ ÑÑÑÑойÑÑва +#define READ_ERR 0x4000 //e. stop of link because of untimely data read //r. оÑÑанов ÑвÑзи неÑвоевÑеменнÑм ÑÑением даннÑÑ +#define WASQ_ERR 0x8000 //e. error of waiting of authentic answer //r. оÑибка Ð¾Ð¶Ð¸Ð´Ð°Ð½Ð¸Ñ Ð´Ð¾ÑÑовеÑного оÑвеÑа -#define Trm_En_Rd 0x0080 //e. a mask of permission/readiness of transmitter of the 2 line //r. ìàñêà ðàçðåøåíèÿ/ãîòîâíîñòè ïåðåäàò÷èêà ëèíèè 2 -#define Rcv_Rdy 0x0040 //e. a mask of the readiness bit of the receiver //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 Trm_En_Rd 0x0080 //e. a mask of permission/readiness of transmitter of the 2 line //r. маÑка ÑазÑеÑениÑ/гоÑовноÑÑи пеÑедаÑÑика линии 2 +#define Rcv_Rdy 0x0040 //e. a mask of the readiness bit of the receiver //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 FIFOs_En 0x00000001 @@ -154,7 +153,7 @@ #define DstFixed 0x00000000 #define TCIntEnabl 0x80000000 -#define TCIntDisabl 0x00000000 +#define TCIntDisabl 0x00000000 #define DMAChannelEn 0x00000001 #define DMAChannelDis 0x00000000 @@ -198,7 +197,7 @@ extern unsigned int line_sts; extern int rx_buf_copy; extern char zeros; -extern unsigned int SystemCoreClock; +extern unsigned int SystemCoreClock; extern void DMA_Init(void); extern void transm_DAT(void); @@ -210,8 +209,7 @@ extern int UART1_SendByte(int); extern void UART_SwitchSpeed(unsigned); extern void UART_DMA_Init(void); -extern void SystemCoreClockUpdate (void); +extern void SystemCoreClockUpdate (void); #endif /* end __DMA_H */ -
