feat(kobject,ktimer,printf): Kernel object added attribute, kernel timer ADAPTS attribute operation, fix printf print error.
1.Added attributes of kernel objects. You can directly manipulate the attributes supported by objects by running show and store. 2.The kernel timer has three attributes: tick,mode, and status. Because of the danger of OS operations, attributes are not supported by kernel OS objects. 3.Kernel printf has a bug when printing strings, an incorrect comparison condition causes the print to be missing content.
This commit is contained in:
@@ -69,7 +69,7 @@ menu "Libc options"
|
||||
# PRINTF
|
||||
choice
|
||||
prompt "Printf"
|
||||
default MR_USE_PRINTFK
|
||||
default MR_USE_PRINTF
|
||||
|
||||
config MR_USE_LIBC_PRINTF
|
||||
bool "Standard libc printf"
|
||||
@@ -86,6 +86,26 @@ menu "Libc options"
|
||||
help
|
||||
Use a custom printf implementation for printing.
|
||||
endchoice
|
||||
# SCANF
|
||||
choice
|
||||
prompt "Scanf"
|
||||
default MR_USE_SCANF
|
||||
|
||||
config MR_USE_LIBC_SCANF
|
||||
bool "Standard libc scanf"
|
||||
help
|
||||
Use the standard libc scanf for scanf.
|
||||
|
||||
config MR_USE_3PARTY_SCANF
|
||||
bool "3rd party scanf"
|
||||
help
|
||||
Use a third-party scanf library for scanf.
|
||||
|
||||
config MR_USE_SCANF
|
||||
bool "Custom scanf"
|
||||
help
|
||||
Use a custom scanf implementation for scanf.
|
||||
endchoice
|
||||
# STRING
|
||||
choice
|
||||
prompt "String"
|
||||
@@ -121,6 +141,7 @@ menu "Libc options"
|
||||
help
|
||||
Use a custom type implementation for custom types.
|
||||
endchoice
|
||||
# 64BIT
|
||||
config MR_USE_64BIT
|
||||
bool "Use 64-bit"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user