minor platform macro changes
worked on code for LoRa SX1276
This commit is contained in:
7
Debug.h
7
Debug.h
@@ -42,6 +42,8 @@ extern "C" {
|
||||
#define debugMod9(module, str, v1, v2, v3, v4, v5, v6, v7, v8, v9)
|
||||
#define IF_DEBUG(a)
|
||||
#define debugShow(a, b)
|
||||
|
||||
#warning "not using debug output"
|
||||
|
||||
#elif ESP8266
|
||||
|
||||
@@ -66,14 +68,13 @@ extern "C" {
|
||||
os_printf("\n");
|
||||
}
|
||||
|
||||
#elif (PLATFORM == WROOM32_DEVKIT)
|
||||
#elif ESP32
|
||||
|
||||
#ifndef CONFIG_LOG_DEFAULT_LEVEL
|
||||
#define CONFIG_LOG_DEFAULT_LEVEL 3
|
||||
#endif
|
||||
#include "esp_log.h"
|
||||
|
||||
|
||||
#define debug(str) ESP_LOGI("", str);
|
||||
#define debugMod(module, str) ESP_LOGI(module, str);
|
||||
#define debugMod1(module, str, val) ESP_LOGI(module, str, val);
|
||||
@@ -84,7 +85,9 @@ extern "C" {
|
||||
#define debugShow(buf, len) hexdump(buf,len)
|
||||
|
||||
#else
|
||||
|
||||
#error "unsupported platform"
|
||||
|
||||
#endif
|
||||
|
||||
#endif // DEBUG_H
|
||||
|
||||
Reference in New Issue
Block a user