apache / apache/nuttx

[HELP] How to support sleep in microsecond?

Open
#19,908 1 comment 0 reactions 0 assignees View on GitHub
Community: Question
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description

Currently, I configured my Nuttx with 1000Hz as scheduler tick.
The SOC has a clock running at 10MHz, so I am wondering how to support sleep in micro-second in this SOC: shall I enable HRTimer in Nuttx, shall I provide lower-level HRTimer driver support?

### Verification

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

Contributor guide

Open the contributing guide

Research direction

Start by reading NuttX's scheduler tick and HRTimer support, then examine how microsecond sleep would interact with the 1000Hz configuration and the SoC's 10MHz clock. Confirm whether existing HRTimer support is sufficient or whether lower-level driver work is required; done means a documented, concrete implementation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.