refactored decode algorithms

This commit is contained in:
2017-01-02 18:38:22 +08:00
parent c4227c2342
commit 86065a9f60
28 changed files with 1523 additions and 1568 deletions

View File

@@ -0,0 +1,47 @@
/**************************************************************************************************
Filename: irda_defs.h
Revised: Date: 2016-10-26
Revision: Revision: 1.0
Description: This file provides algorithms for IR decode
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
#ifndef PARSE_IR_DEFS_H
#define PARSE_IR_DEFS_H
#ifdef __cplusplus
extern "C"
{
#endif
#if defined BOARD_ANDROID
#include <android/log.h>
#define LOG_TAG "irda_decode"
#endif
#define TRUE 1
#define FALSE 0
typedef unsigned char UINT8;
typedef signed char INT8;
typedef unsigned short UINT16;
typedef signed short INT16;
typedef signed int INT;
typedef unsigned int UINT;
typedef int BOOL;
#define irda_malloc(A) malloc(A)
#define irda_free(A) free(A)
#define irda_memcpy(A, B, C) memcpy(A, B, C)
#define irda_memset(A, B, C) memset(A, B, C)
#define irda_strlen(A) strlen(A)
#define IR_PRINTF printf
#define USER_DATA_SIZE 2048
#ifdef __cplusplus
}
#endif
#endif //PARSE_IR_DEFS_H