LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
debug.hpp
Go to the documentation of this file.
1
21#ifndef LSH_CORE_UTIL_CONSTANTS_DEBUG_HPP
22#define LSH_CORE_UTIL_CONSTANTS_DEBUG_HPP
23
24#include <stdint.h>
25
29namespace constants
30{
35namespace debugConfigs
36{
41#ifndef CONFIG_DEBUG_SERIAL_BAUD
42static constexpr const uint32_t DEBUG_SERIAL_BAUD = 115200U;
43#else
44static constexpr const uint32_t DEBUG_SERIAL_BAUD = CONFIG_DEBUG_SERIAL_BAUD;
45#endif
46} // namespace debugConfigs
47
48} // namespace constants
49
50#ifdef LSH_DEBUG
51#include <avr/pgmspace.h>
56namespace dStr
57{
58constexpr const char SPACE[] PROGMEM = " "; // NOLINT
59constexpr const char COLON_SPACE[] PROGMEM = ": "; // NOLINT
60constexpr const char POINT[] PROGMEM = "."; // NOLINT
61constexpr const char DIVIDER[] PROGMEM = "||"; // NOLINT
62
63constexpr const char FUNCTION[] PROGMEM = "Function"; // NOLINT
64constexpr const char METHOD[] PROGMEM = "Method"; // NOLINT
65constexpr const char CALLED[] PROGMEM = "called"; // NOLINT
66constexpr const char FREE_MEMORY[] PROGMEM = "Free memory"; // NOLINT
67constexpr const char COMPILED_BY_GCC[] PROGMEM = "Compiled by GCC"; // NOLINT
68constexpr const char EXEC_TIME[] PROGMEM = "Exec time"; // NOLINT
69constexpr const char IS_CONNECTED[] PROGMEM = "Is connected"; // NOLINT
70constexpr const char CLICKABLE[] PROGMEM = "Clickable"; // NOLINT
71constexpr const char SHORT[] PROGMEM = "short"; // NOLINT
72constexpr const char LONG[] PROGMEM = "long"; // NOLINT
73constexpr const char SUPER_LONG[] PROGMEM = "super long"; // NOLINT
74constexpr const char CLICKED[] PROGMEM = "clicked"; // NOLINT
75constexpr const char ESP_EXIT_CODE[] PROGMEM = "ESP exit code"; // NOLINT
76constexpr const char MESSAGE_RECEIVED_AT_TIME[] PROGMEM = "Message received at time"; // NOLINT
77constexpr const char ACTUATOR[] PROGMEM = "Actuator"; // NOLINT
78constexpr const char DOES_NOT_EXIST[] PROGMEM = "does not exist"; // NOLINT
79constexpr const char JSON_DOC_IS_NULL[] PROGMEM = "JsonDoc is NULL"; // NOLINT
80constexpr const char JSON_RECEIVED[] PROGMEM = "JSON received"; // NOLINT
81constexpr const char JSON_SENT[] PROGMEM = "JSON sent"; // NOLINT
82constexpr const char SENDING_PING_TO_ESP[] PROGMEM = "Sending ping to ESP"; // NOLINT
83constexpr const char SENDING_BOOT_TO_ESP[] PROGMEM = "Sending boot to ESP"; // NOLINT
84constexpr const char UUID[] PROGMEM = "UUID"; // NOLINT
85constexpr const char INDEX[] PROGMEM = "Index"; // NOLINT
86constexpr const char EXPIRED[] PROGMEM = "Expired"; // NOLINT
87constexpr const char NET_BUTTONS_NOT_EMPTY[] PROGMEM = "Network buttons not empty, checking..."; // NOLINT
88constexpr const char CLICK[] PROGMEM = "Click"; // NOLINT
89constexpr const char TYPE[] PROGMEM = "type"; // NOLINT
90constexpr const char FOR[] PROGMEM = "for"; // NOLINT
91constexpr const char ITERATIONS[] PROGMEM = "iterations"; // NOLINT
92} // namespace dStr
93
94#endif // LSH_DEBUG
95
96#endif // LSH_CORE_UTIL_CONSTANTS_DEBUG_HPP
Namespace that groups compile-time constants.
Definition config.hpp:33