This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_button_init

It seems that in SDK9 the APP_BUTTON_INIT() macro has disappeared, and with it the extra argument that determines whether the scheduler is used or not. However, the documentation still clearly refers to both the macro and the USE_SCHEDULER argument. Can anyone help me to understand this?

Parents
  • That is because the example\bsp\bsp.c file has changed in SDK 8.0 to not using that MACRO and all the examples uses bsp.c file.

    Also if you want to postpone your button handler execution using the scheduler, you can do that even from the handler called by app_button library. Scheduler is seperate module you can use as per your application requirements, that is probably what the SDK team tried to do. Remove the dependency.

Reply
  • That is because the example\bsp\bsp.c file has changed in SDK 8.0 to not using that MACRO and all the examples uses bsp.c file.

    Also if you want to postpone your button handler execution using the scheduler, you can do that even from the handler called by app_button library. Scheduler is seperate module you can use as per your application requirements, that is probably what the SDK team tried to do. Remove the dependency.

Children
Related