Doing some work inside callbacks for bleprofile_regAppEvtHandler()

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WaSu_1697556
Level 3
Level 3
First like received First like given

My question loosely related to the below post.

Re: BCM20736S HIDOFF problem

In the above post the questioner was advised to register NOP callbacks to bleprofile_regAppEvtHandler() in order to properly retain the GPIO state.

Is the NOP part of the workaround or is it OK to do whatever the process necessary?


void application_create(void)

{

...... all other initialization here....

    bleprofile_regAppEvtHandler(BLECM_APP_EVT_ENTERING_HIDOFF,(BLECM_NO_PARAM_FUNC)app_enter_hidoff);

    bleprofile_regAppEvtHandler(BLECM_APP_EVT_ABORTING_HIDOFF,(BLECM_NO_PARAM_FUNC)app_abort_hidoff);

}

void app_enter_hidoff(void) { /* Do nothing */ }

void app_abort_hidoff(void) { /* Do nothing */ }

0 Likes
1 Solution
Anonymous
Not applicable

Hello Wataru,

Yes, you are allowed to do whatever process is necessary.

Thanks,

JT

View solution in original post

0 Likes
2 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

We will look into this with the developers.

0 Likes
Anonymous
Not applicable

Hello Wataru,

Yes, you are allowed to do whatever process is necessary.

Thanks,

JT

0 Likes