Add copy to Level enum in embassy-rp gpio module
This commit is contained in:
parent
1626a4a74b
commit
dfc58ad3a2
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const NEW_AW: AtomicWaker = AtomicWaker::new();
|
||||||
static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT];
|
static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT];
|
||||||
|
|
||||||
/// Represents a digital input or output level.
|
/// Represents a digital input or output level.
|
||||||
#[derive(Debug, Eq, PartialEq, Clone)]
|
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
|
||||||
pub enum Level {
|
pub enum Level {
|
||||||
Low,
|
Low,
|
||||||
High,
|
High,
|
||||||
|
|
Loading…
Reference in a new issue