mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory.
This commit is contained in:
@@ -7,6 +7,43 @@
|
||||
# specific implementations. Not all architectures support implementations
|
||||
# for every library function.
|
||||
|
||||
comment "Architecture-Specific Spport"
|
||||
|
||||
config ARCH_LOWPUTC
|
||||
bool "Low-level console output"
|
||||
default "y"
|
||||
---help---
|
||||
architecture supports low-level, boot time console output
|
||||
|
||||
config ARCH_ROMGETC
|
||||
bool "Support for ROM string access"
|
||||
default n
|
||||
---help---
|
||||
In Harvard architectures, data accesses and instruction accesses
|
||||
occur on different buses, perhaps concurrently. All data accesses
|
||||
are performed on the data bus unless special machine instructions
|
||||
are used to read data from the instruction address space. Also, in
|
||||
the typical MCU, the available SRAM data memory is much smaller that
|
||||
the non-volatile FLASH instruction memory. So if the application
|
||||
requires many constant strings, the only practical solution may be
|
||||
to store those constant strings in FLASH memory where they can only
|
||||
be accessed using architecture-specific machine instructions.
|
||||
|
||||
If ARCH_ROMGETC is defined, then the architecture logic must export
|
||||
the function up_romgetc(). up_romgetc() will simply read one byte
|
||||
of data from the instruction space.
|
||||
|
||||
If ARCH_ROMGETC is selected, certain C stdio functions are effected: (1)
|
||||
All format strings in printf, fprintf, sprintf, etc. are assumed to lie
|
||||
in FLASH (string arguments for %s are still assumed to reside in SRAM).
|
||||
And (2), the string argument to puts and fputs is assumed to reside
|
||||
in FLASH. Clearly, these assumptions may have to modified for the
|
||||
particular needs of your environment. There is no "one-size-fits-all"
|
||||
solution for this problem.
|
||||
|
||||
# Default settings for C library functions that may be replaced with
|
||||
# architecture-specific versions.
|
||||
|
||||
config LIBC_ARCH_MEMCPY
|
||||
bool
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user