437c903c47
- This PR adds `examples/leds_rust` to call NuttX POSIX APIs like `open()` and `ioctl()`, so that it blinks an LED - The `leds_rust` app is also used for testing the GPIO and LED Drivers for Ox64 BL808 SBC and QEMU RISC-V Emulator in Google Summer of Code - `leds_rust` be executed locally on Linux / macOS / Windows, by commenting out the first 2 lines of code - The code is based on `examples/leds` in C, and `examples/hello_rust` in Rust Co-Authored-By: Lup Yuen Lee <9960133+lupyuen@users.noreply.github.com>
31 lines
656 B
Plaintext
31 lines
656 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_LEDS_RUST
|
|
tristate "\"LEDs Rust\" example"
|
|
default n
|
|
depends on USERLED
|
|
---help---
|
|
Enable the \"LEDs Rust\" example
|
|
|
|
if EXAMPLES_LEDS_RUST
|
|
|
|
config EXAMPLES_LEDS_RUST_PROGNAME
|
|
string "Program name"
|
|
default "leds_rust"
|
|
---help---
|
|
This is the name of the program that will be used when the
|
|
program is installed.
|
|
|
|
config EXAMPLES_LEDS_RUST_PRIORITY
|
|
int "LEDs Rust task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_LEDS_RUST_STACKSIZE
|
|
int "LEDs Rust stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|