> OTOH, the other way you described requires you to compile > EVERY different version of EVERY UART routine. =A0E.g., > RS232_Receive, RS485_Receive, RS232_Transmit, RS485_Transmit, > RS232_Initialize, RS485_Initialize, etc. =A0You woul dput ALL of > these into a library (or libraries). =A0You mean create multiple object files UART.obj, UART_RS485.obj, UART_RS232.obj, etc from single UART.c file and merge all of them into single lib file??>Then, conditionally > bind one of them to UART_Receive, another to UART_Transmit, etc. > In that way, only one of the will be extracted from the library > instead of "all flavors".Please explain the procedure in detail. I don't know how to do it?? Kishore.
Condition code generation in library..
Started by ●December 24, 2010
Reply by ●December 27, 20102010-12-27