apache / apache/nuttx

[BUG] STM32H7 timer capture driver does not have edge IOC operation

Open
#16,828 0 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: Drivers OS: Linux Type: Bug
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

To reproduce, enable CONFIG_CAPTURE and try to send CAPIOC_EDGES ioc instruction to the capture driver. This will lead to a panic because of drivers/timers/capture.c:344 :
```c
DEBUGASSERT(lower[i]->ops->getedges != NULL);
```

Users who try to run the examples/capture app will run into this issue.

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

WSL2

### NuttX Version

master

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Drivers]

### Host information

_No response_

### Verification

- [x] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.