-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add library for reset interface #2629
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
will-v-pi
wants to merge
13
commits into
raspberrypi:develop
Choose a base branch
from
will-v-pi:reset-lib
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e7b430d
Allow use of reset interface with custom descriptors
will-v-pi e14bb98
Fix pico_config assertion error
will-v-pi 0223656
Create separate library for reset interface
will-v-pi f901baf
Move pico_usb_reset_interface library into separate folder
will-v-pi d50659c
Fix bazel build
will-v-pi 36ae2eb
Move ms_os_20_desc into header
will-v-pi 0410fa6
CFG_TUD_VENDOR isn't actually used
will-v-pi c5615f1
Add documentation to usb_reset_interface.h
will-v-pi af13646
Change #if PICO_ON_DEVICE -> #if LIB_PICO_USB_RESET_INTERFACE
will-v-pi 7c3274f
Rename publically accessible functions
will-v-pi e3c11e1
Move LIB_PICO_USB_RESET_INTERFACE only headers into separate files
will-v-pi ff769aa
Make new usb_reset_interface_device header so old usb_reset_interface…
will-v-pi 34d0660
Review fixups
will-v-pi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# don't use pico_add_library here as picotool includes it directly | ||
add_library(pico_usb_reset_interface_headers INTERFACE) | ||
add_library(pico_usb_reset_interface INTERFACE) | ||
target_link_libraries(pico_usb_reset_interface INTERFACE pico_usb_reset_interface_headers) | ||
|
||
target_include_directories(pico_usb_reset_interface_headers SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include) |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
load("//bazel:defs.bzl", "compatible_with_config", "compatible_with_rp2", "incompatible_with_config") | ||
load("//bazel/util:sdk_define.bzl", "pico_sdk_define") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "pico_usb_reset_interface", | ||
srcs = [ | ||
"usb_reset_interface.c", | ||
], | ||
defines = [ | ||
"LIB_PICO_USB_RESET_INTERFACE=1", | ||
], | ||
target_compatible_with = compatible_with_rp2(), | ||
deps = [ | ||
"//src/common/pico_usb_reset_interface_headers", | ||
"//bazel/config:PICO_TINYUSB_LIB", | ||
"//src/rp2_common/hardware_watchdog", | ||
"//src/rp2_common/pico_bootrom", | ||
], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if (TARGET tinyusb_device_unmarked) | ||
pico_add_impl_library(pico_usb_reset_interface) | ||
|
||
target_sources(pico_usb_reset_interface INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/usb_reset_interface.c | ||
) | ||
|
||
target_link_libraries(pico_usb_reset_interface INTERFACE | ||
tinyusb_device_unmarked | ||
) | ||
endif() |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.