Skip to content

Descriptive error codes and refactor of SD Card driver #7

@atwardzik

Description

@atwardzik

Task description

Current SD card driver is a quick rollout for setting up communication with SD card. The init_sd_card is long and does not return descriptive error codes. Read and write functions may loop forever waiting for correct response from an SD card.

Goal

Refactor SD card driver by reducing cognitive complexity of init_sd_card. Add descriptive error codes upon return. Add timeout for transactions on SD card.

Related Files

  • src/drivers/sd_card.c

Additional Resources

A good tutorial for SD card drivers can be found here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions