RT-Thread / RT-Thread/rt-thread

spi driver issue: rt_hw_spi_device_attach function

Open
#5,287 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

rt_hw_spi_device_attach()
This function is defined differently in different BSP
  • For example,
  1. STM32: rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char device_name, GPIO_TypeDef cs_gpiox, uint16_t cs_gpio_pin);
  2. imxrt: rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint32_t pin);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating rt_hw_spi_device_attach in the STM32 and imxrt BSPs and comparing their callers. Clarify the intended common signature and scope before changing anything; done means the API decision is applied consistently across the affected BSPs and their relevant builds or tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.