tmedicci opened a new pull request, #3461:
URL: https://github.com/apache/nuttx-apps/pull/3461
## Summary
* system/irtest: Set `irtest` command line size to CONFIG_LINE_MAX
- Let `irtest` command line size be equal to CONFIG_LINE_MAX so that
bigger (or smaller) commands can be set.
* system/irtest: Avoids silently truncating long write_data commands
- Long write_data commands can be truncated without any check due to the
maximum size of CONFIG_SYSTEM_IRTEST_MAX_SIRDATA. This PR adds a check to avoid
a silent fail.
* system/irtest: Fix issues regarding portability and buffer size
- This PR fixes issues regarding portability by using variables with fixed
width (and their format macro constants).
* examples: Remove deprecated `rmtchar` example application
- The upper-half RMT driver is no longer available on NuttX. Instead,
Espressif's RMT peripheral was bound directly to the lirc driver.
## Impact
Impact on user: Yes. Improve user's experience when trying `irqtest` testing
application.
Impact on build: No.
Impact on hardware: No.
Impact on documentation: No.
Impact on security: No.
Impact on compatibility: No.
## Testing
Build the `rmt` defconfig of any Espressif SoC, interconnect output and
input pins externally and run `irqtest`. For ESP32-C6-DevKitC-1 V1.2, for
instance:
### Building
```
make -j distclean
./tools/configure.sh -S esp32c6-devkitc:rmt
kconfig-tweak -e SYSTEM_IRTEST
make olddefconfig
make flash ESPTOOL_PORT=/dev/ttyUSB0
picocom -b 115200 /dev/ttyUSB0
```
### Running
Connect GPIO 8 (RMT output pin) to GPIO 2 (RMT input pin) externally and run
`irqtest`:
```
nsh> irtest
$open_device(/dev/lirc0)
$open_device(/dev/lirc1)
$write_data(1) 16777229 16 16777235 23
$read_data(0,4)
16777229, 16, 16777235, 23
```
### Results
Read data equals written data. Loopback test succeeded!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]