mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add a new RNG90 example application that opens the RNG90 character device, reads random bytes, and prints them in hexadecimal format. The example supports optional command-line arguments for device path and byte count and integrates with Kconfig, Make, and CMake build flows. Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
37 lines
876 B
Text
37 lines
876 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_RNG90
|
|
tristate "Microchip RNG90 TRNG example"
|
|
default n
|
|
depends on DEV_RNG90
|
|
---help---
|
|
Enable the RNG90 example. It opens the RNG90 character device,
|
|
runs the built-in self-test and reads random bytes from it.
|
|
|
|
if EXAMPLES_RNG90
|
|
|
|
config EXAMPLES_RNG90_PROGNAME
|
|
string "Program name"
|
|
default "rng90"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config EXAMPLES_RNG90_DEVPATH
|
|
string "RNG90 device path"
|
|
default "/dev/rng0"
|
|
---help---
|
|
The default path of the RNG90 character device.
|
|
|
|
config EXAMPLES_RNG90_PRIORITY
|
|
int "RNG90 task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_RNG90_STACKSIZE
|
|
int "RNG90 stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|