17 lines
371 B
C++
17 lines
371 B
C++
#include <Arduino.h>
|
|
|
|
#ifndef __DEBUGPORT_H__
|
|
#define __DEBUGPORT_H__
|
|
|
|
class CProtocol;
|
|
|
|
#if defined(__arm__)
|
|
// Typically Arduino Due
|
|
static UARTClass& DebugPort(Serial);
|
|
#else
|
|
static HardwareSerial& DebugPort(Serial); // reference Serial as DebugPort
|
|
#endif
|
|
|
|
void DebugReportFrame(const char* hdr, const CProtocol& Frame, const char* ftr);
|
|
|
|
#endif // __DEBUGPORT_H__
|