Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

camera: try to defer init of video objects#195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
KurtE wants to merge1 commit intoarduino:main
base:main
Choose a base branch
Loading
fromKurtE:defer_camera_start

Conversation

@KurtE
Copy link

This change, removes the automatic starting of the PWM clock on the GIGA, at startup. Instead it starts the clock if/when the sketch calls the Camera::begin method.

But to make this work, we also need to not start up the video objects, until after the MCLK has been started. We can do that with marking them as zephyr,deferred-init

This is to me a better solution to adding Portenta H7 than#184 as again this
only starts up (uses) the video resources IF you actually use them in your sketch.

Some of this is discussed in the Arduino discussion:zephyrproject-rtos/zephyr#93058 (reply in thread)

@mjs513
Copy link

@KurtE

Just incorporated this change inorder to test with the changes I am making to the ov7670.75 zephyr driver (see the pr) and it seems to working no issues so far.

I think I personally prefer doing it this way for a couple of reasons. Primary of which is that if there are any errors in the init function you have a better chance of seeing them when using the core vs having to keep compiling and testing directly in zephyr and then retest with the IDE. the other reason as you said is that you are only starting the camera if you are actually using the camera.

Fingers crossed that this change gets incorporated.

This change, removes the automatic starting of the PWM clock on theGIGA, at startup.  Instead it starts the clock if/when the sketch callsthe Camera::begin method.But to make this work, we also need to not start up the video objects, untilafter the MCLK has been started.  We can do that with marking themas zephyr,deferred-init
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@KurtE@mjs513

[8]ページ先頭

©2009-2025 Movatter.jp