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
uart_m.h
00001 #ifndef __UART_H 00002 #define __UART_H 00003 00004 #define PortEUART0 LPC_GPIO4->FIOPIN 00005 #define PortDirEUART0 LPC_GPIO4->FIODIR 00006 #define PinEUART0 1UL << 29 00007 00008 #define PortEUART1 LPC_GPIO2->FIOPIN 00009 #define PortDirEUART1 LPC_GPIO2->FIODIR 00010 #define PinEUART1 1UL << 2 00011 00012 00013 #define PortEUART2 LPC_GPIO2->FIOPIN 00014 #define PortDirEUART2 LPC_GPIO2->FIODIR 00015 #define PinEUART2 1UL << 13 00016 00017 #define PortEUART3 LPC_GPIO0->FIOPIN 00018 #define PortDirEUART3 LPC_GPIO0->FIODIR 00019 #define PinEUART3 1UL << 24 00020 00021 void UART0_Init (void); 00022 void UART1_Init_temp (void); 00023 void UART2_Init (void); 00024 void UART3_Init (void); 00025 00026 void UART2_InitSet (unsigned int speed, unsigned int SetLsr); 00027 void UART3_InitSet (unsigned int speed, unsigned int SetLsr); 00028 void UART_InitSet (unsigned int Num,unsigned int Speed, unsigned int SetLsr); 00029 00030 00031 00032 int UART0_SendByte (int ucData); 00033 00034 int UART0_GetChar (void); 00035 int UART1_GetChar (void); 00036 int UART2_GetChar (void); 00037 int UART3_GetChar (void); 00038 00039 00040 int UART0_Chek (void); 00041 int UART1_Chek (void); 00042 int UART2_Chek (void); 00043 int UART3_Chek (void); 00044 00045 void UART0_SendString (char *s); 00046 void UART2_SendString (char *s); 00047 00048 00049 int UART2_SendByte (int ucData); 00050 int UART2_SendByte_i (int ucData); 00051 int UART2_GetChar (void); 00052 int UART2_Chek (void); 00053 00054 void Concol ( void); 00055 void Concol1 ( void); 00056 void Concol2 ( void); 00057 void Concol3 ( void); 00058 00059 void WriteCon (char *s); 00060 void WriteCon1 (char *s); 00061 void WriteCon2 (char *s); 00062 void WriteConF (char *s, unsigned int Num); 00063 00064 void WriteConN (char *s, unsigned int N); 00065 00066 void WriteConByte (unsigned int In) ; 00067 void WriteCon2Byte (unsigned int In) ; 00068 void WriteCon3Byte (unsigned int In) ; 00069 00070 00071 void WriteConByteF (unsigned int In,unsigned int Num ); 00072 00073 00074 int ReadCon (char *s); 00075 int ReadCon1 (char *s); 00076 int ReadCon2 (char *s); 00077 int ReadCon3 (char *s); 00078 00079 int ReadChekCon (char *s); 00080 int ReadChekCon2 (char *s); 00081 int ReadChekCon3 (char *s); 00082 00083 int ChekInCon ( void); 00084 int ChekInCon1 ( void); 00085 int ChekInCon2 ( void); 00086 int ChekInCon3 ( void); 00087 00088 int ChekOutCon ( void); 00089 int ChekOutCon1 ( void); 00090 int ChekOutCon2 ( void); 00091 int ChekOutCon3 ( void); 00092 00093 00094 00095 void SetDeUART0 (void); 00096 void ClrDeUART0 (void); 00097 void SetDeUART1 (void); 00098 void ClrDeUART1 (void); 00099 void SetDeUART2 (void); 00100 void ClrDeUART2 (void); 00101 void SetDeUART3 (void); 00102 void ClrDeUART3 (void); 00103 00104 00105 00106 00107 extern unsigned int OutBufConCount ; 00108 extern unsigned int OutBufCon1Count; 00109 extern unsigned int OutBufCon2Count; 00110 extern unsigned int OutBufCon3Count; 00111 00112 00113 00114 #endif 00115
Generated on Thu Jul 14 2022 02:34:42 by
 1.7.2
 1.7.2 
    