KSDK 1.1, C++ compiler error with CLOCK_SYS_Init()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KSDK 1.1, C++ compiler error with CLOCK_SYS_Init()

634 Views
giacomopetrini
Contributor IV

Ok, I'm updating my project with KSDK 1.1, so imported the new ksdk_platform_lib in the workspace, compiled it, changed the include path of my project to use $KSDK_PATH\platform\etc. (under win eh).

Started compiling, patching what wrong (ie: adc now is adc16, etc.)

I got this error with the C++ compiler.

C:\Freescale\KSDK_1.1.0/platform/system/inc/fsl_clock_manager.h:480:54: error: parameter 'callbacksPtr' includes pointer to array of unknown bound 'clock_manager_callback_user_config_t* [] {aka ClockManagerCallbackUserConfig* []}'

                               uint8_t callbacksNumber);

the function declaration (in fsl_clock_manger.h) is:

clock_manager_error_code_t CLOCK_SYS_Init(clock_manager_user_config_t const *clockConfigsPtr,

                              uint8_t configsNumber,

                              clock_manager_callback_user_config_t *(*callbacksPtr)[],

                              uint8_t callbacksNumber);

Any ideas?

Regards

Giacomo

0 Kudos
1 Reply

342 Views
giacomopetrini
Contributor IV

Ok, deleted the #include "fsl_clock_manager.h" since it was not needed and now the C++ compiler doesn't complain anymore :smileysilly:


0 Kudos