[Corner Case] single bit field MT
(Month Tens) of RTC
should have u8
type rather a bool
type
#719
Labels
MT
(Month Tens) of RTC
should have u8
type rather a bool
type
#719
In STM32 svds, there is a field called
MT
ofDR
register inRTC
peripheral.MT
means Month Tens and should have numeric type. But since it's a single bit field,svd2rust
just map it to aBitWriter
&BitReader
, which make the.bit()
method need abool
input. It's a little bit weird for me. So if there is any way we can defined the Rust type of a field?The text was updated successfully, but these errors were encountered: