Skip to content

Commit 3623ba1

Browse files
committed
fix trailing space and new line
temporarily disable codespell
1 parent 2faad42 commit 3623ba1

File tree

581 files changed

+2553
-2694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

581 files changed

+2553
-2694
lines changed

.gitattributes

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Set the default behavior, in case people don't have core.autocrlf set.
22
* text=auto
33

4-
*.c text
5-
*.cpp text
4+
*.c text
5+
*.cpp text
66
*.h text
7-
*.icf text
7+
*.icf text
88
*.js text
99
*.json text
1010
*.ld text

.github/ISSUE_TEMPLATE/bug_report.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ body:
5454
Exact steps in chronological order, details should be specific e.g if you use a command/script to test with, please post it as well.
5555
1. Go to '...'
5656
2. Click on '....'
57-
3. See error
57+
3. See error
5858
validations:
5959
required: true
6060

@@ -63,9 +63,9 @@ body:
6363
label: Debug Log as txt file
6464
placeholder: |
6565
Attach your debug log txt file here, where the issue occurred, best with comments to explain the actual events.
66-
66+
6767
Note1: Please DO NOT paste your lengthy log contents here since it hurts the readability.
68-
Note2: To enable logging, add `LOG=3` to to the make command if building with stock examples or set `CFG_TUSB_DEBUG=3` in your tusb_config.h.
68+
Note2: To enable logging, add `LOG=3` to to the make command if building with stock examples or set `CFG_TUSB_DEBUG=3` in your tusb_config.h.
6969
More information can be found at [example's readme](https://github.com/hathach/tinyusb/blob/master/docs/getting_started.md)
7070
validations:
7171
required: false

.github/workflows/trigger.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if [ -n "$(git status --porcelain)" ]; then
4444
git add .
4545
git commit --message "Update from https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
46-
git push
46+
git push
4747
fi
4848
4949
- name: Create tinyusb_src Release
@@ -53,7 +53,7 @@ jobs:
5353
cd tinyusb_src
5454
git tag ${{ github.event.release.tag_name }}
5555
git push origin ${{ github.event.release.tag_name }}
56-
56+
5757
# Send POST reqwuest to release https://docs.github.com/en/rest/reference/repos#create-a-release
5858
bb="For release note, please checkout https://github.com/hathach/tinyusb/releases/tag/${{ github.event.release.tag_name }}"
5959
curl -X POST -H "Authorization: token ${{ secrets.API_TOKEN_GITHUB }}" -H "Accept: application/vnd.github.v3+json" --data '{"tag_name": "${{ github.event.release.tag_name }}", "name": "${{ github.event.release.name }}", "body": "$bb", "draft": ${{ github.event.release.draft }}, "prerelease": ${{ github.event.release.prerelease }}}' https://api.github.com/repos/hathach/tinyusb_src/releases

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ repos:
1313

1414
- repo: local
1515
hooks:
16-
- id: codespell
17-
name: codespell
18-
entry: codespell
19-
types_or: [c, header]
20-
language: system
16+
#- id: codespell
17+
# name: codespell
18+
# entry: codespell
19+
# types_or: [c, header]
20+
# language: system
2121

2222
- id: unit-test
2323
name: unit-test

.readthedocs.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ python:
1515
submodules:
1616
include: []
1717
recursive: false
18-

docs/assets/stack.svg

+1-1
Loading

docs/contributing/code_of_conduct.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CODE_OF_CONDUCT.rst
1+
../../CODE_OF_CONDUCT.rst

docs/info/changelog.rst

+27-27
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Changelog
1515
- Fix tu_fifo memory overflown when repeatedly write to overwritable fifo (accumulated more than 2 depths)
1616
- Better support for IAR (ARM) with ci build check for stm32 mcus.
1717
- Fix Windows build for some mingw gnu make situations
18-
18+
1919
Controller Driver (DCD & HCD)
2020
-----------------------------
2121

@@ -27,7 +27,7 @@ Controller Driver (DCD & HCD)
2727
- Fix endpoint internal state when closed
2828
- Fix reception of large ISO packets
2929

30-
- [rp2040]
30+
- [rp2040]
3131

3232
- [dcd] Implement workaround for Errata 15. This enable SOF when bulk-in endpoint is in use and reduce its bandwidth to only 80%
3333
- [hcd] Fix shared irq slots filling up when hcd_init() is called multiple times
@@ -51,7 +51,7 @@ Device Stack
5151

5252
- Support port name strings
5353
- fix MS Header wTotalLength computation
54-
54+
5555
- [HID]
5656

5757
- Add FIDO descriptor template
@@ -60,7 +60,7 @@ Device Stack
6060
- [CDC]
6161

6262
- Fix autoflush for FIFO < MPS
63-
- Fix tx fifo memory overflown when DTR is not set and tud_cdc_write() is called repeatedly with large enough data
63+
- Fix tx fifo memory overflown when DTR is not set and tud_cdc_write() is called repeatedly with large enough data
6464

6565
- [USBTMC] Fix packet size with highspeed
6666

@@ -100,14 +100,14 @@ Controller Driver (DCD & HCD)
100100
- Fix overwrite with grstctl when disable endpoint
101101
- [EHCI] Fix an issue with EHCI driver
102102
- [msp430] Fix for possible bug in msp430-elf-gcc 9.3.0
103-
- [nrf5x] Fix DMA access race condition using atomic function
103+
- [nrf5x] Fix DMA access race condition using atomic function
104104
- [pic32] Fix PIC32 santiy
105105
- [rp2040]
106106

107107
- Add PICO-PIO-USB as controller (device/host) support for rp2040
108108
- Use shared IRQ handlers, so user can also hook the USB IRQ
109109
- Fix resumed signal not reported to device stack
110-
- [stm32fsdev] Add support for stm32wb55
110+
- [stm32fsdev] Add support for stm32wb55
111111

112112
Device Stack
113113
------------
@@ -159,7 +159,7 @@ Controller Driver (DCD & HCD)
159159
- [F1C100s] Add new DCD for Allwinner F1C100s family
160160
- [PIC32MZ] Add new DCD for PIC32MZ
161161
- [nRF] Fix/Enhance various race condition with: EASY DMA, request HFXO, EPOUT
162-
- [ChipIdea] rename Transdimension to more popular ChipIdea Highspeed,
162+
- [ChipIdea] rename Transdimension to more popular ChipIdea Highspeed,
163163
- [RP2040] various update/fix for hcd/dcd
164164
- [FT9XX] new DCD port for Bridgetek FT90x and FT93x devices
165165
- [DA1469X] Fix resume
@@ -246,7 +246,7 @@ RP2040
246246
^^^^^^
247247

248248
- Add RP2040 suspend & resume support
249-
- Implement double buffer for both host and device (#891). However device EPOUT is still single buffered due to techinical issue with short packet
249+
- Implement double buffer for both host and device (#891). However device EPOUT is still single buffered due to techinical issue with short packet
250250

251251
Device Stack
252252
------------
@@ -267,7 +267,7 @@ DFU
267267
^^^
268268

269269
- Enhance DFU implementation to support multiple alternate interface and better support bwPollTimeout
270-
- Rename CFG_TUD_DFU_MODE to simply CFG_TUD_DFU
270+
- Rename CFG_TUD_DFU_MODE to simply CFG_TUD_DFU
271271

272272
HID
273273
^^^
@@ -287,7 +287,7 @@ UAC2
287287
^^^^
288288

289289
- Fix bug and enhance of UAC2
290-
290+
291291
Vendor
292292
^^^^^^
293293

@@ -479,7 +479,7 @@ Host Controller Driver (HCD)
479479
- Move echi/ohci files to portable/
480480
- Rename hcd_lpc18_43 to hcd_transdimension
481481
- Sub hcd API with hcd_ehci_init(), hcd_ehci_register_addr()
482-
482+
483483
- Update NXP transdimention hcd_init() to reset controller to host mode
484484

485485
- Ported hcd to rt10xx
@@ -529,13 +529,13 @@ Device Controller Driver
529529

530530
- ESP32-S2:
531531
- Add bus suspend and wakeup support
532-
532+
533533
- SAMD21:
534534
- Fix (walkaround) samd21 setup_packet overflow by USB DMA
535-
535+
536536
- STM32 Synopsys:
537537
- Rework USB FIFO allocation scheme and allow RX FIFO size reduction
538-
538+
539539
- Sony CXD56
540540
- Update Update Spresense SDK to 2.0.2
541541
- Fix dcd issues with setup packets
@@ -554,17 +554,17 @@ USB Device
554554

555555
- CDC
556556
- Allow to transmit data, even if the host does not support control line states i.e set DTR
557-
557+
558558
- HID
559559
- change default CFG_TUD_HID_EP_BUFSIZE from 16 to 64
560-
560+
561561
- MIDI
562562
- Fix midi sysex sending bug
563-
563+
564564
- MSC
565565
- Invoke only scsi complete callback after status transaction is complete.
566566
- Fix scsi_mode_sense6_t padding, which cause IAR compiler internal error.
567-
567+
568568
- USBTMC
569569
- Change interrupt endpoint example size to 8 instead of 2 for better compatibility with mcu
570570

@@ -614,20 +614,20 @@ Device Controller Driver
614614
- Fix FIFO flush during stall
615615
- Implement dcd_edpt_close() API
616616
- Support F105, F107
617-
617+
618618
- Enhance STM32 fsdev
619619
- Improve dcd fifo allocation
620620
- Fix ISTR race condition
621621
- Support remap USB IRQ on supported MCUs
622622
- Implement dcd_edpt_close() API
623-
623+
624624
- Enhance NUC 505: enhance set configure behavior
625625

626626
- Enhance SAMD
627627
- Fix race condition with setup packet
628628
- Add SAMD11 option `OPT_MCU_SAMD11`
629629
- Add SAME5x option `OPT_MCU_SAME5X`
630-
630+
631631
- Fix SAMG control data toggle and stall race condition
632632

633633
- Enhance nRF
@@ -659,7 +659,7 @@ USB Device
659659
- `usbd_driver_open()` add max length argument, and return length of interface (0 for not supported). Return value is used for finding appropriate driver
660660
- Add application implemented class driver via `usbd_app_driver_get_cb()`
661661
- IAD is handled to assign driver id
662-
662+
663663
- Added `tud_descriptor_device_qualifier_cb()` callback
664664
- Optimize `tu_fifo` bulk write/read transfer
665665
- Forward non-std control request to class driver
@@ -675,20 +675,20 @@ USB Device
675675
- Send zero length packet for end of data when needed
676676
- Add `tud_cdc_tx_complete_cb()` callback
677677
- Change tud_cdc_n_write_flush() return number of bytes forced to transfer, and flush when writing enough data to fifo
678-
678+
679679
- MIDI:
680680
- Add packet interface
681681
- Add multiple jack descriptors
682682
- Fix MIDI driver for sysex
683-
683+
684684
- DFU Runtime: fix response to SET_INTERFACE and DFU_GETSTATUS request
685685

686686
- Rename some configure macro to make it clear that those are used directly for endpoint transfer
687687
- CFG_TUD_HID_BUFSIZE to CFG_TUD_HID_EP_BUFSIZE
688688
- CFG_TUD_CDC_EPSIZE to CFG_TUD_CDC_EP_BUFSIZE
689689
- CFG_TUD_MSC_BUFSIZE to CFG_TUD_MSC_EP_BUFSIZE
690690
- CFG_TUD_MIDI_EPSIZE to CFG_TUD_MIDI_EP_BUFSIZE
691-
691+
692692
- HID:
693693
- Fix gamepad template descriptor
694694
- Add multiple HID interface API
@@ -700,7 +700,7 @@ USB Host
700700
- Rework USB host stack (still work in progress)
701701
- Fix compile error with pipehandle
702702
- Rework usbh control and enumeration as non-blocking
703-
703+
704704
- Improve Hub, MSC, HID host driver
705705

706706
Examples
@@ -713,7 +713,7 @@ Examples
713713
- Enhance `net_lwip_webserver` example
714714
- Add multiple configuration: RNDIS for Windows, CDC-ECM for macOS (Linux will work with both)
715715
- Update lwip to STABLE-2_1_2_RELEASE for net_lwip_webserver
716-
716+
717717
- Added new Audio example: audio_test uac2_headsest
718718

719719
New Boards

docs/info/contributors.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CONTRIBUTORS.rst
1+
../../CONTRIBUTORS.rst

docs/reference/getting_started.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ For your convenience, TinyUSB contains a handful of examples for both host and d
4444
$ git clone https://github.com/hathach/tinyusb tinyusb
4545
$ cd tinyusb
4646
47-
Some TinyUSB examples also requires external submodule libraries in ``/lib`` such as FreeRTOS, Lightweight IP to build. Run following command to fetch them
47+
Some TinyUSB examples also requires external submodule libraries in ``/lib`` such as FreeRTOS, Lightweight IP to build. Run following command to fetch them
4848

4949
.. code-block::
5050
5151
$ git submodule update --init lib
5252
53-
Some ports will also require a port-specific SDK (e.g. RP2040) or binary (e.g. Sony Spresense) to build examples. They are out of scope for tinyusb, you should download/install it first according to its manufacturer guide.
53+
Some ports will also require a port-specific SDK (e.g. RP2040) or binary (e.g. Sony Spresense) to build examples. They are out of scope for tinyusb, you should download/install it first according to its manufacturer guide.
5454

5555
Build
5656
^^^^^
5757

58-
To build example, first change directory to an example folder.
58+
To build example, first change directory to an example folder.
5959

6060
.. code-block::
6161
@@ -118,7 +118,7 @@ To compile for debugging add ``DEBUG=1``\ , for example
118118
Log
119119
~~~
120120

121-
Should you have an issue running example and/or submitting an bug report. You could enable TinyUSB built-in debug logging with optional ``LOG=``. LOG=1 will only print out error message, LOG=2 print more information with on-going events. LOG=3 or higher is not used yet.
121+
Should you have an issue running example and/or submitting an bug report. You could enable TinyUSB built-in debug logging with optional ``LOG=``. LOG=1 will only print out error message, LOG=2 print more information with on-going events. LOG=3 or higher is not used yet.
122122

123123
.. code-block::
124124
@@ -127,7 +127,7 @@ Should you have an issue running example and/or submitting an bug report. You co
127127
Logger
128128
~~~~~~
129129

130-
By default log message is printed via on-board UART which is slow and take lots of CPU time comparing to USB speed. If your board support on-board/external debugger, it would be more efficient to use it for logging. There are 2 protocols:
130+
By default log message is printed via on-board UART which is slow and take lots of CPU time comparing to USB speed. If your board support on-board/external debugger, it would be more efficient to use it for logging. There are 2 protocols:
131131

132132

133133
* `LOGGER=rtt`: use `Segger RTT protocol <https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/>`_
@@ -178,12 +178,12 @@ IAR Project Connection files are provided to import TinyUSB stack into your proj
178178

179179

180180
* Take example of STM32F0:
181-
181+
182182
- You need `stm32l0xx.h`, `startup_stm32f0xx.s`, `system_stm32f0xx.c`.
183183

184184
- `STM32L0xx_HAL_Driver` is only needed to run examples, TinyUSB stack itself doesn't rely on MCU's SDKs.
185185

186-
* Open `Tools -> Configure Custom Argument Variables` (Switch to `Global` tab if you want to do it for all your projects)
186+
* Open `Tools -> Configure Custom Argument Variables` (Switch to `Global` tab if you want to do it for all your projects)
187187
Click `New Group ...`, name it to `TUSB`, Click `Add Variable ...`, name it to `TUSB_DIR`, change it's value to the path of your TinyUSB stack,
188188
for example `C:\\tinyusb`
189189

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mcu:SAMD11
22
mcu:SAME5X
3-
mcu:SAMG
3+
mcu:SAMG

examples/device/audio_4_channel_mic/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* The MIT License (MIT)
33
*
44
* Copyright (c) 2020 Reinhard Panhuber

examples/device/audio_4_channel_mic/src/plot_audio_samples.py

-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@
3131
plt.ylabel('Amplitude')
3232
plt.title('MicNode 4 Channel')
3333
plt.show()
34-

examples/device/audio_4_channel_mic/src/usb_descriptors.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* The MIT License (MIT)
33
*
44
* Copyright (c) 2019 Ha Thach (tinyusb.org)

examples/device/audio_test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ target_include_directories(${PROJECT} PUBLIC
2525

2626
# Configure compilation flags and libraries for the example... see the corresponding function
2727
# in hw/bsp/FAMILY/family.cmake for details.
28-
family_configure_device_example(${PROJECT})
28+
family_configure_device_example(${PROJECT})

examples/device/audio_test/skip.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mcu:SAMD11
22
mcu:SAME5X
3-
mcu:SAMG
3+
mcu:SAMG

examples/device/audio_test/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* The MIT License (MIT)
33
*
44
* Copyright (c) 2020 Reinhard Panhuber

0 commit comments

Comments
 (0)