1 #include <AltSoftSerial.h>
15 #include <config/AltSoftSerial_Boards.h>
17 void printAltSoftSerialSetup(Stream &port)
19 #define PRINT_PFX "AltSoftSerial:"
20 #define PRINT_PIN_NAME(pin,name) { char buffer[128+1]; sprintf(buffer, PRINT_PFX "PIN:%2d %s", (int)pin, (const char*)name); port.println(buffer); }
22 port.println(PRINT_PFX
"Setup info: begin");
24 #if defined(ALTSS_USE_FTM0)
25 port.println(PRINT_PFX
"USE FTM0");
28 #if defined(ALTSS_USE_TIMER1)
29 port.println(PRINT_PFX
"USE TIMER1");
32 #if defined(ALTSS_USE_TIMER2)
33 port.println(PRINT_PFX
"USE TIMER2");
36 #if defined(ALTSS_USE_TIMER3)
37 port.println(PRINT_PFX
"USE TIMER3");
40 #if defined(ALTSS_USE_TIMER4)
41 port.println(PRINT_PFX
"USE TIMER4");
44 #if defined(ALTSS_USE_TIMER5)
45 port.println(PRINT_PFX
"USE TIMER5");
48 #if defined(INPUT_CAPTURE_PIN)
49 PRINT_PIN_NAME(INPUT_CAPTURE_PIN,
"RX");
52 #if defined(OUTPUT_COMPARE_A_PIN)
53 PRINT_PIN_NAME(OUTPUT_COMPARE_A_PIN,
"TX");
56 #if defined(OUTPUT_COMPARE_B_PIN)
57 PRINT_PIN_NAME(OUTPUT_COMPARE_B_PIN,
"(unused PWM)");
60 #if defined(OUTPUT_COMPARE_C_PIN)
61 PRINT_PIN_NAME(OUTPUT_COMPARE_C_PIN,
"(unused PWM)");
64 #if defined(OUTPUT_COMPARE_D_PIN)
65 PRINT_PIN_NAME(OUTPUT_COMPARE_D_PIN,
"(unused PWM)");
68 #if defined(OUTPUT_COMPARE_E_PIN)
69 PRINT_PIN_NAME(OUTPUT_COMPARE_E_PIN,
"(unused PWM)");
72 #if defined(OUTPUT_COMPARE_F_PIN)
73 PRINT_PIN_NAME(OUTPUT_COMPARE_F_PIN,
"(unused PWM)");
76 port.println(PRINT_PFX
"Setup info: end");
87 printAltSoftSerialSetup(Serial);
95 printAltSoftSerialSetup(Serial);