- Main Page
- Modules
- Data Structures
- Files

# Console I/O
[Configuration: Nano Layer]

## Defines
#define | NOSCFG_FEATURE_CONIN 1
#define | NOSCFG_CONIO_KEYBUFSIZE 10
#define | NOSCFG_FEATURE_CONOUT 1
#define | NOSCFG_FEATURE_PRINTF 1
#define | NOSCFG_FEATURE_SPRINTF 1

## Define Documentation

#define NOSCFG_CONIO_KEYBUFSIZE 10

| Set keyboard buffer size (in bytes). If the console input is enabled (when NOSCFG_FEATURE_CONIN is to 1), this define sets the depth of the keyboard buffer that is implemented in the nano layer.

#define NOSCFG_FEATURE_CONIN 1

| Enable generic console input support. If this define is set to 1, the functions nosKeyGet and nosKeyPressed are added to the user API of the nano layer. Note: The platform port must support console input. The port can either call c_nos_keyinput or rise the software interrupt 0 to feed keyboard data into the nano layer.

#define NOSCFG_FEATURE_CONOUT 1

| Enable generic console output support. If this define is set to 1, the functions nosPrintChar, nosPrint and nosPrintf are added to the user API of the nano layer. Note that if you wish to have the formatted print functions compiled in, you must also set the define NOSCFG_FEATURE_PRINTF to 1. Note: The platform port must support console output, it must export the function p_putchar.

#define NOSCFG_FEATURE_PRINTF 1

| Enable generic printf functions. The nano layer supports a set of really generic printf functions. This functions are not variadic, that means they do not support a variable parameter list, thus they can be compiled without having a runtime library linked (the header file <stdarg.h> is not needed). See also: nosPrintf1, NOSCFG_FEATURE_SPRINTF

#define NOSCFG_FEATURE_SPRINTF 1

| Enable generic string printf ('sprintf') functions. The nano layer supports a set of really generic sprintf functions. This functions are not variadic, that means they do not support a variable parameter list, thus they can be compiled without having a runtime library linked (the header file <stdarg.h> is not needed). See also: nosSPrintf1, NOSCFG_FEATURE_PRINTF