4G_module/custom/jt808/inc/jt808_config.h

24 lines
508 B
C

#ifndef _JT808_CONFIG_H_
#define _JT808_CONFIG_H_
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include "jt808_util.h"
#define JT808_DEBUG_ENABLE 1
#if JT808_DEBUG_ENABLE
#include "app_uart.h"
#define JT808_DEBUG(fmt, args...) app_printf("[JT808]" fmt, ##args)
#else
#define JT808_DEBUG(fmt, arg...)
#endif
#include "cm_mem.h"
#define jt808_malloc(size) cm_malloc(size)
#define jt808_realloc(ptr, size) cm_realloc(ptr, size)
#define jt808_free(ptr) cm_free(ptr)
#endif