Default to Async mode
This commit is contained in:
parent
bac8ad565e
commit
efc71e08c4
@ -213,7 +213,7 @@ fn main() {
|
|||||||
let region_type = format_ident!("{}", get_flash_region_type_name(region.name));
|
let region_type = format_ident!("{}", get_flash_region_type_name(region.name));
|
||||||
flash_regions.extend(quote! {
|
flash_regions.extend(quote! {
|
||||||
#[cfg(flash)]
|
#[cfg(flash)]
|
||||||
pub struct #region_type<'d, MODE>(pub &'static crate::flash::FlashRegion, pub(crate) embassy_hal_common::PeripheralRef<'d, crate::peripherals::FLASH>, pub(crate) core::marker::PhantomData<MODE>);
|
pub struct #region_type<'d, MODE = crate::flash::Async>(pub &'static crate::flash::FlashRegion, pub(crate) embassy_hal_common::PeripheralRef<'d, crate::peripherals::FLASH>, pub(crate) core::marker::PhantomData<MODE>);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ fn main() {
|
|||||||
let regions_len = flash_memory_regions.len();
|
let regions_len = flash_memory_regions.len();
|
||||||
flash_regions.extend(quote! {
|
flash_regions.extend(quote! {
|
||||||
#[cfg(flash)]
|
#[cfg(flash)]
|
||||||
pub struct FlashLayout<'d, MODE> {
|
pub struct FlashLayout<'d, MODE = crate::flash::Async> {
|
||||||
#(#fields),*,
|
#(#fields),*,
|
||||||
_mode: core::marker::PhantomData<MODE>,
|
_mode: core::marker::PhantomData<MODE>,
|
||||||
}
|
}
|
||||||
|
@ -54,12 +54,12 @@ mod alt_regions {
|
|||||||
&ALT_BANK2_REGION3,
|
&ALT_BANK2_REGION3,
|
||||||
];
|
];
|
||||||
|
|
||||||
pub struct AltBank1Region3<'d, MODE>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
pub struct AltBank1Region3<'d, MODE = Async>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
||||||
pub struct AltBank2Region1<'d, MODE>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
pub struct AltBank2Region1<'d, MODE = Async>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
||||||
pub struct AltBank2Region2<'d, MODE>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
pub struct AltBank2Region2<'d, MODE = Async>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
||||||
pub struct AltBank2Region3<'d, MODE>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
pub struct AltBank2Region3<'d, MODE = Async>(pub &'static FlashRegion, PeripheralRef<'d, FLASH>, PhantomData<MODE>);
|
||||||
|
|
||||||
pub struct AltFlashLayout<'d, MODE> {
|
pub struct AltFlashLayout<'d, MODE = Async> {
|
||||||
pub bank1_region1: Bank1Region1<'d, MODE>,
|
pub bank1_region1: Bank1Region1<'d, MODE>,
|
||||||
pub bank1_region2: Bank1Region2<'d, MODE>,
|
pub bank1_region2: Bank1Region2<'d, MODE>,
|
||||||
pub bank1_region3: AltBank1Region3<'d, MODE>,
|
pub bank1_region3: AltBank1Region3<'d, MODE>,
|
||||||
|
Loading…
Reference in New Issue
Block a user