Commit Graph

139 Commits

Author SHA1 Message Date
Matthew Kennedy 609b49a312 configurable MSD options 2021-03-04 17:08:41 -08:00
Fabien Poussin e7cdad3d1a
Merge pull request #263 from mck1117/fix-msd-lun
don't deref null pointer on MSD LUN request
2021-02-24 20:27:49 +01:00
Matthew Kennedy 1ebdcca467 don't deref nullptr 2021-02-23 23:29:45 -08:00
Fabien Poussin c0b5cfab75
Merge pull request #251 from sabdulqadir/feat/expanding_hal_nand_c
Expansion to nand flash driver
2021-02-14 12:18:20 +01:00
Matthew Kennedy 702f32276e fix MSD_REQ_GET_MAX_LUN 2021-02-12 16:14:45 -08:00
Piers Titus van der Torren b2e12d536a USB_MSD: reimplement msd_request_hook to fix crashes
Requests were incorrectly handled, causing crashes on connecting to windows or macos.
2021-02-04 00:48:58 +01:00
sabdulqadir 34bb526ea6 Expansion to nand flash driver
This expansion helps support higher density devices which have multiple
dies, logical units and planes on top of the standard block and page
structures of standard nand flash ICs.

- Included stm32f723xx targets
- Bug fix (STM32_NAND_USE_NAND1)
- changed map_cmd and map_addr to 8 bits in struct NANDDriver
- Bug fix (dmaStreamAlloc returns dma_stream_t)
- DSB assembly instruction added for fixing issues with M7 processor
- added nand_lld_read_id() function
2021-01-02 15:49:45 -06:00
Fabien Poussin ece84f54c9
USBH: adding stop function 2020-12-25 19:43:08 +01:00
Fabien Poussin 05913b8055 Cleaning FSMC code 2019-10-30 13:03:32 +01:00
Fabien Poussin 915b474b02 Re-organised FSMC drivers 2019-10-30 12:52:31 +01:00
Fabien Poussin 90f32c3546 Updating FSMC driver (SRAM part) 2019-10-29 20:16:08 +01:00
Fabien Poussin 97b7064031 Updating FSMC driver (SDRAM part first) 2019-10-29 19:38:09 +01:00
Diego Ismirlian 938daa12d6 USBH: MSD: revert report OK on CSW status failure 2019-10-02 16:57:31 -03:00
Diego Ismirlian 7c57d8a924 USBH: UVC: improve debug message 2019-10-02 16:57:31 -03:00
Diego Ismirlian 392d6af300 USBH: rework debug framework 2019-10-02 16:57:30 -03:00
Diego Ismirlian fa3880546c USBH: check remaining bytes before dereferencing buffer
To avoid accessing unimplemented memory. We rely on the lazy evaluation
of the C language.
2019-10-02 16:57:30 -03:00
Diego Ismirlian eb10a7d52f Update copyright 2019-09-29 19:31:05 -03:00
Diego Ismirlian 8db69eb38c Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib 2019-09-29 10:25:16 -03:00
Fabien Poussin 6736a9099b Fixes for STM32L4, Comp and eeprom. 2019-09-18 11:49:12 +02:00
Diego Ismirlian 7b2c61a676 Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib 2019-08-24 17:45:41 -03:00
José Simões f014b8da68 Fixes for USB MSD
- Fix return value on succesfull scsi_requestsense.
- Fix calls to LL SMT32 API for OTG2.
- Port changes from ChibiOS fatfs_diskio.
- Rework checks to allow simultaneous use of SD Card and USB MSD.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
2019-02-27 15:00:50 +00:00
Fabien Poussin 6076bdf27d Updating OpAmp code with calibration functions, cleaning. 2019-01-31 17:52:13 +01:00
Fabien Poussin 91e635b08a Adding rudimentary OPAMP Driver 2019-01-08 20:02:45 +01:00
Konstantin Oblaukhov 33375fb281 Fix USB HID driver. 2018-11-20 09:53:46 +07:00
Konstantin Oblaukhov 7ab18994e7 Adopt sources to new HAL. 2018-09-24 20:29:02 +07:00
Diego Ismirlian dd1799beda Merge branch 'master' of https://github.com/MegabytePhreak/ChibiOS-Contrib 2018-08-20 21:16:55 -03:00
Diego Ismirlian 0936be2541 Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib 2018-08-20 20:50:22 -03:00
Paul Roukema 2a9d939d72 Fix incompatible USBH VMTs 2018-08-05 23:59:06 -04:00
Fabien Poussin d4d384557d Fixes for #138 2018-03-20 16:04:08 +01:00
Fabien Poussin 3add406135
Merge branch 'master' into update_tests 2018-03-15 12:51:14 +01:00
Fabien Poussin 424c7a2717 Fixed most testhal examples for STM32, updated configs using script. Fixed deprecated MS2ST calls. 2018-03-14 20:15:13 +01:00
Romain Reignier e1e6f87481 hal_usbh: update to new Time macros 2018-03-12 21:20:32 +01:00
Diego Ismirlian 03615f40dc USBH: debug improvements 2017-12-04 13:11:16 -03:00
Diego Ismirlian dbaa1b8700 USBH: AOA: Various improvements 2017-11-19 21:20:57 -03:00
Diego Ismirlian 61dfc26804 USBH: improve disconnection detection; added a necessary reschedule. 2017-11-19 21:17:56 -03:00
Diego Ismirlian f4cf7e5591 Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib 2017-10-29 17:52:54 -03:00
Diego Ismirlian 06af5833ed USBH: main driver: implement usbhBulkTransfer as inline function 2017-10-29 17:41:30 -03:00
Kimmo Lindholm 39487df4de SCSI: Respond to unit serial number inquiry 2017-10-12 00:06:50 +03:00
Mark Harris 741459ac27 usbh:correct spelling of usbhSynchronousTransfer 2017-09-14 17:36:21 +02:00
Mark Harris f5f3c8ffdb usbh:_ptxfe_int, use HPTXSTS, introduce usbhSyncrhonousTransfer 2017-09-14 14:41:28 +02:00
Mark Harris d2269527b7 implement ptxfe_int for outbound INT ep 2017-09-12 16:55:01 +02:00
Diego Ismirlian 84f28dd0b1 USBH: FTDI: correct bugs 2017-08-07 17:52:51 -03:00
Diego Ismirlian 21f95b50f4 USBH: simplify/cleanup main driver 2017-08-07 17:51:34 -03:00
Diego Ismirlian ca1882c01b USBH: improved debug output 2017-07-31 18:46:22 -03:00
Diego Ismirlian 2fb4cf9273 USBH: improved main driver
- improved connection/disconnection handling
- corrected bug on aborting non-pending URB
- corrected bug on disconnecting multiple hubs
- improved debug messages
2017-07-31 18:38:46 -03:00
Diego Ismirlian 91fd21695b USBH: replaced some ch* functions with OSAL equivalents 2017-07-16 20:08:02 -03:00
Diego Ismirlian dee22cee18 USBH: remove unnecessary reschedules and add necessary ones 2017-07-16 20:01:50 -03:00
Diego Ismirlian ce8f18291f USBH: Use infinite timeout for control request, when timeouts are not specified 2017-07-16 18:40:09 -03:00
Diego Ismirlian 7bf4908f23 USBH: HID: Implement synchronization 2017-07-16 18:38:59 -03:00
Diego Ismirlian d395dde065 USBH: HUB: don't clear status flags on NAK 2017-07-16 18:34:19 -03:00