fixed examples for 0.1.4

This commit is contained in:
strawmanbobi
2018-04-29 13:36:03 +08:00
parent a8d1a7f72c
commit 833284ca48
27 changed files with 431 additions and 401 deletions

View File

@@ -29,6 +29,10 @@ extern "C"
#define TRUE 1
#define FALSE 0
#define FORMAT_HEX 16
#define FORMAT_DECIMAL 10
typedef unsigned char UINT8;
typedef signed char INT8;
typedef unsigned short UINT16;
@@ -39,12 +43,12 @@ typedef int BOOL;
void noprint(const char *fmt, ...);
#if !defined BOARD_CC26XX
#define ir_malloc(A) malloc(A)
#define ir_free(A) free(A)
#else
#if defined BOARD_CC26XX
#define ir_malloc(A) ICall_malloc(A)
#define ir_free(A) ICall_free(A)
#else
#define ir_malloc(A) malloc(A)
#define ir_free(A) free(A)
#endif
#define ir_memcpy(A, B, C) memcpy(A, B, C)