update 2016-11-05 b2
1. formulated irda decoder source for BOARD_PC
This commit is contained in:
@@ -8,14 +8,6 @@ Description: This file provides algorithms for IR decode
|
||||
Revision log:
|
||||
* 2016-10-01: created by strawmanbobi
|
||||
**************************************************************************************************/
|
||||
#if defined BOARD_EMBEDDED
|
||||
#include "osal.h"
|
||||
#endif
|
||||
|
||||
#if defined BOARD_FREE_RTOS
|
||||
#include "wmstdio.h"
|
||||
#include "wm_os.h"
|
||||
#endif
|
||||
|
||||
#if defined BOARD_ANDROID
|
||||
#include <android/log.h>
|
||||
@@ -39,17 +31,13 @@ typedef signed short INT16;
|
||||
typedef unsigned char BOOL;
|
||||
|
||||
#if defined BOARD_EMBEDDED
|
||||
#define irda_malloc(A) osal_mem_alloc(A)
|
||||
#define irda_free(A) osal_mem_free(A)
|
||||
#define irda_memcpy(A, B, C) osal_memcpy(A, B, C)
|
||||
#define irda_memset(A, B, C) osal_memset(A, B, C)
|
||||
#define irda_strlen(A) osal_strlen(A)
|
||||
#define IR_PRINTF(A)
|
||||
|
||||
#if !defined BOARD_EMBEDDED
|
||||
#define USER_DATA_SIZE IRDA_USER_DATA_SIZE
|
||||
#endif
|
||||
|
||||
#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) memcpy(A, B, C)
|
||||
#define irda_strlen(A) strlen(A)
|
||||
#define IR_PRINTF(...)
|
||||
#define USER_DATA_SIZE 1536
|
||||
#elif defined BOARD_FREE_RTOS
|
||||
#define irda_malloc(A) os_mem_alloc(A)
|
||||
#define irda_free(A) os_mem_free(A)
|
||||
@@ -57,8 +45,8 @@ typedef unsigned char BOOL;
|
||||
#define irda_memset(A, B, C) memset(A, B, C)
|
||||
#define irda_strlen(A) strlen(A)
|
||||
#define IR_PRINTF(A)
|
||||
// temporarily define USER_DATA_SIZE as 1200 for BOARD_FREE_RTOS
|
||||
#define USER_DATA_SIZE 1200
|
||||
// temporarily define USER_DATA_SIZE as 1536 for BOARD_FREE_RTOS
|
||||
#define USER_DATA_SIZE 1536
|
||||
#elif defined BOARD_PC
|
||||
#define irda_malloc(A) malloc(A)
|
||||
#define irda_free(A) free(A)
|
||||
|
||||
Reference in New Issue
Block a user