diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-30 17:01:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-30 17:01:51 -0600 |
commit | d2844edf44290bceada76c5dc0092987a59c18bc (patch) | |
tree | a615f09788f294e36b8aa7ed84ed2bf39c2d6ef5 /nuttx/configs/sama5d4-ek/README.txt | |
parent | 4a9bf5ea04ed5a843e2b029cc65a1d11d19f4bf4 (diff) | |
download | px4-nuttx-d2844edf44290bceada76c5dc0092987a59c18bc.tar.gz px4-nuttx-d2844edf44290bceada76c5dc0092987a59c18bc.tar.bz2 px4-nuttx-d2844edf44290bceada76c5dc0092987a59c18bc.zip |
dd support for a USB keyboard as the NxConsole and text widget input. Not fully functional as of this initial check-in. Basic functionality is there, but there are conditions were the keyboard gets lost.
Diffstat (limited to 'nuttx/configs/sama5d4-ek/README.txt')
-rw-r--r-- | nuttx/configs/sama5d4-ek/README.txt | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/nuttx/configs/sama5d4-ek/README.txt b/nuttx/configs/sama5d4-ek/README.txt index 46a64433a..4a14fd1fd 100644 --- a/nuttx/configs/sama5d4-ek/README.txt +++ b/nuttx/configs/sama5d4-ek/README.txt @@ -4060,30 +4060,27 @@ Configurations recognized. The USB keyboard is configured to replace the NSH stdin device some - that NSH will take input from the USB keyboard. These are the - relevant configuration options: + that NSH will take input from the USB keyboard. This has to be + done a little differently for the case of NxWM::CNxConsoles than + in the standard NSH configuration. Here the relevant configuration + options are: - CONFIG_NSH_USBKBD=y - CONFIG_NSH_USBKBD_DEVNAME="/dev/kbda" - - When NSH comes up, it will attempt to open /dev/kbda and replace - stdin with that device. If no USB keyboard is connected when you - start the NxConsole, you will see: + CONFIG_NXWM_KEYBOARD_USBHOST=y + CONFIG_NXWM_KEYBOARD_DEVPATH="/dev/kbda" - Waiting for a keyboard... - - NSH will then automatically start when the keyboard is attached: + NSH will then automatically start when the NxConsole is started: NuttShell (NSH) NuttX-7.3 nsh> - If the keyboard is detached, NSH will stop and wait for you to - re-attach the keyboard: - - nsh> nsh: nsh_session: readline failed: 1 - Please re-connect the keyboard... + When the NxConsole comes up, it will attempt to use /dev/kbda device + for input. Obviously, you cannot enter text if there is no keyboard + but otherwise you will not see any indication whether a keyboard is + connected or not. - And the session will restart when the keyboard is reconnected. + If the keyboard is detached, you not be able to enter text until the + keyboard is reconnected. Again, there is no other special indication + of the keyboard state. The keyboard is currently configured to poll at 80 MSec intervals. That might not be fast enough for you if you are a fast typist. This |