debug serial can use USART2 and USART3
This commit is contained in:
parent
28287b9acc
commit
de94812483
|
@ -25,7 +25,7 @@ void setScopeChannel(uint8_t ch, int16_t val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void consoleScope() {
|
void consoleScope() {
|
||||||
#if defined DEBUG_SERIAL_SERVOTERM && defined DEBUG_SERIAL_USART3
|
#if defined DEBUG_SERIAL_SERVOTERM && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3)
|
||||||
uart_buf[0] = 0xff;
|
uart_buf[0] = 0xff;
|
||||||
uart_buf[1] = CLAMP(ch_buf[0]+127, 0, 255);
|
uart_buf[1] = CLAMP(ch_buf[0]+127, 0, 255);
|
||||||
uart_buf[2] = CLAMP(ch_buf[1]+127, 0, 255);
|
uart_buf[2] = CLAMP(ch_buf[1]+127, 0, 255);
|
||||||
|
@ -45,7 +45,7 @@ void consoleScope() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined DEBUG_SERIAL_ASCII && defined DEBUG_SERIAL_USART3
|
#if defined DEBUG_SERIAL_ASCII && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3)
|
||||||
memset(uart_buf, 0, sizeof(uart_buf));
|
memset(uart_buf, 0, sizeof(uart_buf));
|
||||||
sprintf(uart_buf, "1:%i 2:%i 3:%i 4:%i 5:%i 6:%i 7:%i 8:%i\r\n", ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3], ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]);
|
sprintf(uart_buf, "1:%i 2:%i 3:%i 4:%i 5:%i 6:%i 7:%i 8:%i\r\n", ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3], ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue