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

PWM options when using FreeRTOS and SoftDevice

Hi,

I'm developing a BLE application that is also using FreeRTOS.

I also need to use PWM to control an LED (mainly because the requirements define LED patterns, which is best accomplished using PWM; otherwise I would just use the FreeRTOS timer).

I can see 3 PWM libraries:

  • PWM driver
  • Low power PWM
  • Softblink library

Which one of these is best to use with a FreeRTOS + SoftDevice application?

Thanks

Tim

Parents
  • Hi Adu,

    Softblink is a simple library mainly used for LED softblink application and it internally uses low power PWM. 

    APP PWM uses PPI/GPIOTE and few other resources to abstract more functionality to the app.

    For your use case using low power pwm seems to fit fine even though you are using FreeRTOS. Just remember that you need to include app_timer_freertos.c instead of app_timer.c in your  project as low power pwm library uses app_timer.

Reply
  • Hi Adu,

    Softblink is a simple library mainly used for LED softblink application and it internally uses low power PWM. 

    APP PWM uses PPI/GPIOTE and few other resources to abstract more functionality to the app.

    For your use case using low power pwm seems to fit fine even though you are using FreeRTOS. Just remember that you need to include app_timer_freertos.c instead of app_timer.c in your  project as low power pwm library uses app_timer.

Children
Related