//
// Created by MightyPork on 2017/10/15.
//fixed by CXY 20190521 TF_MAX_PAYLOAD_RX :4096->256

#ifndef TF_CONFIG_H
#define TF_CONFIG_H

#include <stdint.h>
#include <stdio.h>

#define TF_ID_BYTES     2
#define TF_LEN_BYTES    2
#define TF_TYPE_BYTES   2
#define TF_CKSUM_TYPE TF_CKSUM_XOR
#define TF_USE_SOF_BYTE 1
#define TF_SOF_BYTE     0x01
typedef uint16_t TF_TICKS;
typedef uint8_t TF_COUNT;
#define TF_MAX_PAYLOAD_RX 128
#define TF_SENDBUF_LEN 2048
#define TF_MAX_ID_LST   10
#define TF_MAX_TYPE_LST 10
#define TF_MAX_GEN_LST  5
#define TF_PARSER_TIMEOUT_TICKS 10

#define TF_Error(format, ...) printf("[TF] " format "\n", ##__VA_ARGS__)

#endif //TF_CONFIG_H

