SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
debug.h File Reference
#include <string.h>
#include <Arduino.h>
#include "pinout.h"

Go to the source code of this file.

Data Structures

class  FunctionMarker
 Used for debugging. More...
 
class  WatchdogSAMD
 Watchdog for SAMD21. More...
 

Macros

#define MARK()   halt_location.set(__LINE__,__PRETTY_FUNCTION__)
 This macro records the line number and function name. More...
 

Variables

static class FunctionMarker halt_location
 Singleton of our debug class.
 

Macro Definition Documentation

◆ MARK

#define MARK ( )    halt_location.set(__LINE__,__PRETTY_FUNCTION__)

This macro records the line number and function name.

We use preprocessor directives to get the line number and function name. This macro should be used everywhere you think the program might possibly halt or crash.

Definition at line 72 of file debug.h.