mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
It's "derive" all the way down
This commit is contained in:
parent
aec887fe0a
commit
759ea1deb9
@ -23,6 +23,7 @@ impl Into<u8> for OspiMode {
|
|||||||
/// Ospi lane width
|
/// Ospi lane width
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum OspiWidth {
|
pub enum OspiWidth {
|
||||||
/// None
|
/// None
|
||||||
NONE,
|
NONE,
|
||||||
@ -71,6 +72,7 @@ impl Into<bool> for FlashSelection {
|
|||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum WrapSize {
|
pub enum WrapSize {
|
||||||
None,
|
None,
|
||||||
_16Bytes,
|
_16Bytes,
|
||||||
@ -95,6 +97,7 @@ impl Into<u8> for WrapSize {
|
|||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum MemoryType {
|
pub enum MemoryType {
|
||||||
Micron,
|
Micron,
|
||||||
Macronix,
|
Macronix,
|
||||||
@ -120,6 +123,7 @@ impl Into<u8> for MemoryType {
|
|||||||
/// Ospi memory size.
|
/// Ospi memory size.
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum MemorySize {
|
pub enum MemorySize {
|
||||||
_1KiB,
|
_1KiB,
|
||||||
_2KiB,
|
_2KiB,
|
||||||
@ -180,6 +184,7 @@ impl Into<u8> for MemorySize {
|
|||||||
|
|
||||||
/// Ospi Address size
|
/// Ospi Address size
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum AddressSize {
|
pub enum AddressSize {
|
||||||
/// 8-bit address
|
/// 8-bit address
|
||||||
_8Bit,
|
_8Bit,
|
||||||
@ -205,6 +210,7 @@ impl Into<u8> for AddressSize {
|
|||||||
/// Time the Chip Select line stays high.
|
/// Time the Chip Select line stays high.
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum ChipSelectHighTime {
|
pub enum ChipSelectHighTime {
|
||||||
_1Cycle,
|
_1Cycle,
|
||||||
_2Cycle,
|
_2Cycle,
|
||||||
@ -234,6 +240,7 @@ impl Into<u8> for ChipSelectHighTime {
|
|||||||
/// FIFO threshold.
|
/// FIFO threshold.
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum FIFOThresholdLevel {
|
pub enum FIFOThresholdLevel {
|
||||||
_1Bytes,
|
_1Bytes,
|
||||||
_2Bytes,
|
_2Bytes,
|
||||||
@ -311,6 +318,7 @@ impl Into<u8> for FIFOThresholdLevel {
|
|||||||
/// Dummy cycle count
|
/// Dummy cycle count
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum DummyCycles {
|
pub enum DummyCycles {
|
||||||
_0,
|
_0,
|
||||||
_1,
|
_1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user