refactor: move pl011/pl031 to be separate features

This commit is contained in:
2021-10-18 15:08:05 +03:00
parent 76b4a78d32
commit 1ef337a306
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
use crate::dev::Device;
#[cfg(feature = "pl031")]
pub mod pl031;
// TODO define what RTC devices can do
+1
View File
@@ -3,6 +3,7 @@
use crate::dev::Device;
use error::Errno;
#[cfg(feature = "pl011")]
pub mod pl011;
/// Generic interface for serial devices