Hello,
I have a code with many error.
Description Resource Path Location Type
#131 expected a "{" srv_tick.h /BOOT_BATEAU_TI/Sources/Srv line 21 C/C++ Problem
#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" is undefined srv_tick.h /BOOT_BATEAU_TI/Sources/Srv line 25 C/C++ Problem
#29 expected an expression srv_tick.h /BOOT_BATEAU_TI/Sources/Srv line 26 C/C++ Problem
#66 expected a ";" srv_tick.h /BOOT_BATEAU_TI/Sources/Srv line 26 C/C++ Problem
the problems are from the beginning to the end of the typedef declaration. if I put in comment these lines, the problems come on another typedef.
/**
* @file srv_tick.h
* @brief Header file of the tick service
* @author L.MICOU
* @date 1/04/22
*/
#ifndef _SRV_TICK_H_
#define _SRV_TICK_H_
#include "tm4c1230e6pm.h"
#include <stdint.h>
/* macros ___________________________________________________________________ */
#define U8_DELAY_NOT_ACTIVE ((uint8_t)0u)
#define U8_DELAY_ACTIVE ((uint8_t)1u)
#define U8_DELAY_IN_PROGRESS ((uint8_t)2u)
#define U8_DELAY_END ((uint8_t)3u)
#define U8_DELAY_ERROR_ID ((uint8_t)4u)
/* constants ________________________________________________________________ */
/* types ____________________________________________________________________ */
typedef enum
{
DELAY_NOT_ACTIVE,
DELAY_ACTIVE,
TOTAL_DELAY_STATUS_ID/* DON'T CHANGE THE PLACE OF TOTAL_DELAY_ID */
}eDelayStatus_t;