diff options
| author | okhsunrog <[email protected]> | 2025-05-21 00:37:46 +0300 |
|---|---|---|
| committer | okhsunrog <[email protected]> | 2025-05-21 00:37:46 +0300 |
| commit | c9f0afa494636533c838473bcb5d27ff8f011fb7 (patch) | |
| tree | 864d83742d06130423540afee14043ab4daf4034 /embassy-stm32/src/flash | |
| parent | e93ae32546b754ee9b54405aca81d936087ea8c7 (diff) | |
import and re-export EEPROM_BASE and EEPROM_SIZE in flash module
Diffstat (limited to 'embassy-stm32/src/flash')
| -rw-r--r-- | embassy-stm32/src/flash/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/flash/mod.rs b/embassy-stm32/src/flash/mod.rs index adc45db9c..ab956664b 100644 --- a/embassy-stm32/src/flash/mod.rs +++ b/embassy-stm32/src/flash/mod.rs | |||
| @@ -13,6 +13,8 @@ pub use common::*; | |||
| 13 | 13 | ||
| 14 | pub use crate::_generated::flash_regions::*; | 14 | pub use crate::_generated::flash_regions::*; |
| 15 | pub use crate::_generated::{FLASH_BASE, FLASH_SIZE, MAX_ERASE_SIZE, WRITE_SIZE}; | 15 | pub use crate::_generated::{FLASH_BASE, FLASH_SIZE, MAX_ERASE_SIZE, WRITE_SIZE}; |
| 16 | #[cfg(eeprom)] | ||
| 17 | pub use crate::_generated::{EEPROM_BASE, EEPROM_SIZE}; | ||
| 16 | 18 | ||
| 17 | /// Get all flash regions. | 19 | /// Get all flash regions. |
| 18 | pub fn get_flash_regions() -> &'static [&'static FlashRegion] { | 20 | pub fn get_flash_regions() -> &'static [&'static FlashRegion] { |
