git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git]
/
lunaix-os
/
hal
/
char
/
uart
/
LConfig
diff --git
a/lunaix-os/hal/char/uart/LConfig
b/lunaix-os/hal/char/uart/LConfig
index bbb019df967d4a77c3947ee3daf9d4117bb91d7d..61014ad159cf8e8f5e848d1be19d524b70c326a2 100644
(file)
--- a/
lunaix-os/hal/char/uart/LConfig
+++ b/
lunaix-os/hal/char/uart/LConfig
@@
-1,28
+1,18
@@
-@Collection("16x50 Serial Controller")
+@"16x50 Serial Controller"
+@(parent := char_device)
def uart_16x50():
""" 16x50 serial controller """
def uart_16x50():
""" 16x50 serial controller """
- # hal/char/LConfig::char_device
- add_to_collection(char_device)
-
- @Term("16x50 XT-Compat")
- def xt_16x50():
+ @"16x50 XT-Compat"
+ def xt_16x50() -> bool:
""" Enable the 16x50 for PC-compatible platform """
""" Enable the 16x50 for PC-compatible platform """
-
- type(bool)
-
- default(True)
+ require (arch_x86)
- is_x86 = v(arch) in ["i386", "x86_64"]
- if not is_x86:
- set_value(False)
-
- return is_x86
+ return True
- @
Term("16x50 PCI")
- def pci_16x50():
+ @
"16x50 PCI"
+ def pci_16x50()
-> bool
:
""" Enable the support of PCI 16x50 """
""" Enable the support of PCI 16x50 """
- type(bool)
- default(True)
\ No newline at end of file
+ return True
\ No newline at end of file