File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
45
45
the dependencies where using the MIT / Apache 2.0 dual licensing already,
46
46
which resulted into the situtation, that BSD 0-clause was not affectivly
47
47
0-clause as MIT conditions had to be met anyways. (🧂 IANAL). ([ #309 ] )
48
+ - Renamed ` Serial::raw_read ` to ` Serial::read_data_register ` . ([ #281 ] )
48
49
- Move ADC from a macro to a generic implementation, meaning that
49
50
it is possible to obtain an ADC instance via ` Adc::new ` instead of
50
51
` Adc::adc1 ` . ([ #281 ] )
Original file line number Diff line number Diff line change @@ -576,8 +576,13 @@ where
576
576
/// the triggered events via [`Serial::triggered_events`].
577
577
///
578
578
/// Returns `None` if the hardware is busy.
579
+ ///
580
+ /// ## Embedded HAL
581
+ ///
582
+ /// To have a more managed way to read from the serial use the [`embedded_hal::serial::Read`]
583
+ /// trait implementation.
579
584
#[ doc( alias = "RDR" ) ]
580
- pub fn raw_read ( & self ) -> Option < u8 > {
585
+ pub fn read_data_register ( & self ) -> Option < u8 > {
581
586
if self . usart . isr . read ( ) . busy ( ) . bit_is_set ( ) {
582
587
return None ;
583
588
}
@@ -907,7 +912,7 @@ where
907
912
/// up to the interrupt handler.
908
913
///
909
914
/// To read out the content of the read register without internal error handling, use
910
- /// [`Serial::raw_read ()`].
915
+ /// [`Serial::read_data_register ()`].
911
916
/// ...
912
917
// -> According to this API it should be skipped.
913
918
fn read ( & mut self ) -> nb:: Result < u8 , Error > {
You can’t perform that action at this time.
0 commit comments