高级会员

- 积分
- 772
- 金钱
- 772
- 注册时间
- 2016-9-10
- 在线时间
- 309 小时
|

楼主 |
发表于 2017-12-14 14:25:33
|
显示全部楼层
#include "stdint.h"
/* Type definitions. */
#define portCHAR char
#define portFLOAT float
#define portDOUBLE double
#define portLONG long
#define portSHORT short
#define portSTACK_TYPE uint32_t
#define portBASE_TYPE long
typedef portSTACK_TYPE StackType_t;
typedef long BaseType_t;
typedef unsigned long UBaseType_t;
#if( configUSE_16_BIT_TICKS == 1 )
typedef uint16_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffff
#else
typedef uint32_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
加上第一条#include就好了 |
|