Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flash: support stm32l0x3 #134

Merged
merged 4 commits into from
Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
7 changes: 6 additions & 1 deletion src/flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ impl FLASH {
// following should determine whether this is a Category 5 device.
// Please make sure to adapt this when porting this module to other
// targets.
let is_category_5 = cfg!(any(feature = "stm32l072", feature = "stm32l082"));
let is_category_5 = cfg!(any(
feature = "stm32l072",
feature = "stm32l082",
feature = "stm32l073",
feature = "stm32l083"
));
jordens marked this conversation as resolved.
Show resolved Hide resolved

// Determine the start of the EEPROM, according to the tables in the
// STM32L0x2 reference manual, section 3.3.1.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub mod calibration;
pub mod delay;
pub mod dma;
pub mod exti;
#[cfg(feature = "stm32l0x2")]
#[cfg(any(feature = "stm32l0x2", feature = "stm32l0x3"))]
pub mod flash;
pub mod gpio;
#[cfg(any(
Expand Down