Add unstable feature to give access to the pac

This commit is contained in:
Thales Fragoso
2021-05-22 15:22:00 -03:00
parent 2605dabca3
commit a0fe9e4645
4 changed files with 11 additions and 2 deletions

View File

@ -42,7 +42,8 @@ with open('src/pac/mod.rs', 'w') as f:
f'#[cfg_attr(feature="{chip["name"]}", path="{chip["name"]}.rs")]\n')
f.write('mod chip;\n')
f.write('pub use chip::*;\n')
f.write('pub(crate) mod regs;\n')
f.write('#[allow(dead_code, unused_imports)]\n')
f.write('pub mod regs;\n')
# ========= Generate pac/stm32xxx.rs