acassis opened a new pull request, #20906: URL: https://github.com/apache/nuttx/pull/20906
## Summary
Add support for an external MAX3421E USB host controller on SPI1:
SCK PA5 MISO PA6 MOSI PA7 SS PA4
INT PB8 (falling edge) RES# PB9 (optional, pulsed at boot)
At boot the board checks that the chip answers (revision, register
write/read-back and oscillator) before starting the driver, registers the
enabled class drivers (MSC, HID keyboard, HID mouse) and starts the connection
monitor thread.
The EXTI is disabled while the driver handles an interrupt, so an INT edge
in that window is lost; enable() dispatches the handler when INT is already
asserted.
Add the usbhost configuration (HID mouse + touchscreen example to read
/dev/mouse0) and document the wiring and options in the board page.
Also fix the nxstyle issues reported in the touched board files.
## Impact
Users will be able to use MAX3421E module on BluePill (stm32f103-minimum)
board.
## Testing
```
nsh> tc
tc_main: nsamples: 0
tc_main: Opening /dev/mouse0
Sample :
buttons : 00
x : 313
y : 21
Sample :
buttons : 00
x : 320
y : 9
Sample :
buttons : 00
x : 318
y : 26
Sample :
buttons : 00
x : 316
y : 47
Sample :
buttons : 00
x : 315
y : 65
Sample :
buttons : 00
x : 314
y : 87
Sample :
buttons : 00
x : 314
y : 100
Sample :
buttons : 00
x : 315
y : 120
Sample :
buttons : 00
x : 319
y : 136
Sample :
buttons : 00
x : 320
y : 155
Sample :
buttons : 00
x : 320
y : 169
Sample :
buttons : 00
x : 320
y : 187
Sample :
buttons : 00
x : 320
y : 200
Sample :
buttons : 00
x : 320
y : 216
Sample :
buttons : 00
x : 320
y : 234
Sample :
buttons : 00
x : 320
y : 218
Sample :
buttons : 00
x : 320
y : 201
Sample :
buttons : 00
x : 320
y : 187
Sample :
buttons : 00
x : 320
y : 170
Sample :
buttons : 00
x : 320
y : 157
Sample :
buttons : 00
x : 308
y : 152
Sample :
buttons : 02
x : 297
y : 158
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 01
x : 297
y : 159
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 04
x : 297
y : 159
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 01
x : 297
y : 159
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 02
x : 297
y : 159
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 01
x : 297
y : 159
Sample :
buttons : 00
x : 297
y : 159
Sample :
buttons : 00
x : 283
y : 151
```
--
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]
