You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
4 years ago
|
/**
|
||
|
* This file was generated by Apache newt version: 1.8.0-dev
|
||
|
*/
|
||
|
|
||
|
#ifndef MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
|
||
|
#define MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
|
||
|
|
||
|
#include "py/mphal.h"
|
||
|
#include "modlog/modlog.h"
|
||
|
#include "log_common/log_common.h"
|
||
|
|
||
|
#define MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING (1)
|
||
|
|
||
|
#if MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING
|
||
|
#define DFLT_LOG_DEBUG(...) MODLOG_DEBUG(4, __VA_ARGS__)
|
||
|
#else
|
||
|
#define DFLT_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
|
||
|
#endif
|
||
|
|
||
|
#if MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING > 1
|
||
|
#define BLE_HS_LOG_DEBUG(...) MODLOG_DEBUG(4, __VA_ARGS__)
|
||
|
#else
|
||
|
#define BLE_HS_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
|
||
|
#endif
|
||
|
|
||
|
#define BLE_HS_LOG_INFO(...) MODLOG_INFO(4, __VA_ARGS__)
|
||
|
#define BLE_HS_LOG_WARN(...) MODLOG_WARN(4, __VA_ARGS__)
|
||
|
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__)
|
||
|
#define BLE_HS_LOG_CRITICAL(...) MODLOG_CRITICAL(4, __VA_ARGS__)
|
||
|
#define BLE_HS_LOG_DISABLED(...) MODLOG_DISABLED(4, __VA_ARGS__)
|
||
|
|
||
|
#define DFLT_LOG_INFO(...) MODLOG_INFO(0, __VA_ARGS__)
|
||
|
#define DFLT_LOG_WARN(...) MODLOG_WARN(0, __VA_ARGS__)
|
||
|
#define DFLT_LOG_ERROR(...) MODLOG_ERROR(0, __VA_ARGS__)
|
||
|
#define DFLT_LOG_CRITICAL(...) MODLOG_CRITICAL(0, __VA_ARGS__)
|
||
|
#define DFLT_LOG_DISABLED(...) MODLOG_DISABLED(0, __VA_ARGS__)
|
||
|
|
||
|
#define MFG_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
|
||
|
#define MFG_LOG_INFO(...) IGNORE(__VA_ARGS__)
|
||
|
#define MFG_LOG_WARN(...) IGNORE(__VA_ARGS__)
|
||
|
#define MFG_LOG_ERROR(...) IGNORE(__VA_ARGS__)
|
||
|
#define MFG_LOG_CRITICAL(...) IGNORE(__VA_ARGS__)
|
||
|
#define MFG_LOG_DISABLED(...) MODLOG_DISABLED(128, __VA_ARGS__)
|
||
|
|
||
|
#endif // MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
|