{"id":24091825,"url":"https://github.com/RT-Thread-packages/stm32_sdio","last_synced_at":"2025-09-17T01:32:20.384Z","repository":{"id":89836471,"uuid":"146534302","full_name":"RT-Thread-packages/stm32_sdio","owner":"RT-Thread-packages","description":"STM32 SDIO peripheral universal driver library","archived":false,"fork":false,"pushed_at":"2024-02-04T03:43:57.000Z","size":35,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-02-04T04:28:01.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RT-Thread-packages.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-29T02:33:09.000Z","updated_at":"2024-02-04T03:44:01.000Z","dependencies_parsed_at":"2024-03-10T04:00:26.669Z","dependency_job_id":null,"html_url":"https://github.com/RT-Thread-packages/stm32_sdio","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fstm32_sdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fstm32_sdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fstm32_sdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread-packages%2Fstm32_sdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RT-Thread-packages","download_url":"https://codeload.github.com/RT-Thread-packages/stm32_sdio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233312726,"owners_count":18657094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-10T07:44:44.054Z","updated_at":"2025-09-17T01:32:14.950Z","avatar_url":"https://github.com/RT-Thread-packages.png","language":"C","funding_links":[],"categories":["Packages"],"sub_categories":["Peripherals"],"readme":"# STM32 SDIO驱动简介\n\n这是一个STM32平台 SDIO控制器驱动包\n\n## 支持平台\n\n- STM32L475\n\n- STM32L476\n\n\u003e 其他STM32平台理论上也能支持，目前未作验证\n\n## 下载方法\n\n请使用 ENV 工具辅助下载：\n\n包的路径为：`RT-Thread online packages` -\u003e `peripheral libraries and drivers` -\u003e `STM32 SDIO device`\n\n## 选项介绍\n\n- `SDIO buff size` : 指定缓存BUFF大小，默认值为:4KB\n- `SDIO max freq`  : 输出的最大时钟速率，默认值为:24Mhz\n- `SDIO allgn`     : 指定缓存BUFF对齐长度，默认值为:32\n- `SDIO use 1 bit` : 是否使用1bit通信，默认值：不使用\n\n## 使用介绍\n\n- 1.需要用户自己配置IO，SDIO时钟，DMA等外设。\n\n- 2.需要用户调用 `sdio_host_create` 函数创建一个SDIO驱动, 传递一个结构体指针 `struct stm32_sdio_des`。该结构体内容包括：SDIO外设地址，DMA发送配置（发送数据调用），DMA接收配置（接收数据调用）,获得SDIO控制器时钟。\n\n- 3.需要用户在SDIO中断中调用 `rthw_sdio_irq_process` 函数，该函数需要传递参数 `struct rt_mmcsd_host *` , 该参数可通过 `sdio_host_create` 获得。\n\n## 其他\n\n- 当上层传递的buff大小超过`SDIO buff size`大小，会触发断言\n\n- 目前不支持CPU轮询发送\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fstm32_sdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRT-Thread-packages%2Fstm32_sdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread-packages%2Fstm32_sdio/lists"}