Initial commit: CCU621_M firmware project with BLE debug link support.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#ifndef __IOTX_MQTT_INTERNAL_H__
|
||||
#define __IOTX_MQTT_INTERNAL_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "infra_state.h"
|
||||
#include "infra_compat.h"
|
||||
#include "infra_types.h"
|
||||
#include "infra_defs.h"
|
||||
#include "infra_string.h"
|
||||
#include "infra_list.h"
|
||||
#include "infra_log.h"
|
||||
#include "infra_report.h"
|
||||
#include "infra_net.h"
|
||||
#include "infra_sha256.h"
|
||||
|
||||
#include "dev_sign_api.h"
|
||||
#include "mqtt_wrapper.h"
|
||||
#include "iotx_mqtt_config.h"
|
||||
#include "iotx_mqtt_client.h"
|
||||
|
||||
#include "MQTTPacket.h"
|
||||
|
||||
#ifdef INFRA_LOG
|
||||
#include "infra_log.h"
|
||||
#define mqtt_emerg(...) log_emerg("MQTT", __VA_ARGS__)
|
||||
#define mqtt_crit(...) log_crit("MQTT", __VA_ARGS__)
|
||||
#define mqtt_err(...) log_err("MQTT", __VA_ARGS__)
|
||||
#define mqtt_warning(...) log_warning("MQTT", __VA_ARGS__)
|
||||
#define mqtt_info(...) log_info("MQTT", __VA_ARGS__)
|
||||
#define mqtt_debug(...) log_debug("MQTT", __VA_ARGS__)
|
||||
#else
|
||||
#define mqtt_emerg(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#define mqtt_crit(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#define mqtt_err(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#define mqtt_warning(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#define mqtt_info(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#define mqtt_debug(...) do{HAL_Printf(__VA_ARGS__);HAL_Printf("\r\n");}while(0)
|
||||
#endif
|
||||
|
||||
#endif /* __IOTX_MQTT_INTERNAL_H__ */
|
||||
Reference in New Issue
Block a user