show NRF52840 debug output via the USB CDC-ACM device

pull/323/head
geeksville 2020-08-17 11:50:50 -07:00
rodzic 781077e799
commit 3c09c3e520
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -339,8 +339,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Debug printing to segger console
#define SEGGER_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
// nrf52 gets its settings via variant files
#ifndef PIN_SERIAL_RX
// If we are not on a NRF52840 (which has built in USB-ACM serial support) and we don't have serial pins hooked up, then we MUST
// use SEGGER for debug output
#if !defined(PIN_SERIAL_RX) && !defined(NRF52840_XXAA)
// No serial ports on this board - ONLY use segger in memory console
#define USE_SEGGER
#endif