fork

Dependencies:   mbed

Fork of LG by igor Apu

Committer:
Kovalev_D
Date:
Wed Sep 27 13:09:24 2017 +0000
Revision:
219:2d3475d0dd1b
Parent:
74:f4d9c3403578
hnjtfgyy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
igor_v 0:8ad47e2b6f00 1 #ifndef __UART_H
igor_v 0:8ad47e2b6f00 2 #define __UART_H
igor_v 0:8ad47e2b6f00 3
igor_v 0:8ad47e2b6f00 4 #define PortEUART0 LPC_GPIO4->FIOPIN
igor_v 0:8ad47e2b6f00 5 #define PortDirEUART0 LPC_GPIO4->FIODIR
igor_v 0:8ad47e2b6f00 6 #define PinEUART0 1UL << 29
igor_v 0:8ad47e2b6f00 7
igor_v 0:8ad47e2b6f00 8 #define PortEUART1 LPC_GPIO2->FIOPIN
igor_v 0:8ad47e2b6f00 9 #define PortDirEUART1 LPC_GPIO2->FIODIR
igor_v 0:8ad47e2b6f00 10 #define PinEUART1 1UL << 2
igor_v 0:8ad47e2b6f00 11
igor_v 0:8ad47e2b6f00 12
igor_v 0:8ad47e2b6f00 13 #define PortEUART2 LPC_GPIO2->FIOPIN
igor_v 0:8ad47e2b6f00 14 #define PortDirEUART2 LPC_GPIO2->FIODIR
igor_v 0:8ad47e2b6f00 15 #define PinEUART2 1UL << 13
igor_v 0:8ad47e2b6f00 16
igor_v 0:8ad47e2b6f00 17 #define PortEUART3 LPC_GPIO0->FIOPIN
igor_v 0:8ad47e2b6f00 18 #define PortDirEUART3 LPC_GPIO0->FIODIR
igor_v 0:8ad47e2b6f00 19 #define PinEUART3 1UL << 24
igor_v 0:8ad47e2b6f00 20
igor_v 0:8ad47e2b6f00 21 void UART0_Init (void);
igor_v 0:8ad47e2b6f00 22 void UART1_Init_temp (void);
igor_v 0:8ad47e2b6f00 23 void UART2_Init (void);
igor_v 0:8ad47e2b6f00 24 void UART3_Init (void);
igor_v 0:8ad47e2b6f00 25
igor_v 0:8ad47e2b6f00 26 void UART2_InitSet (unsigned int speed, unsigned int SetLsr);
igor_v 0:8ad47e2b6f00 27 void UART3_InitSet (unsigned int speed, unsigned int SetLsr);
igor_v 0:8ad47e2b6f00 28 void UART_InitSet (unsigned int Num,unsigned int Speed, unsigned int SetLsr);
igor_v 0:8ad47e2b6f00 29
igor_v 0:8ad47e2b6f00 30
igor_v 0:8ad47e2b6f00 31
igor_v 0:8ad47e2b6f00 32 int UART0_SendByte (int ucData);
igor_v 0:8ad47e2b6f00 33
igor_v 0:8ad47e2b6f00 34 int UART0_GetChar (void);
igor_v 0:8ad47e2b6f00 35 int UART1_GetChar (void);
igor_v 0:8ad47e2b6f00 36 int UART2_GetChar (void);
igor_v 0:8ad47e2b6f00 37 int UART3_GetChar (void);
igor_v 0:8ad47e2b6f00 38
igor_v 0:8ad47e2b6f00 39
igor_v 0:8ad47e2b6f00 40 int UART0_Chek (void);
igor_v 0:8ad47e2b6f00 41 int UART1_Chek (void);
igor_v 0:8ad47e2b6f00 42 int UART2_Chek (void);
igor_v 0:8ad47e2b6f00 43 int UART3_Chek (void);
igor_v 0:8ad47e2b6f00 44
igor_v 0:8ad47e2b6f00 45 void UART0_SendString (char *s);
igor_v 0:8ad47e2b6f00 46 void UART2_SendString (char *s);
igor_v 0:8ad47e2b6f00 47
igor_v 0:8ad47e2b6f00 48
igor_v 0:8ad47e2b6f00 49 int UART2_SendByte (int ucData);
igor_v 0:8ad47e2b6f00 50 int UART2_SendByte_i (int ucData);
igor_v 0:8ad47e2b6f00 51 int UART2_GetChar (void);
igor_v 0:8ad47e2b6f00 52 int UART2_Chek (void);
igor_v 0:8ad47e2b6f00 53
igor_v 0:8ad47e2b6f00 54 void Concol ( void);
igor_v 0:8ad47e2b6f00 55 void Concol1 ( void);
igor_v 0:8ad47e2b6f00 56 void Concol2 ( void);
igor_v 0:8ad47e2b6f00 57 void Concol3 ( void);
igor_v 0:8ad47e2b6f00 58
igor_v 0:8ad47e2b6f00 59 void WriteCon (char *s);
igor_v 0:8ad47e2b6f00 60 void WriteCon1 (char *s);
igor_v 0:8ad47e2b6f00 61 void WriteCon2 (char *s);
igor_v 0:8ad47e2b6f00 62 void WriteConF (char *s, unsigned int Num);
igor_v 0:8ad47e2b6f00 63
igor_v 0:8ad47e2b6f00 64 void WriteConN (char *s, unsigned int N);
igor_v 0:8ad47e2b6f00 65
igor_v 0:8ad47e2b6f00 66 void WriteConByte (unsigned int In) ;
igor_v 0:8ad47e2b6f00 67 void WriteCon2Byte (unsigned int In) ;
igor_v 0:8ad47e2b6f00 68 void WriteCon3Byte (unsigned int In) ;
igor_v 0:8ad47e2b6f00 69
igor_v 0:8ad47e2b6f00 70
igor_v 0:8ad47e2b6f00 71 void WriteConByteF (unsigned int In,unsigned int Num );
igor_v 0:8ad47e2b6f00 72
igor_v 0:8ad47e2b6f00 73
igor_v 0:8ad47e2b6f00 74 int ReadCon (char *s);
igor_v 0:8ad47e2b6f00 75 int ReadCon1 (char *s);
igor_v 0:8ad47e2b6f00 76 int ReadCon2 (char *s);
igor_v 0:8ad47e2b6f00 77 int ReadCon3 (char *s);
igor_v 0:8ad47e2b6f00 78
igor_v 0:8ad47e2b6f00 79 int ReadChekCon (char *s);
igor_v 0:8ad47e2b6f00 80 int ReadChekCon2 (char *s);
igor_v 0:8ad47e2b6f00 81 int ReadChekCon3 (char *s);
igor_v 0:8ad47e2b6f00 82
igor_v 0:8ad47e2b6f00 83 int ChekInCon ( void);
igor_v 0:8ad47e2b6f00 84 int ChekInCon1 ( void);
igor_v 0:8ad47e2b6f00 85 int ChekInCon2 ( void);
igor_v 0:8ad47e2b6f00 86 int ChekInCon3 ( void);
igor_v 0:8ad47e2b6f00 87
igor_v 0:8ad47e2b6f00 88 int ChekOutCon ( void);
igor_v 0:8ad47e2b6f00 89 int ChekOutCon1 ( void);
igor_v 0:8ad47e2b6f00 90 int ChekOutCon2 ( void);
igor_v 0:8ad47e2b6f00 91 int ChekOutCon3 ( void);
igor_v 0:8ad47e2b6f00 92
igor_v 0:8ad47e2b6f00 93
igor_v 0:8ad47e2b6f00 94
igor_v 0:8ad47e2b6f00 95 void SetDeUART0 (void);
igor_v 0:8ad47e2b6f00 96 void ClrDeUART0 (void);
igor_v 0:8ad47e2b6f00 97 void SetDeUART1 (void);
igor_v 0:8ad47e2b6f00 98 void ClrDeUART1 (void);
igor_v 0:8ad47e2b6f00 99 void SetDeUART2 (void);
igor_v 0:8ad47e2b6f00 100 void ClrDeUART2 (void);
igor_v 0:8ad47e2b6f00 101 void SetDeUART3 (void);
igor_v 0:8ad47e2b6f00 102 void ClrDeUART3 (void);
igor_v 0:8ad47e2b6f00 103
igor_v 0:8ad47e2b6f00 104
igor_v 0:8ad47e2b6f00 105
igor_v 0:8ad47e2b6f00 106
igor_v 0:8ad47e2b6f00 107 extern unsigned int OutBufConCount ;
igor_v 0:8ad47e2b6f00 108 extern unsigned int OutBufCon1Count;
igor_v 0:8ad47e2b6f00 109 extern unsigned int OutBufCon2Count;
igor_v 0:8ad47e2b6f00 110 extern unsigned int OutBufCon3Count;
igor_v 0:8ad47e2b6f00 111
igor_v 0:8ad47e2b6f00 112
igor_v 0:8ad47e2b6f00 113
igor_v 0:8ad47e2b6f00 114 #endif
igor_v 0:8ad47e2b6f00 115