Re: RFC: Keeping board documentation in the boards and in the website at same time

2023-01-19 Thread Nathan Hartman
By the way, my earlier suggestion, putting arch- and board-related docs in a directory hierarchy that parallels that of the sources, so, for example: stm32f4discovery is in boards/arm/stm32/stm32f4discovery/ its docs would be in Documentation/boards/arm/stm32/stm32f4discovery/board.rst So it bec

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Hi all, I have finally got the USB interfaces working on my custom board (SAMA5D27) and, as a host, can see USB memory sticks, mount them and read/write to them. Also working as a USB device, using USB-C instead of OTG with an FUSB302 controller to auto switch between the 2 modes. To say I'm ve

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
An embarrassingly large number of typos: On 1/19/2023 2:19 PM, Gregory Nutt wrote: Should be pretty easy.  I think that you just need to add a HID report descriptor to the USB keyboard driver. https://wiki.osdev.org/USB_Human_Interface_Devices#Protocol. Shouldn't really require any code develo

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 2:13 PM, Tim Hardisty wrote: Ultimately I need to make sure it works with most/any USB-C keyboard that customers might choose to plugin (or, at least, a style/type of keyboard that is widely available), but it’s not a priority right now. Should be pretty easy.  I think that you j

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Ultimately I need to make sure it works with most/any USB-C keyboard that customers might choose to plugin (or, at least, a style/type of keyboard that is widely available), but it’s not a priority right now. From: Alan C. Assis Date: Thursday, 19 January 2023 at 20:08 To: dev@nuttx.apache.org

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
Hi Tim, Look at page 85 here: https://www.usb.org/sites/default/files/documents/hid1_11.pdf "F.5 Keyboard: Using the Keyboard Boot Protocol This section explains some of the detail behind the requirements listed in Appendix G.4. To use the boot protocol, the system should do the following: - Sele

Re: RFC: Keeping board documentation in the boards and in the website at same time

2023-01-19 Thread Nathan Hartman
A symlink might be better than hundreds of one-line README files. How will that affect Windows though? Not all versions of Windows support symlinks (though Windows 10 does since some time ago). Cheers Nathan On Thu, Jan 19, 2023 at 2:18 PM Alan C. Assis wrote: > Thank you Brennan, > > Yes, I un

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Thanks – now I know what the likely issue is I can happily put this on the back-burner as it’s “only software” lol. Next battle is to get RNDIS working – so many random Kconfig settings needed it seems. From: Gregory Nutt Date: Thursday, 19 January 2023 at 19:18 To: dev@nuttx.apache.org Subje

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
On 1/19/23, Gregory Nutt wrote: > On 1/19/2023 1:12 PM, Alan C. Assis wrote: >> I think the currently NuttX USB Keyboard driver needs to be extended >> to support more keyboards. Do do that someone need to inspect the USB >> communication and figure out what is going on. > > Unless someone has ext

Re: RFC: Keeping board documentation in the boards and in the website at same time

2023-01-19 Thread Alan C. Assis
Thank you Brennan, Yes, I understood the point. Maybe an option could be keep the board documentation at Documentation/platforms/arm/stm32/boards/stm32f4discovery/ and put a symbolic link at boards/xxx/yyy/boardname/README.rst point to it. Or just use a boards/xxx/yyy/boardname/README.txt with a

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 1:12 PM, Alan C. Assis wrote: I think the currently NuttX USB Keyboard driver needs to be extended to support more keyboards. Do do that someone need to inspect the USB communication and figure out what is going on. Unless someone has extended the driver, the USB keyboard driver on

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
Hi Tim, AFAIK the current USB HID keyboard implementation existent on NuttX doesn't work with all keyboards. I don't know details about it, so let me share what I know so far: A NuttX user reported some years ago that he test USB Keyboard on STM32 boards and got it working. He was using the keybo

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Hi all, I have finally got the USB interfaces working on my custom board (SAMA5D27) and, as a host, can see USB memory sticks, mount them and read/write to them. Also working as a USB device, using USB-C instead of OTG with an FUSB302 controller to auto switch between the 2 modes. To say I’m ve

Re: RFC: Keeping board documentation in the boards and in the website at same time

2023-01-19 Thread Tomek CEDRO
not sure but there may be doxygen or sphinx like utilities to geneate doc right out of the source code? for instance here is browsable and single page html and pdf other formats possible: https://kivy.org/doc/stable/ sphinx seems more modern and versatile than doxygen also this sphinx docstrings