2021-05-25 13:30:42 +02:00
|
|
|
use crate::path::ModulePrefix;
|
|
|
|
use proc_macro2::TokenStream;
|
|
|
|
use quote::quote;
|
|
|
|
|
|
|
|
pub fn generate(embassy_prefix: &ModulePrefix, config: syn::Expr) -> TokenStream {
|
|
|
|
let embassy_stm32_path = embassy_prefix.append("embassy_stm32").path();
|
|
|
|
|
|
|
|
quote!(
|
2021-05-26 21:42:07 +02:00
|
|
|
let p = #embassy_stm32_path::init(#config);
|
2021-05-25 13:30:42 +02:00
|
|
|
)
|
|
|
|
}
|