2 Replies Latest reply on Oct 28, 2015 11:35 AM by jota_1939431

    Doing some work inside callbacks for bleprofile_regAppEvtHandler()

    WaSu_1697556

      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 */ }