mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 02:14:37 +00:00
show NRF52840 debug output via the USB CDC-ACM device
This commit is contained in:
parent
781077e799
commit
3c09c3e520
@ -339,8 +339,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
// Debug printing to segger console
|
// Debug printing to segger console
|
||||||
#define SEGGER_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
#define SEGGER_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
|
||||||
|
|
||||||
// nrf52 gets its settings via variant files
|
// 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
|
||||||
#ifndef PIN_SERIAL_RX
|
// 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
|
// No serial ports on this board - ONLY use segger in memory console
|
||||||
#define USE_SEGGER
|
#define USE_SEGGER
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user