i want to enable
void (*cb)(void); this line
#endif
this code
how to enable it like second img in segger embedded studio?
i want to enable
void (*cb)(void); this line
#endif
this code
how to enable it like second img in segger embedded studio?
Hi
What do you mean by enabling that line?
This function pointer can be used to register a callback that will be called when the sensor has data ready to be processed.
In the Thingy code it is connected to the static void mpulib_data_handler(void * p_event_data, uint16_t event_size) function on line 322 of drv_motion.c.
Best regards
Torbjørn
Hi!
I mean when i build this project i got this error " 'struct int_param_s' has no member named 'cb' ".
So i was thought i have to enable 'void (*cb)(void); #endif' this line code like second image.
Hi
You need to define one of the EMPL_TARGET_xxx defines, such as EMPL_TARGET_UC3L0 or EMPL_TARGET_NRF52.
Can you confirm whether or not you have done this?
Best regards
Torbjørn
Thank you for your great answer! I didn't define about EMPL_TARGET_NRF52 and problem is solved!
I am happy to help. Glad to hear you found the problem