Skip to content

Commit

Permalink
Update the STM32 documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Okarss committed Jun 14, 2024
1 parent 0ac0c37 commit 5f060a3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ Following CPUs are supported, check out `Supported Devices`_ for comprehensive l
+--------------+------------------------------------------------------------+
| Sony | CXD56 |
+--------------+------------------------------------------------------------+
| ST STM32 | F0, F1, F2, F3, F4, F7, H5, H7, G0, G4, L0, L1, L4, L4+, |
| | U5, WB |
| ST STM32 | F0, F1, F2, F3, F4, F7, G0, G4, H5, H7, |
| | |
| | L0, L1, L4, L4+, L5, U5, WB |
+--------------+------------------------------------------------------------+
| TI | MSP430, MSP432E4, TM4C123 |
+--------------+------------------------------------------------------------+
Expand Down
20 changes: 17 additions & 3 deletions docs/reference/supported.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,32 @@ Supported MCUs
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | F7 || || dwc2 | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | H7 || | | dwc2 | |
| | G0 || | | stm32_fsdev | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | G4 |||| stm32_fsdev | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | L0, L1 |||| stm32_fsdev | |
| | H5 |||| stm32_fsdev | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | H7 || || dwc2 | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | L0 |||| stm32_fsdev | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | L1 |||| stm32_fsdev | |
| +----+------------------+--------+------+-----------+-------------------+--------------+
| | L4 | 4x2, 4x3 |||| stm32_fsdev | |
| | +------------------+--------+------+-----------+-------------------+--------------+
| | | 4x5, 4x6 || | | dwc2 | |
| +----+------------------+--------+------+-----------+-------------------+--------------+
| | L4+ || | | dwc2 | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | U5 || | | dwc2 | |
| | L5 || | | stm32_fsdev | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | U5 | 535, 545 |||| stm32_fsdev | |
| | +------------------+--------+------+-----------+-------------------+--------------+
| | | 575, 585 || || dwc2 | |
| | +------------------+--------+------+-----------+-------------------+--------------+
| | | 59x,5Ax,5Fx,5Gx || || dwc2 | |
| +----+------------------+--------+------+-----------+-------------------+--------------+
| | WBx5 || | | stm32_fsdev | |
+--------------+-----------------------+--------+------+-----------+-------------------+--------------+
| TI | MSP430 |||| msp430x5xx | |
Expand All @@ -129,7 +141,9 @@ Supported MCUs
| ValentyUSB | eptri |||| eptri | |
+--------------+-----------------------+--------+------+-----------+-------------------+--------------+
| WCH | CH32F20x || || ch32f205 | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | CH32V20x || || ch32v20x | |
| +-----------------------+--------+------+-----------+-------------------+--------------+
| | CH32V307 || || ch32v307 | |
+--------------+-----------------------+--------+------+-----------+-------------------+--------------+

Expand Down
10 changes: 8 additions & 2 deletions src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,20 @@
* It also should work with minimal changes for any ST MCU with an "USB A"/"PCD"/"HCD" peripheral. This
* covers:
*
* F04x, F072, F078, 070x6/B 1024 byte buffer
* F04x, F072, F078, F070x6/B 1024 byte buffer
* F102, F103 512 byte buffer; no internal D+ pull-up (maybe many more changes?)
* F302xB/C, F303xB/C, F373 512 byte buffer; no internal D+ pull-up
* F302x6/8, F302xD/E2, F303xD/E 1024 byte buffer; no internal D+ pull-up
* G0 2048 byte buffer; 32-bit bus
* G4 1024 byte buffer
* H5 2048 byte buffer; 32-bit bus
* L0x2, L0x3 1024 byte buffer
* L1 512 byte buffer
* L4x2, L4x3 1024 byte buffer
* G0 2048 byte buffer
* L5 1024 byte buffer
* U0 1024 byte buffer; 32-bit bus
* U535, U545 2048 byte buffer; 32-bit bus
* WB35, WB55 1024 byte buffer
*
* To use this driver, you must:
* - If you are using a device with crystal-less USB, set up the clock recovery system (CRS)
Expand Down
2 changes: 1 addition & 1 deletion src/portable/st/stm32_fsdev/fsdev_stm32.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@

#else
#error You are using an untested or unimplemented STM32 variant. Please update the driver.
// This includes L1x0, L1x1, L1x2, L4x2 and L4x3, G1x1, G1x3, and G1x4
// This includes U0
#endif

// This checks if the device has "LPM"
Expand Down

0 comments on commit 5f060a3

Please sign in to comment.