Release 1.0.0-alpha.5
·
557 commits
to master
since this release
*** This is (also) an alpha release with breaking changes (sorry) ***
Added
- Added
IoPin
trait for pins that can change between being inputs or outputs
dynamically. - Added
Debug
to all spi mode types.
Changed
- Swap PWM channel arguments to references
- All trait methods have been renamed to remove the
try_
prefix (i.e.try_send
->send
) for consistency. - Moved all traits into two sub modules for each feature depending on the execution model:
blocking
andnb
(non-blocking). For example, the spi traits can now be found underembedded_hal::spi::blocking
orembedded_hal::spi::nb
. - Execution-model-independent definitions have been moved into the feature module. For example, SPI
Phase
is now defined inembedded_hal::spi::Phase
. For convenience, these definitions are reexported in both of its blocking and non-blocking submodules. - Re-export
nb::{block!, Error, Result}
to avoid version mismatches. These should be used instead of
importing thenb
crate directly in dependent crates. blocking::Serial
: renamedbwrite_all
towrite
,bflush
to `flush.- Removed
prelude
to avoid method name conflicts between different flavors (blocking, nb) of the same trait. Traits must now be manually imported. - Removed the various
Default
marker traits. - Removed
&[W]
returned slice inspi::blocking::Transfer
. - Require all associated error types to implement
core::fmt::Debug
.
Removed
- Removed random number generation (
rng
) traits in favor of rand_core.