autosar - Parse error in C code (.h file) -
i trying integrate c code. while building stack parse error files, have included .h file
#if( fls_cancel_api == std_on ) // parse error appears here extern func( void, fls_code ) fls_cancel( void ); #endif /* fls_cancel_api == std_on */ #if( fls_get_status_api == std_on ) // , here extern func( memif_statustype, fls_code ) fls_getstatus( void ); #endif /* fls_get_status_api == std_on */
edit
macros defined in header file
#define fls_cancel_api [!if "flsgeneral/flscancelapi"!](std_on)[!else!](std_off)[!endif!]
and
#define std_on 0x01
this code drivers written according autosar standard, in automotive industry. header file has:
#define fls_cancel_api [!if "flsgeneral/flscancelapi"!](std_on)[!else!](std_off)[!endif!]
is in fact not header file, it's template of header file. tool takes autosar ecu description , templates produce actual code. think file template fls_cfg.h
, , actual fls_cfg.h
generated template. i'm not entirely sure based on template think it's intended eb tresos studio tool.
so need use tool, or if have no tools, need explain in more detail you're trying , why.
Comments
Post a Comment