Up to now I use #define to map functions.
Exemple: if I have 2 physical uarts, to map SendDebugString to the matching physical uart I use:
#define SendDebugString(s) Uart1_SendDebugString(s)   // map to uart 1
or
#define SendDebugString(s) Uart2_SendDebugString(s)   // map to uart 2
How can I do the same using function pointers instead of #define?
 
     
    