Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions embedded-service/src/type_c/comms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

use embedded_usb_pd::GlobalPortId;

/// Message generated when a debug acessory is connected or disconnected
#[derive(Copy, Clone, Debug)]
/// Message generated when a debug accessory is connected or disconnected
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct DebugAccessoryMessage {
/// Port
Expand All @@ -13,7 +13,7 @@ pub struct DebugAccessoryMessage {
}

/// UCSI connector change message
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct UsciChangeIndicator {
/// Port
Expand All @@ -23,7 +23,7 @@ pub struct UsciChangeIndicator {
}

/// Top-level comms message
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum CommsMessage {
/// Debug accessory message
Expand Down
2 changes: 1 addition & 1 deletion embedded-service/src/type_c/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub enum Command {
}

/// UCSI command response
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct UcsiResponse {
/// Notify the OPM, the function call
Expand Down
4 changes: 0 additions & 4 deletions examples/std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ path = "src/bin/type_c/service.rs"
name = "type-c-unconstrained"
path = "src/bin/type_c/unconstrained.rs"

[[bin]]
name = "type-c-ucsi"
path = "src/bin/type_c/ucsi.rs"

# Needed otherwise cargo will pull from git
[patch."https://github.com/OpenDevicePartnership/embedded-services"]
embedded-services = { path = "../../embedded-service" }
261 changes: 0 additions & 261 deletions examples/std/src/bin/type_c/ucsi.rs

This file was deleted.

1 change: 1 addition & 0 deletions type-c-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ log = [
"embassy-time/log",
"embassy-sync/log",
"tps6699x/log",
"power-policy-service/log",
]
2 changes: 1 addition & 1 deletion type-c-service/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use paste::paste;
use static_cell::StaticCell;

pub mod mock;
pub const DEFAULT_TEST_DURATION: Duration = Duration::from_secs(5);
pub const DEFAULT_TEST_DURATION: Duration = Duration::from_secs(15);
Comment thread
RobertZ2011 marked this conversation as resolved.

pub const DEFAULT_PER_CALL_TIMEOUT: Duration = Duration::from_secs(1);

Expand Down
Loading
Loading