bsptemplate/asspandvariant/template_variant/specific/uart.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
    80 	EUartDataLength6/* =bitmask for six data bits */,
    80 	EUartDataLength6/* =bitmask for six data bits */,
    81 	EUartDataLength7/* =bitmask for seven data bits */,
    81 	EUartDataLength7/* =bitmask for seven data bits */,
    82 	EUartDataLength8/* =bitmask for eight data bits */
    82 	EUartDataLength8/* =bitmask for eight data bits */
    83 	};
    83 	};
    84 
    84 
    85 //Remove the #if block if this code needs to be used or referenced.
       
    86 #if 0	//RVCT40 warning
       
    87 //
    85 //
    88 // TO DO: (mandatory)
    86 // TO DO: (mandatory)
    89 //
    87 //
    90 // Lookup table to convert EPOC baud rates into hardware-specific baud rate values
    88 // Lookup table to convert EPOC baud rates into hardware-specific baud rate values
    91 // Unsupported baud rates select the nearest lower rate.
    89 // Unsupported baud rates select the nearest lower rate.
   106 // TO DO: (mandatory)
   104 // TO DO: (mandatory)
   107 //
   105 //
   108 // Lookup table to convert EPOC parity settings into hardware-specific values
   106 // Lookup table to convert EPOC parity settings into hardware-specific values
   109 //
   107 //
   110 // EXAMPLE ONLY
   108 // EXAMPLE ONLY
   111 
       
   112 static const TUartParity Parity[3] =
   109 static const TUartParity Parity[3] =
   113 	{
   110 	{
   114 	EUartParityNone,EUartParityEven,EUartParityOdd
   111 	EUartParityNone,EUartParityEven,EUartParityOdd
   115 	};
   112 	};
   116 
   113 
   118 // TO DO: (mandatory)
   115 // TO DO: (mandatory)
   119 //
   116 //
   120 // Lookup table to convert EPOC stop bit values into hardware-specific values
   117 // Lookup table to convert EPOC stop bit values into hardware-specific values
   121 //
   118 //
   122 // EXAMPLE ONLY
   119 // EXAMPLE ONLY
   123 
       
   124 static const TUartStopBit StopBit[2] =
   120 static const TUartStopBit StopBit[2] =
   125 	{
   121 	{
   126 	EUartStopBitOne,EUartStopBitTwo
   122 	EUartStopBitOne,EUartStopBitTwo
   127 	};
   123 	};
   128 
   124 
   130 // TO DO: (mandatory)
   126 // TO DO: (mandatory)
   131 //
   127 //
   132 // Lookup table to convert EPOC data bit settings into hardware-specific values
   128 // Lookup table to convert EPOC data bit settings into hardware-specific values
   133 //
   129 //
   134 // EXAMPLE ONLY
   130 // EXAMPLE ONLY
   135 
       
   136 static const TUartDataLength DataLength[4] =
   131 static const TUartDataLength DataLength[4] =
   137 	{
   132 	{
   138 	EUartDataLength5,EUartDataLength6,	
   133 	EUartDataLength5,EUartDataLength6,	
   139 	EUartDataLength7,EUartDataLength8
   134 	EUartDataLength7,EUartDataLength8
   140 	};
   135 	};
   141 
   136 
   142 #endif	//RVCT40 warning
       
   143 
   137 
   144 
   138 
   145 class DDriverComm : public DPhysicalDevice
   139 class DDriverComm : public DPhysicalDevice
   146 	{
   140 	{
   147 public:
   141 public: