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

Using app_sdcard & fatfs with FreeRTOS

Hello everyone!

I want to use the app_sdcard to read/write with fatfs on a uSD card in my app which is based on FreeRTOS. While i was implementing this library, i saw that it use the protothread library.

Can i use protothread along with FreeRTOS? Is there another way around? 

Thank you!

Parents Reply
  • I think the MOSI pin is configured using nrf_gpio_cfg_output() which set the following configuration

    __STATIC_INLINE void nrf_gpio_cfg_output(uint32_t pin_number)
    {
        nrf_gpio_cfg(
            pin_number,
            NRF_GPIO_PIN_DIR_OUTPUT,
            NRF_GPIO_PIN_INPUT_DISCONNECT,
            NRF_GPIO_PIN_NOPULL,
            NRF_GPIO_PIN_S0S1,
            NRF_GPIO_PIN_NOSENSE);
    }
    

    You can replace the nrf_gpio_cfg_output() function with nrf_gpio_cfg() to set a higher drive, pull config etc..

Children
No Data
Related