stm32 H5: LSE low drive mode is not functional
This commit is contained in:
parent
133a753e49
commit
cf11d28d62
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ pub struct LseConfig {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Default, Clone, Copy)]
|
#[derive(Default, Clone, Copy)]
|
||||||
pub enum LseDrive {
|
pub enum LseDrive {
|
||||||
|
#[cfg(not(stm32h5))] // ES0565: LSE Low drive mode is not functional
|
||||||
Low = 0,
|
Low = 0,
|
||||||
MediumLow = 0x01,
|
MediumLow = 0x01,
|
||||||
#[default]
|
#[default]
|
||||||
|
@ -38,6 +39,7 @@ impl From<LseDrive> for crate::pac::rcc::vals::Lsedrv {
|
||||||
use crate::pac::rcc::vals::Lsedrv;
|
use crate::pac::rcc::vals::Lsedrv;
|
||||||
|
|
||||||
match value {
|
match value {
|
||||||
|
#[cfg(not(stm32h5))] // ES0565: LSE Low drive mode is not functional
|
||||||
LseDrive::Low => Lsedrv::LOW,
|
LseDrive::Low => Lsedrv::LOW,
|
||||||
LseDrive::MediumLow => Lsedrv::MEDIUMLOW,
|
LseDrive::MediumLow => Lsedrv::MEDIUMLOW,
|
||||||
LseDrive::MediumHigh => Lsedrv::MEDIUMHIGH,
|
LseDrive::MediumHigh => Lsedrv::MEDIUMHIGH,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue