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
+4 -1
View File
@@ -20,6 +20,9 @@ bitflags = "^1.3.0"
cortex-a = { version = "6.x.x" }
[features]
mach_qemu = []
pl011 = []
pl031 = []
mach_qemu = ["pl011", "pl031"]
mach_orangepi3 = []
mach_rpi3 = []
+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