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

NRF5 V15.0 SAADC peripheral example

I have modified the ble_app_hids_keyboard_pca10040_s132 example to enumerate as a Gamepad and Modified the GPIO so the buttons send a USB report.

I am now trying to integrate the SAADC example from /peripherals but it seems to use the new type of timer driver NRFX where as the keyboard example uses the old nrf_drv.

Am I correct in saying this?

can the two be used along side each other?

or how do I migrate this example?

or is there a better example to use that would be compatible with soft devices and the old nrf_drv?

or is there a better HIDs example that uses the new NRFX timer driver?

Parents
  • The HID examples in SDK15.x should have been using NRFX drivers. 
    You can use both drivers as long as you use different timer instances, i.e TIMER1 and TIMER2. 

    You need to include the NRFX driver source and headers in nRF5_SDK_15.2\modules\nrfx\drivers\src and \include.

    There's not a "better" HID example, the ble_app_hids_keyboard in SDK15.2 uses the NRFX layer. 

    The NRFX layer is mostly just a wrapper layer, some drivers have been changed, but the majority are just wrappers. You use them by enabling both the NRFX and legacy drivers in sdk_config.h

Reply
  • The HID examples in SDK15.x should have been using NRFX drivers. 
    You can use both drivers as long as you use different timer instances, i.e TIMER1 and TIMER2. 

    You need to include the NRFX driver source and headers in nRF5_SDK_15.2\modules\nrfx\drivers\src and \include.

    There's not a "better" HID example, the ble_app_hids_keyboard in SDK15.2 uses the NRFX layer. 

    The NRFX layer is mostly just a wrapper layer, some drivers have been changed, but the majority are just wrappers. You use them by enabling both the NRFX and legacy drivers in sdk_config.h

Children
Related