added build env for VC++

This commit is contained in:
strawmanbobi
2016-12-14 21:37:56 +08:00
parent 6653c7ac8f
commit 684dedfa90
26 changed files with 349 additions and 96 deletions

View File

@@ -9,11 +9,6 @@ Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
/*
*inclusion
*/
#include "irda_decode.h"
#ifndef _IRDA_APPLY_H_
#define _IRDA_APPLY_H_
@@ -22,19 +17,11 @@ extern "C"
{
#endif
/*
* public macros
*/
#include "irda_decode.h"
#define MIN_TAG_LENGTH_TYPE_1 4
#define MIN_TAG_LENGTH_TYPE_2 6
/*
* public type definition
*/
/*
* public function declaration
*/
extern INT8 apply_ac_power(struct ac_protocol *protocol, UINT8 power_status);
extern INT8 apply_ac_mode(struct ac_protocol *protocol, UINT8 mode_status);

View File

@@ -8,7 +8,6 @@ Description: This file provides generic utils for IR frame build
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
#include "irda_defs.h"
#ifndef _IRDA_IRFRAME_H_
#define _IRDA_IRFRAME_H_
@@ -18,6 +17,8 @@ extern "C"
{
#endif
#include "irda_defs.h"
extern UINT16 create_ir_frame();
#ifdef __cplusplus

View File

@@ -9,11 +9,6 @@ Revision log:
* 2016-10-05: created by strawmanbobi
**************************************************************************************************/
/*
*inclusion
*/
#include "irda_decode.h"
#ifndef _IRDA_PARSE_PARSE_H_
#define _IRDA_PARSE_PARSE_H_
@@ -22,21 +17,12 @@ extern "C"
{
#endif
/*
* public macros
*/
#include "irda_decode.h"
/*
* public type definition
*/
/*
* public function declaration
*/
extern INT8 parse_nmode(struct tag_head *tag, ac_n_mode index);
extern INT8 parse_nmode(struct tag_head *tag, ac_n_mode index);
#ifdef __cplusplus
}
}
#endif
#endif // _IRDA_PARSE_PARSE_H_

View File

@@ -9,11 +9,6 @@ Revision log:
* 2016-10-11: created by strawmanbobi
**************************************************************************************************/
/*
*inclusion
*/
#include "irda_decode.h"
#ifndef _IRDA_PARSE_FRAME_PARAMETER_H_
#define _IRDA_PARSE_FRAME_PARAMETER_H_
@@ -22,17 +17,8 @@ extern "C"
{
#endif
/*
* public macros
*/
#include "irda_decode.h"
/*
* public type definition
*/
/*
* public function declaration
*/
extern INT8 parse_bootcode(struct tag_head *tag);
extern INT8 parse_zero(struct tag_head *tag);

View File

@@ -9,11 +9,6 @@ Revision log:
* 2016-10-12: created by strawmanbobi
**************************************************************************************************/
/*
*inclusion
*/
#include "irda_decode.h"
#ifndef _IRDA_PARSE_AC_PARAMETER_H_
#define _IRDA_PARSE_AC_PARAMETER_H_
@@ -22,17 +17,7 @@ extern "C"
{
#endif
/*
* public macros
*/
/*
* public type definition
*/
/*
* public function declaration
*/
#include "irda_decode.h"
extern INT8 parse_common_ac_parameter(t_tag_head *tag, tag_comp *comp_data, UINT8 with_end, UINT8 type);

View File

@@ -8,9 +8,15 @@ Description: This file provides algorithms for IR decode
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
#ifndef _IRDA_DECODE_H_
#define _IRDA_DECODE_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdio.h>
#include "irda_defs.h"
@@ -573,4 +579,8 @@ INT8 get_supported_wind_direction(UINT8* supported_wind_direction);
///////////////////////////////////////////////// Utils End /////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif
#endif // _IRDA_DECODE_H_

View File

@@ -9,18 +9,19 @@ Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
#if defined BOARD_ANDROID
#include <android/log.h>
#define LOG_TAG "irda_decode"
#endif
#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
@@ -28,7 +29,7 @@ typedef unsigned char UINT8;
typedef signed char INT8;
typedef unsigned short UINT16;
typedef signed short INT16;
typedef unsigned char BOOL;
typedef int BOOL;
#define irda_malloc(A) malloc(A)
#define irda_free(A) free(A)

View File

@@ -11,6 +11,7 @@ Revision log:
#ifndef IRDA_DECODER_IRDA_MAIN_H
#define IRDA_DECODER_IRDA_MAIN_H
#ifdef __cplusplus
extern "C"
{
@@ -18,22 +19,8 @@ extern "C"
extern struct ir_bin_buffer *pirda_buffer;
/*
* function irda_ac_file_open
*
* parameters: file_name (in) specified bin file path
*
* return: IR_DECODE_SUCCEEDED / IR_DECODE_FAILED
*/
extern INT8 irda_ac_file_open(const char *file_name);
/*
* function irda_tv_lib_open
*
* parameters: file_name (in, for PC and MT6580) specified bin file path
*
* return: IR_DECODE_SUCCEEDED / IR_DECODE_FAILED
*/
extern INT8 irda_tv_file_open(const char *file_name);
#ifdef __cplusplus

View File

@@ -11,20 +11,14 @@ Revision log:
#ifndef _IRDA_LIB_H_
#define _IRDA_LIB_H_
#ifdef __cplusplus
extern "C"
{
#endif
/*
* inclusions
*/
#include "irda_defs.h"
/*
* macros and constants
*/
#define STB_CHANNEL_OFFSET 14
#define IRDA_FLAG_NORMAL 0

View File

@@ -8,8 +8,6 @@ Description: This file provides generic utils for IRDA algorithms
Revision log:
* 2016-10-01: created by strawmanbobi
**************************************************************************************************/
#include "irda_defs.h"
#include "irda_decode.h"
#ifndef _IRDA_UTILS_H_
#define _IRDA_UTILS_H_
@@ -19,6 +17,9 @@ extern "C"
{
#endif
#include "irda_defs.h"
#include "irda_decode.h"
#include <stdio.h>
extern void string_to_hex(UINT8 *p, ac_hex *pac_hex, UINT16 len);