Skip to content

Commit d6d2499

Browse files
authored
Merge pull request hathach#1695 from hadess/wip/hadess/fix-typos
Fix typos
2 parents f24f47d + 43b255f commit d6d2499

File tree

102 files changed

+176
-176
lines changed

Some content is hidden

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

102 files changed

+176
-176
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ body:
6464
placeholder: |
6565
Attach your debug log txt file here, where the issue occurred, best with comments to explain the actual events.
6666
67-
Note1: Please DO NOT paste your lengthy log contents here since it hurts the readibility.
67+
Note1: Please DO NOT paste your lengthy log contents here since it hurts the readability.
6868
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:

docs/contributing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Contributing can be highly rewarding, but it can also be frustrating at times.
66
It takes time to review patches, and as this is an open source project, that
77
sometimes can take a while. The reviewing process depends on the availability
88
of the maintainers, who may not be always available. Please try to be
9-
understanding throught the process.
9+
understanding through the process.
1010

1111
There a few guidelines you need to keep in mind when contributing. Please have
1212
a look at them as that will make the contribution process easier for all

docs/contributing/porting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Others (like the nRF52) may need each USB packet queued individually. To make th
195195
some state for yourself and queue up an intermediate USB packet from the interrupt handler.
196196

197197
Once the transaction is going, the interrupt handler will notify TinyUSB of transfer completion.
198-
During transmission, the IN data buffer is guarenteed to remain unchanged in memory until the ``dcd_xfer_complete`` function is called.
198+
During transmission, the IN data buffer is guaranteed to remain unchanged in memory until the ``dcd_xfer_complete`` function is called.
199199

200200
The dcd_edpt_xfer function must never add zero-length-packets (ZLP) on its own to a transfer. If a ZLP is required,
201201
then it must be explicitly sent by the stack calling dcd_edpt_xfer(), by calling dcd_edpt_xfer() a second time with len=0.
@@ -238,4 +238,4 @@ Use `WireShark <https://www.wireshark.org/>`_ or `a Beagle <https://www.totalpha
238238

239239
* If the host sends a SETUP packet and its not ACKed then your USB peripheral probably isn't started correctly.
240240
* If the peripheral is started correctly but it still didn't work, then verify your usb clock is correct. (You did output a PWM based on it right? ;-) )
241-
* If the SETUP packet is ACKed but nothing is sent back then you interrupt handler isn't queueing the setup packet correctly. (Also, if you are using your own code instead of an example ``tud_task`` may not be called.) If thats OK, the ``dcd_xfer_complete`` may not be setting up the next transaction correctly.
241+
* If the SETUP packet is ACKed but nothing is sent back then you interrupt handler isn't queueing the setup packet correctly. (Also, if you are using your own code instead of an example ``tud_task`` may not be called.) If that's OK, the ``dcd_xfer_complete`` may not be setting up the next transaction correctly.

docs/info/changelog.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ Controller Driver (DCD & HCD)
7878
- [MUSB] Add new DCD and HCD for Mentor musb with TI MSP432E4
7979
- [F1C100s] Add new DCD for Allwinner F1C100s family
8080
- [PIC32MZ] Add new DCD for PIC32MZ
81-
- [nRF] Fix/Enhance varous race condtion with: EASY DMA, request HFXO, EPOUT
81+
- [nRF] Fix/Enhance various race condition with: EASY DMA, request HFXO, EPOUT
8282
- [ChipIdea] rename Transdimension to more popular ChipIdea Highspeed,
8383
- [RP2040] various update/fix for hcd/dcd
8484
- [FT9XX] new DCD port for Bridgetek FT90x and FT93x devices
8585
- [DA1469X] Fix resume
8686
- [OHCI] Fix device array out of bound
8787

88-
Note: legacy drivers such as st/synopsys, nxp/transdimension are still present in this release but won't recieve more update and could be removed in the future.
88+
Note: legacy drivers such as st/synopsys, nxp/transdimension are still present in this release but won't receive more update and could be removed in the future.
8989

9090
Device Stack
9191
------------
@@ -166,7 +166,7 @@ RP2040
166166
^^^^^^
167167

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

171171
Device Stack
172172
------------
@@ -175,7 +175,7 @@ USBD
175175
^^^^
176176

177177
- Better support big endian mcu
178-
- Add tuh_inited() and tud_inited(), will separte tusb_init/inited() to tud/tuh init/inited
178+
- Add tuh_inited() and tud_inited(), will separate tusb_init/inited() to tud/tuh init/inited
179179
- Add dcd_attr.h for defining common controller attribute such as max endpoints
180180

181181
Bluetooth
@@ -220,16 +220,16 @@ Host Controller Driver (HCD)
220220
RP2040
221221
^^^^^^
222222

223-
- Implement double bufferred to fix E4 errata and boost performance
224-
- Lots of rp2040 update and enhancment
223+
- Implement double buffered to fix E4 errata and boost performance
224+
- Lots of rp2040 update and enhancement
225225

226226
Host Stack
227227
----------
228228

229229
- Major update and rework most of host stack, still needs more improvement
230230
- Lots of improvement and update in parsing configuration and control
231231
- Rework and major update to HID driver. Will default to enable boot interface if available
232-
- Sepearate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB for better management and reduce SRAM usage
232+
- Separate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB for better management and reduce SRAM usage
233233

234234
0.10.1 (2021-06-03)
235235
===================
@@ -306,12 +306,12 @@ MIDI
306306
Host Controller Driver (HCD)
307307
----------------------------
308308

309-
- No noticable changes
309+
- No noticeable changes
310310

311311
USB Host Driver (USBH)
312312
----------------------
313313

314-
- No noticable changes
314+
- No noticeable changes
315315

316316
Host Class Driver
317317
-----------------
@@ -384,7 +384,7 @@ HID
384384
MIDI
385385

386386
- Fix dropping MIDI sysex message when fifo is full
387-
- Fix typo in tud_midi_write24(), make example less ambigous for cable and channel
387+
- Fix typo in tud_midi_write24(), make example less ambiguous for cable and channel
388388
- Fix incorrect endpoint descriptor length, MIDI v1 use Audio v1 which has 9-byte endpoint descriptor (instead of 7)
389389

390390
Host Stack
@@ -699,7 +699,7 @@ Changed
699699
- Generalized dcd_stm32f4.c to dcd_synopsys.c
700700
- Changed cdc_msc_hid to cdc_msc (drop hid) due to limited endpoints number of some MCUs
701701
- Improved DCD SAMD stability, fix missing setup packet occasionally
702-
- Improved usbd/usbd_control with proper hanlding of zero-length packet (ZLP)
702+
- Improved usbd/usbd_control with proper handling of zero-length packet (ZLP)
703703
- Improved STM32 DCD FSDev
704704
- Improved STM32 DCD Synopsys
705705
- Migrated CI from Travis to Github Action

examples/device/cdc_msc/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void cdc_task(void)
113113
// connected and there are data available
114114
if ( tud_cdc_available() )
115115
{
116-
// read datas
116+
// read data
117117
char buf[64];
118118
uint32_t count = tud_cdc_read(buf, sizeof(buf));
119119
(void) count;

examples/device/cdc_msc_freertos/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.5)
22

33
# TOP is absolute path to root directory of TinyUSB git repo
4-
# needed for esp32sx build. TOOD could be removed later on
4+
# needed for esp32sx build. TODO could be removed later on
55
set(TOP "../../..")
66
get_filename_component(TOP "${TOP}" REALPATH)
77

examples/device/dfu_runtime/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* $ dfu-util -e
3333
*
34-
* This will send DETTACH command to put device into bootloader. Since this example
34+
* This will send DETACH command to put device into bootloader. Since this example
3535
* is minimal, it doesn't actually go into DFU mode but rather change the LED blinking
3636
* pattern to fast rate as indicator.
3737
*/

examples/device/hid_boot_interface/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ void hid_task(void)
157157
{
158158
uint8_t const report_id = 0;
159159
uint8_t const button_mask = 0;
160-
uint8_t const veritical = 0;
160+
uint8_t const vertical = 0;
161161
uint8_t const horizontal = 0;
162162
int8_t const delta = 5;
163163

164-
tud_hid_n_mouse_report(ITF_NUM_MOUSE, report_id, button_mask, delta, delta, veritical, horizontal);
164+
tud_hid_n_mouse_report(ITF_NUM_MOUSE, report_id, button_mask, delta, delta, vertical, horizontal);
165165
}
166166
}
167167
}
@@ -175,7 +175,7 @@ void tud_hid_set_protocol_cb(uint8_t instance, uint8_t protocol)
175175
(void) protocol;
176176

177177
// nothing to do since we use the same compatible boot report for both Boot and Report mode.
178-
// TOOD set a indicator for user
178+
// TODO set a indicator for user
179179
}
180180

181181
// Invoked when sent REPORT successfully to host

examples/device/hid_generic_inout/hid_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
if dev:
1414
while True:
1515
# Get input from console and encode to UTF8 for array of chars.
16-
# hid generic inout is single report therefore by HIDAPI requirement
17-
# it must be preceeded with 0x00 as dummy reportID
16+
# hid generic in/out is single report therefore by HIDAPI requirement
17+
# it must be preceded, with 0x00 as dummy reportID
1818
str_out = b'\x00'
1919
str_out += input("Send text to HID Device : ").encode('utf-8')
2020
dev.write(str_out)

examples/host/cdc_msc_hid/src/hid_app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static void process_generic_report(uint8_t dev_addr, uint8_t instance, uint8_t c
247247
// Composite report, 1st byte is report ID, data starts from 2nd byte
248248
uint8_t const rpt_id = report[0];
249249

250-
// Find report id in the arrray
250+
// Find report id in the array
251251
for(uint8_t i=0; i<rpt_count; i++)
252252
{
253253
if (rpt_id == rpt_info_arr[i].report_id )

0 commit comments

Comments
 (0)