RT-Thread / RT-Thread/rt-thread
[Feature] adc设备驱动优化
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
现在的adc驱动无法使用 常见的adc+dma方式读取数据 是否可以考虑用类似如下的结构体来支持多通道采样呢
struct adc_sequence {
uint32_t channels; /* 通道掩码,可同时启用多个通道 */
int16_t *buffer; /* 存储转换结果的缓冲区 */
uint32_t buffer_size; /* 缓冲区大小 */
uint8_t resolution; /* 分辨率 */
uint8_t oversampling;
};
Describe your preferred solution
No response
Describe possible alternatives
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or driver entry point is named. Start by locating the current ADC driver interface and any existing DMA paths, then compare them with the proposed adc_sequence fields. Done requires an agreed design and support for multi-channel ADC sampling through DMA.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100