Skip to content

Commit

Permalink
fix(usb): make visibility of usb structs
Browse files Browse the repository at this point in the history
Signed-off-by: HaoboGu <[email protected]>
  • Loading branch information
HaoboGu committed Jul 18, 2024
1 parent 5bd8c45 commit 67cc2f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/usb/control_pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use super::endpoint::Endpoint;
use super::Instance;
use crate::usb::{init_qhd, EpConfig, DCD_DATA};

pub(crate) struct ControlPipe<'d, T: Instance> {
pub struct ControlPipe<'d, T: Instance> {
pub(crate) phantom: PhantomData<&'d mut T>,
pub(crate) max_packet_size: usize,
pub(crate) ep_in: Endpoint,
Expand Down
4 changes: 2 additions & 2 deletions src/usb/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use hpm_metapac::usb::regs::Endptprime;

use super::{Error, Info, QueueTransferDescriptor, DCD_DATA, QTD_COUNT_EACH_ENDPOINT};

// #[derive(Copy, Clone)]
pub(crate) struct Endpoint {
#[derive(Copy, Clone)]
pub struct Endpoint {
pub(crate) info: EndpointInfo,
pub(crate) usb_info: &'static Info,
}
Expand Down
2 changes: 1 addition & 1 deletion src/usb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub(crate) struct CapabilityAndCharacteristics {
}
#[derive(Clone, Copy, Default)]
#[repr(C, align(32))]
struct QueueTransferDescriptor {
pub(crate) struct QueueTransferDescriptor {
// Next point
next: u32,

Expand Down

0 comments on commit 67cc2f8

Please sign in to comment.