35#ifndef _FREERTOS_DRIVERS_COMMON_LOGGINGGPIO_HXX_
36#define _FREERTOS_DRIVERS_COMMON_LOGGINGGPIO_HXX_
42template<const
char* message>
55 static void set(
bool value)
58 LOG(
INFO,
"Logging pin %s = %s", message, value ?
"ON" :
"OFF");
65 LOG(
INFO,
"Logging pin %s: TOGGLE", message);
79template<const
char* message>
84template<const
char* message>
static constexpr const Gpio * instance()
OS-independent abstraction for GPIO.
#define LOG(level, message...)
Conditionally write a message to the logging output.
static const int INFO
Loglevel that is printed by default, reporting some status information.
GPIO Pin definition structure with no actual pin behind it.
static constexpr const Gpio * instance()
static bool get()
Returns the input pin level.
static bool is_output()
Returns whether this is an output pin or not.
GPIO Pin definition structure with no actual pin behind it.
static void set(bool value)
Sets the output pin level (generating a log output).
static void hw_init()
Empty. No initialization needed.
static bool is_output()
Returns whether this is an output pin or not.
static void toggle()
Toggles the output pin level.
static void hw_set_to_safe()
Empty. No initialization needed.
static bool lastValue_
Last output value.