This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR2944P: undeclared identifier 'CAN_UNINIT' and 'CAN_READY'

Part Number: AWR2944P

Tool/software:

MCAL_REL_02.02.05.00

While integrating Can module, below compilation error is occured

Error:

use of undeclared identifier 'CAN_READY'
794 | gCan_DriverObj.canDriverState = CAN_READY;
| ^
C:/work/ACP-8.8.11_AM263PX_clang-4.0.0_LTS/Tresos/plugins/McalExt_TS_T31DxM1I0R0/MCAL_Delivery/mcal-02_02_05_00/mcal/Can/src/Can.c:1689:41: error:
use of undeclared identifier 'CAN_UNINIT'; did you mean 'CAN_CS_UNINIT'?
1689 | gCan_DriverObj.canDriverState = CAN_UNINIT;

Reason:   the identifier CAN_UNINIT and CAN_READY is not declared or defined anywhere in your code.

Workaround: values are defined in Can_Priv.h something like this 


typedef enum
{
CAN_UNINIT, /**< CAN Driver UNINIT state .
**/
CAN_READY, /**< CAN Driver READY state.
**/
}
Can_DriverStateType;

Can you please check why it was not defined.

BR,

Prashant Singh Tomar