Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
a3a3ef1
Add self-testing mode for `TWAI` peripheral. (#1929)
playfulFence Aug 12, 2024
23f76b0
DMA: Don't require implementors of Read/WriteBuffer to be Sealed (#1921)
liebman Aug 13, 2024
64a7d49
Reset peripherals on driver construction (where missing) (#1893)
JurajSadel Aug 13, 2024
a6e1406
Deny missing docs at the package level, adding exceptions for relevan…
jessebraham Aug 13, 2024
352879a
Fix an infinite loop in interrupt executors (#1936)
bugadani Aug 13, 2024
c53ba38
Fix `i2c` + get rid of unused constants/enums (#1940)
playfulFence Aug 13, 2024
6b6e628
Slightly clean up embassy HIL tests (#1937)
bugadani Aug 13, 2024
1173aac
Implemented queue_msg_waiting. (#1925)
Frostie314159 Aug 14, 2024
c83d1de
Update to latest release (`0.6.0`) for `embassy-executor` in `esp-emb…
Sycrosity Aug 14, 2024
945f8b3
ESP32C6: Make `ADC` usable after `TRNG` deinitialization (#1945)
playfulFence Aug 14, 2024
460eaa2
Adding `TWAI` HIL test (#1946)
playfulFence Aug 14, 2024
9e87792
Update probe-rs, prebuild xtask for HIL tests (#1939)
bugadani Aug 14, 2024
f1ec4a2
Removing raw addresses manipulations - part 3 (#1892)
playfulFence Aug 14, 2024
361a6c5
make contribution docs more visible (#1947)
MabezDev Aug 15, 2024
a10f86d
Clean up i2s_async test, add option to repeat (#1951)
bugadani Aug 15, 2024
6127f5d
Further clean up timers/executors test (#1953)
bugadani Aug 16, 2024
f6e69b0
Fix GPIO Touch pin I/O (#1956)
ProfFan Aug 16, 2024
eb1b295
Do not reset `UsbSerialJtag` peripheral (#1961)
bugadani Aug 16, 2024
6e706c5
Improve SYSTIMER API (#1871)
Dominaezzz Aug 16, 2024
f95ab0d
Simplify initialization APIs (#1957)
bugadani Aug 16, 2024
59728c5
Some xtask/metadata cleanups (#1965)
bugadani Aug 19, 2024
d1acacb
Implement Sniffer API (#1935)
Frostie314159 Aug 19, 2024
e708dbc
Add more SPI DMA (full-duplex) HIL tests (blocking and async) (#1952)
JurajSadel Aug 19, 2024
42bbdae
Add basic HIL test for GPIO that can be configured as pin for (#1963)
JurajSadel Aug 19, 2024
6a38053
Patch typo in debug assist register name and used patched esp-pacs (#…
JurajSadel Aug 19, 2024
ec13087
Disable RTT polling in HIL tests by default (#1960)
bugadani Aug 19, 2024
70491b9
Refactor SHA to use trait. Implement Digest traits for SHA (#1908)
AnthonyGrondin Aug 19, 2024
05582d3
Fix 1GB elfs (#1962)
bugadani Aug 19, 2024
41f9925
[3/3] DMA Move API: Introduce DMA buffer objects (#1856)
Dominaezzz Aug 20, 2024
686037b
Run HIL tests as part of PR checks (#1959)
bugadani Aug 20, 2024
a33ebe1
Remove `free(self)` in HMAC which goes against esp-hal API guidelines…
MabezDev Aug 20, 2024
7dfaca4
correct changelog sections (#1974)
MabezDev Aug 21, 2024
dc6c53e
Remove redundant WithDmaSpi traits (#1975)
Dominaezzz Aug 21, 2024
69cf454
Fix S2 systimers (#1979)
bugadani Aug 21, 2024
f829c8f
Fix C2 delays (#1981)
bugadani Aug 21, 2024
19db509
Get rid of `missing docs` in a number of modules (#1967)
playfulFence Aug 23, 2024
d610ee8
Add tests to ensure that we don't reset current_time drivers (#1978)
MabezDev Aug 23, 2024
0e333f7
tell cargo about all our custom cfgs (#1988)
MabezDev Aug 23, 2024
b4ccb35
HIL: Multiple featuresets & conditionally enable generic-queue featur…
bugadani Aug 26, 2024
5f0dc14
parl_io: use ReadBuffer/WriteBuffer for async DMA (#1996)
liebman Aug 26, 2024
341db16
Use uhubctl to disable and enable usb ports (#1997)
bugadani Aug 26, 2024
d0f98b6
Remove files after test (#1993)
bugadani Aug 26, 2024
e169731
Refactor SPI tests & re-enable S3 and some S2 (#1990)
bugadani Aug 26, 2024
a41bc4c
gpio: Make AnyPin, AnyInputOnlyPin, DummyPin available from gpio modu…
plaes Aug 26, 2024
1003ce0
Clean up SHA, RSA, mandate `#[must_use]` on Futures (#2000)
bugadani Aug 27, 2024
8aa1a88
Prefer `cfg_if` (#2003)
bugadani Aug 27, 2024
65c5dc1
SPI DMA: use `State` for both blocking and async operations (#1985)
MabezDev Aug 27, 2024
5dcde78
Re-add feature gate for software_interrupt3 (#2011)
bugadani Aug 27, 2024
fbee4e5
Fix (#2013)
bjoernQ Aug 28, 2024
c7a7760
Implement timer conversion for some arrays (#2012)
bugadani Aug 28, 2024
6abbc72
Test and fix async RSA (#2002)
bugadani Aug 28, 2024
16abd3d
Only reserve the interrupt when executors are needed (#2014)
bugadani Aug 28, 2024
61bb240
forward spi methods to SpiDmaBus (#2016)
MabezDev Aug 28, 2024
84a0600
Fix defmt compatibility (#2017)
bugadani Aug 28, 2024
6fb636b
Remove unneeded logs (#2022)
MabezDev Aug 28, 2024
99c238d
HIL: Don't skip cleanup (#2024)
bugadani Aug 28, 2024
bac6bfd
Use newly published versions of all PACs in `esp-hal` (#2025)
jessebraham Aug 29, 2024
5917275
Version 0.20.0 (#2038)
jessebraham Aug 29, 2024
28b5cd0
Fix before_snippet failing in release (#2040)
bugadani Aug 30, 2024
aacc001
Prepare v0.20.1 release (#2046)
MabezDev Aug 30, 2024
897c92e
Try to be more helpful (#2044)
bugadani Aug 30, 2024
533288d
Begin next release cycle (#2039)
jessebraham Aug 30, 2024
f9ab55c
fix: Fix nightly errors (#1934)
SergioGasquez Aug 30, 2024
fce510f
Disable object's unnecessary features in proc macro that loads LP cod…
bugadani Aug 30, 2024
8e6411b
Random cleanups in non-checked packages (#2034)
bugadani Aug 30, 2024
2dc285a
QSPI tests (#2015)
bjoernQ Sep 2, 2024
c5e342a
Clean up gigantic GPIO eyesore (#2048)
bugadani Sep 2, 2024
44567f6
Save/restore coprocessor state on stack (#2057)
bugadani Sep 2, 2024
6b4079b
release prep [email protected] (#2060)
MabezDev Sep 2, 2024
11f90b9
Protect SYSTIMER/TIMG shared registers (#2051)
Dominaezzz Sep 2, 2024
b620e35
automatically apply status:needs-attention to new esp-hal issues (#2030)
MabezDev Sep 2, 2024
d60bafb
Improve CP0-disabled error message (#2061)
bjoernQ Sep 2, 2024
447411f
Rework hal initialization (#1970)
bugadani Sep 2, 2024
5802227
Fix hil-test xtask instruction (#2062)
bugadani Sep 2, 2024
671003a
[esp-metadata] Make clap dependency optional (#2055)
GnomedDev Sep 2, 2024
c21287a
Provide ehal impls for DummyPin (#2019)
bugadani Sep 2, 2024
08d406e
storage: Clean up ROM function declarations (#2058)
bugadani Sep 2, 2024
9465244
Fix various SPI/DMA issues (#2065)
bugadani Sep 3, 2024
5420ce0
WPA2 ENTERPRISE (#2004)
bjoernQ Sep 3, 2024
9c3b171
Bump to esp-wifi 0.9.0 (#2066)
bjoernQ Sep 3, 2024
647e34f
Remove NoPinType (#2068)
bugadani Sep 3, 2024
0cf7abf
Make esp-wifi build on stable, again. Bump to 0.9.1 (#2067)
bjoernQ Sep 3, 2024
49e14b7
Remove lazy_static in favor of OnceLock (#2063)
GnomedDev Sep 3, 2024
b7b916f
Remove most trait implementation features from `esp-hal` (#2070)
jessebraham Sep 4, 2024
9bec6a1
Adding `I2C` HIL test (#2023)
playfulFence Sep 4, 2024
7688504
Remove Gpio type aliasses (#2073)
bugadani Sep 4, 2024
99bf346
Remove the need to manually pass clocks around (#1999)
bugadani Sep 4, 2024
39109a4
Remove gpio dispatch macro-defining proc macro (#2069)
bugadani Sep 4, 2024
e898e89
Remove AnyInputOnlyPin (#2071)
bugadani Sep 4, 2024
fb69411
Accept ErasedPin in AnyPin (#2072)
bugadani Sep 4, 2024
80c0a81
fix issue handler, don't rebuild on main the merge queue checks this …
MabezDev Sep 4, 2024
42a0417
Fix nightly warnings (#2082)
bugadani Sep 5, 2024
5370afb
Build examples in debug mode (#2078)
bugadani Sep 5, 2024
b6aceb1
Improve SHA driver API (#2049)
Dominaezzz Sep 5, 2024
4d9ea52
[esp-hal-procmacros] Update to proc-macro-error2 (#2090)
GnomedDev Sep 5, 2024
a2af2ac
lcd_cam: fix wrong buffer length used if 16bit and len<=8192 (#2085)
liebman Sep 5, 2024
4f97bef
Implement sleep and wakeup functionalities for ESP32C2 #1920 (#1922)
m4tsuri Sep 5, 2024
a5ab739
i2c: fix embedded-hal transactions (#2028)
liebman Sep 5, 2024
f11c18a
Optionally type-erased GPIO drivers (#2075)
bugadani Sep 5, 2024
70126c8
Rename `esp_hal::time::current_time` to `esp_hal::time::now` (#2091)
MabezDev Sep 5, 2024
fba475e
Add missing #[doc(hidden)] in xtensa-lx-rt-proc-macros (#2097)
AnthonyGrondin Sep 6, 2024
17daa46
Enable ESP32 HIL (#1977)
JurajSadel Sep 6, 2024
492e35a
esp-wifi: other crates also provide `strchr` (littlefs2-sys) (#2096)
liebman Sep 6, 2024
b5f0246
Reordered RX-TX pairs to be consistent (#2074)
SergioGasquez Sep 6, 2024
d6813a4
Random additional GPIO cleanups, implement Peripheral for drivers (#2…
bugadani Sep 6, 2024
598212a
Make additional memory available as `dram2_uninit` (#2079)
bjoernQ Sep 6, 2024
e6da896
Update esp-println version in usage section (#2100)
Szybet Sep 6, 2024
93f1012
Add integration with bt-hci crate (#1971)
lulf Sep 6, 2024
a3f7340
ensure that clock init happens after rtc domain is initialized (#2104)
MabezDev Sep 6, 2024
b3d2aad
Prepare esp-backtrace 0.14.1 (#2107)
bjoernQ Sep 6, 2024
d71434a
esp-wifi uses global allocator, esp-alloc supports multiple regions (…
bjoernQ Sep 6, 2024
de9d55f
feat: Add issue templates
SergioGasquez Sep 9, 2024
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
Prev Previous commit
Next Next commit
Deny missing docs at the package level, adding exceptions for relevan…
…t modules (esp-rs#1931)
  • Loading branch information
jessebraham authored Aug 13, 2024
commit a6e14067aee7826f98a3cb54bc7e5932575089ed
2 changes: 0 additions & 2 deletions esp-hal/src/aes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
//! * AES-DMA mode is currently not supported on ESP32 and ESP32S2
//! * AES-DMA Initialization Vector (IV) is currently not supported

#![deny(missing_docs)]

use crate::{
peripheral::{Peripheral, PeripheralRef},
peripherals::AES,
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/analog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
//! available on the device. For more information about a peripheral driver,
//! please refer to the relevant module documentation.

#![deny(missing_docs)]

#[cfg(adc)]
pub mod adc;
#[cfg(dac)]
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/clock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
//! # }
//! ```

#![deny(missing_docs)]

use fugit::HertzU32;

#[cfg(any(esp32, esp32c2))]
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
//!
//! For convenience you can use the [crate::dma_buffers] macro.

#![deny(missing_docs)]

use core::{fmt::Debug, marker::PhantomData, ptr::addr_of_mut, sync::atomic::compiler_fence};

trait Word: crate::private::Sealed {}
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/ecc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
//!
//! [ECC]: https://github.com/esp-rs/esp-hal/blob/main/hil-test/tests/ecc.rs

#![allow(missing_docs)] // TODO: Remove when able

use core::marker::PhantomData;

use crate::{
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/etm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
//! # }
//! ```

#![allow(missing_docs)] // TODO: Remove when able

use crate::{
peripheral::{Peripheral, PeripheralRef},
system::PeripheralClockControl,
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
//! [Commonly Used Setup]: ../index.html#commonly-used-setup
//! [Inverting TX and RX Pins]: ../uart/index.html#inverting-tx-and-rx-pins

#![warn(missing_docs)]

use core::{cell::Cell, marker::PhantomData};

use critical_section::Mutex;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/hmac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
//!
//! [HMAC]: https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/hmac.rs

#![allow(missing_docs)] // TODO: Remove when able

use core::convert::Infallible;

use crate::{
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
//! # }
//! ```

#![allow(missing_docs)] // TODO: Remove when able

use core::marker::PhantomData;

use fugit::HertzU32;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/i2s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
//! - Only master mode is supported.
//! - Only TDM Philips standard is supported.

#![allow(missing_docs)] // TODO: Remove when able

use core::marker::PhantomData;

use enumset::{EnumSet, EnumSetType};
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/interrupt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@
//! }
//! ```

#![warn(missing_docs)]

use core::ops::BitAnd;

#[cfg(riscv)]
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/lcd_cam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
//! used simultaneously. For more information on these modules, please refer to
//! the documentation in their respective modules.

#![allow(missing_docs)] // TODO: Remove when able

pub mod cam;
pub mod lcd;

Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/ledc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
//! - Source clock selection is not supported
//! - Interrupts are not supported

#![allow(missing_docs)] // TODO: Remove when able

use self::{
channel::Channel,
timer::{Timer, TimerSpeed},
Expand Down
6 changes: 5 additions & 1 deletion esp-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
#![allow(asm_sub_register)]
#![cfg_attr(feature = "async", allow(stable_features, async_fn_in_trait))]
#![cfg_attr(xtensa, feature(asm_experimental_arch))]
#![deny(rust_2018_idioms)]
#![deny(missing_docs, rust_2018_idioms)]
#![no_std]

// MUST be the first module
Expand Down Expand Up @@ -601,21 +601,25 @@ pub struct FlashSafeDma<T, const SIZE: usize> {
}

impl<T, const SIZE: usize> FlashSafeDma<T, SIZE> {
/// Create a new instance wrapping a given buffer
pub fn new(inner: T) -> Self {
Self {
inner,
buffer: [0u8; SIZE],
}
}

/// Return a mutable reference to the inner buffer
pub fn inner_mut(&mut self) -> &mut T {
&mut self.inner
}

/// Return an immutable reference to the inner buffer
pub fn inner(&self) -> &T {
&self.inner
}

/// Free the inner buffer
pub fn free(self) -> T {
self.inner
}
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/mcpwm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
//! # }
//! ```

#![deny(missing_docs)]

use core::{marker::PhantomData, ops::Deref};

use fugit::HertzU32;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/otg_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
//! ## Implementation State
//! - Low-speed (LS) is not supported.

#![allow(missing_docs)] // TODO: Remove when able

pub use esp_synopsys_usb_otg::UsbBus;
use esp_synopsys_usb_otg::UsbPeripheral;

Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/parl_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
//!
//! [Parallel IO TX]: https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/parl_io_tx.rs

#![warn(missing_docs)]

use core::marker::PhantomData;

use enumset::{EnumSet, EnumSetType};
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/pcnt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
//! [unit]: unit/index.html
//! [PCNT Encoder]: https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/pcnt_encoder.rs

#![allow(missing_docs)] // TODO: Remove when able

use self::unit::Unit;
use crate::{
interrupt::{self, InterruptHandler},
Expand Down
1 change: 1 addition & 0 deletions esp-hal/src/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub struct PeripheralRef<'a, T> {
}

impl<'a, T> PeripheralRef<'a, T> {
/// Create a new exclusive reference to a peripheral
#[inline]
pub fn new(inner: T) -> Self {
Self {
Expand Down
1 change: 1 addition & 0 deletions esp-hal/src/reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use crate::rtc_cntl::SocResetReason;

/// Source of the wakeup event
#[derive(Debug, Copy, Clone)]
pub enum SleepSource {
/// In case of deep sleep, reset was not caused by exit from deep sleep
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
//! (on ESP32 and ESP32-S2 you cannot specify a base frequency other than 80
//! MHz)

#![warn(missing_docs)]

use core::marker::PhantomData;

use fugit::HertzU32;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/rsa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
//! [nb]: https://docs.rs/nb/1.1.0/nb/
//! [the repository with corresponding example]: https://github.com/esp-rs/esp-hal/blob/main/hil-test/tests/rsa.rs

#![allow(missing_docs)] // TODO: Remove when able

use core::{marker::PhantomData, ptr::copy_nonoverlapping};

use crate::{
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/rtc_cntl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
//! }
//! ```

#![allow(missing_docs)] // TODO: Remove when able

#[cfg(not(any(esp32c6, esp32h2)))]
use fugit::HertzU32;
use fugit::MicrosDurationU64;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
//! ## Implementation State
//! - DMA-SHA Mode is not supported.

#![allow(missing_docs)] // TODO: Remove when able

use core::{convert::Infallible, marker::PhantomData};

use crate::{
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/soc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)] // TODO: Remove when able

use portable_atomic::{AtomicU8, Ordering};

pub use self::implementation::*;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/spi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
//! more information on these modes, please refer to the documentation in their
//! respective modules.

#![allow(missing_docs)] // TODO: Remove when able

use crate::dma::DmaError;

pub mod master;
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
//! # }
//! ```

#![allow(missing_docs)] // TODO: Remove when able

use crate::{
interrupt::InterruptHandler,
peripheral::PeripheralRef,
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//! let time = time::current_time();
//! # }
//! ```
#![warn(missing_docs)]

/// Provides time since system start in microseconds precision
///
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/timer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
//! # }
//! ```

#![deny(missing_docs)]

use fugit::{ExtU64, Instant, MicrosDurationU64};

use crate::{
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
//! - Touch sensor slope control
//! - Deep Sleep support (wakeup from Deep Sleep)

#![deny(missing_docs)]

use core::marker::PhantomData;

use crate::{
Expand Down
5 changes: 5 additions & 0 deletions esp-hal/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ use crate::{
/// Errors returned from [Trace::stop_trace]
#[derive(Debug, Clone, Copy)]
pub enum Error {
/// Attempted to stop a trace which had not been started yet
NotStarted,
}

/// Returned by [Trace::stop_trace]
#[derive(Debug, Clone, Copy)]
pub struct TraceResult {
/// Start index of the valid data
pub valid_start_index: usize,
/// Length of the valid data
pub valid_length: usize,
}

Expand Down Expand Up @@ -200,7 +203,9 @@ where
}
}

/// Trace peripheral instance
pub trait Instance: crate::private::Sealed {
/// Get a reference to the peripheral's underlying register block
fn register_block(&self) -> &RegisterBlock;
}

Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/twai/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
//! # }
//! ```

#![allow(missing_docs)] // TODO: Remove when able

use core::marker::PhantomData;

use self::filter::{Filter, FilterType};
Expand Down
2 changes: 2 additions & 0 deletions esp-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
//! [embedded-hal-async]: https://docs.rs/embedded-hal-async/latest/embedded_hal_async/
//! [embedded-io-async]: https://docs.rs/embedded-io-async/latest/embedded_io_async/

#![allow(missing_docs)] // TODO: Remove when able

use core::marker::PhantomData;

use self::config::Config;
Expand Down
1 change: 1 addition & 0 deletions esp-hal/src/usb_serial_jtag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ where
self.tx.flush_tx_nb()
}

/// Read a single byte but don't block if it isn't ready immediately
pub fn read_byte(&mut self) -> nb::Result<u8, Error> {
self.rx.read_byte()
}
Expand Down