diff options
| author | Nathan Conrad <[email protected]> | 2020-04-08 11:51:33 -0400 |
|---|---|---|
| committer | Nathan Conrad <[email protected]> | 2020-04-09 17:03:12 -0400 |
| commit | 715c4dbbf8fe7c6bb83013df626a201928704b30 (patch) | |
| tree | f2379e646562b08cbb099c36956a37594d424dfa /docs | |
| parent | d6578823bb405cacbda13a044b66ba0a4f16a3d4 (diff) | |
stm32fsdev: Implement dcd_connect.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/porting.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/porting.md b/docs/porting.md index deb1b9efb..7d7d4cdb1 100644 --- a/docs/porting.md +++ b/docs/porting.md @@ -62,6 +62,8 @@ All of the code for the low-level device API is in `src/portable/<vendor>/<chip ##### dcd_init Initializes the USB peripheral for device mode and enables it. +If the MCU has an internal pull-up, this function should leave it disabled. + #### dcd_int_enable / dcd_int_disable Enables or disables the USB device interrupt(s). May be used to prevent concurrency issues when mutating data structures shared between main code and the interrupt handler. @@ -77,6 +79,10 @@ Called when the device received SET_CONFIG request, you can leave this empty if ##### dcd_remote_wakeup Called to remote wake up host when suspended (e.g hid keyboard) +##### dcd_connect / dcd_disconnect + +Connect or disconnect the data-line pull-up resistor. Define as a weak function if the MCU has an internal pull-up, otherwise do not define. + #### Special events You must let TinyUSB know when certain events occur so that it can continue its work. There are a few methods you can call to queue events for TinyUSB to process. |
