27 lines
625 B
C
27 lines
625 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)
|
|
#define JT808_DEBUG_DATA(fmt, args...) app_printf(fmt, ##args)
|
|
#else
|
|
#include "app_uart.h"
|
|
#define JT808_DEBUG(fmt, ...)
|
|
#define JT808_DEBUG_DATA(fmt, ...)
|
|
#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 |