Repository navigation
HPM: pins and clocks come from the project; HPMI2C and HPMPWM call no board functions - #25
Merged
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the Chinese and English HPM setup guides to reflect project-owned pin/clock initialization, direct SDK-only HPM driver behavior, the current I2C/PWM constructors, the Sequence diagram for project-owned HPM peripheral initializationsequenceDiagram
participant Project
participant HPM_SDK as HPM SDK
participant HPMI2C
participant HPMPWM
Project->>HPM_SDK: pin and clock functions
Project->>HPMI2C: HPMI2C(HPM_I2C3, clock_i2c3, {100000})
Project->>HPMPWM: HPMPWM(HPM_PWM0, clock_mot0, 0, 0, Polarity::NORMAL)
HPMI2C->>HPM_SDK: SDK driver calls
HPMPWM->>HPM_SDK: SDK driver calls
Flow diagram for HPM I2C prerequisites and bus recoveryflowchart LR
A[Project enables CONFIG_DMA_MGR] --> B[Project configures pins and clocks]
B --> C[Create HPMI2C]
C --> D[Use I2C controller reset signal]
D --> E[9 SCL pulses for bus recovery]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows xrobot-org/libxr#332. The HPM page (zh and en) says that the project sets up pins and clocks before creating LibXR objects and that the drivers call no
board.cfunctions, shows the newHPMI2C/HPMPWMconstructors, and replaces the I2C notes on DMA/board helpers with thedma_mgrrequirement and the controller-based bus recovery. Merge after libxr#332.Summary by Sourcery
Document project-owned HPM peripheral setup and update the HPM I2C integration requirements.
Enhancements:
dma_mgrrequirement for HPM I2C and the controller-based bus recovery behavior.Documentation: