您好,
我有一个包含许多错误的代码。
说明 资源 路径 位置 类型
#131预期会出现"{" srv_tick.h /boot_Bateau_TI/Sources/SRV line 21 C/C++问题
#20 identifier "delay_active" is undefined srv_tick.h /boot_Bateau_TI/sources/SRV line 24 C/C++ problem
#20 identifier "delay_not active" is undefined srv_tick.h /boot_Bateau_TI/sources/SRV line 23 C/C++ problem
#20 identifier "Total_Delay_status_ID"未定义 srv_tick.h /boot_Bateau_TI/Sources/SRV line 25 C/C++ problem
#29预期表达式 srv_tick.h /boot_Bateau_TI/sources/SRV 行26 C/C++问题
#66预期会出现“;” srv_tick.h /boot_Bateau_TI/sources/SRV 行26 C/C++问题
问题是从typedef声明的开始到结束,如果我评论这几句话,问题就会出现在另一个typedef上。
/**
*@文件srv_tick.h
*@tick服务的简短标题文件
*@作者L.MICOU
*@日期:1/22
*/
#ifndef _SRV_tick_H_
#define _SRV_tick_H_
包括"tm4c1230e6p.h"
#include <stdint.h>
/*宏______________________________________________________________ */
#define U8_delay_not _active ((((uint8_t)0U)
#define U8_day_active (((uint8_t) 1U)
#define U8_delay_in_progress (((uint8_t)2u)
#define U8_delay_end ((uint8_t) 3u)
#define U8_day_error_ID ((uint8_t)4U)
/*常量______________________________________________________________ */
/*类型____________________________________________ */
typedef枚举
{
DELAY非活动,
Delay_active,
Total_Delay_status_ID/*请勿更改Total_Delay_ID */的位置
} eDelayStatus_t;