mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Fix spelling (#128)
* Fix spelling in .cpp files * Fix spelling in all files
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"""This module implements enough functionality to program the STM32F4xx over
|
||||
DFU, without requiring dfu-util.
|
||||
See app note AN3156 for a description of the DFU protocol.
|
||||
See document UM0391 for a dscription of the DFuse file.
|
||||
See document UM0391 for a description of the DFuse file.
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
@@ -13,7 +13,7 @@ def parse_line(line):
|
||||
|
||||
readelf_output = subprocess.check_output([
|
||||
"arm-none-eabi-readelf",
|
||||
"-W", # Don't limit line lenght
|
||||
"-W", # Don't limit line length
|
||||
"-s", # Sizes
|
||||
sys.argv[1]
|
||||
]).decode('utf-8')
|
||||
|
||||
@@ -55,7 +55,7 @@ def methodtrace(logger):
|
||||
if not _enable_tracing:
|
||||
return f
|
||||
def do_trace(*args, **named_args):
|
||||
# this if is just a optimization to avoid unecessary string formatting
|
||||
# this if is just a optimization to avoid unnecessary string formatting
|
||||
if logging.DEBUG >= logger.getEffectiveLevel():
|
||||
fn = type(args[0]).__name__ + '.' + f.__name__
|
||||
_trace_function_call(logger, fn, *args[1:], **named_args)
|
||||
@@ -70,7 +70,7 @@ def functiontrace(logger):
|
||||
if not _enable_tracing:
|
||||
return f
|
||||
def do_trace(*args, **named_args):
|
||||
# this if is just a optimization to avoid unecessary string formatting
|
||||
# this if is just a optimization to avoid unnecessary string formatting
|
||||
if logging.DEBUG >= logger.getEffectiveLevel():
|
||||
_trace_function_call(logger, f.__name__, *args, **named_args)
|
||||
return f(*args, **named_args)
|
||||
|
||||
@@ -35,7 +35,7 @@ This module exports:
|
||||
IBackend - backend interface.
|
||||
|
||||
Backends are Python objects which implement the IBackend interface.
|
||||
The easiest way to do so is inherinting from IBackend.
|
||||
The easiest way to do so is inheriting from IBackend.
|
||||
|
||||
PyUSB already provides backends for libusb versions 0.1 and 1.0,
|
||||
and OpenUSB library. Backends modules included with PyUSB are required to
|
||||
@@ -87,7 +87,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
|
||||
IBackend is the basic interface for backend implementations. By default,
|
||||
the methods of the interface raise a NotImplementedError exception. A
|
||||
backend implementation should replace the methods to provide the funcionality
|
||||
backend implementation should replace the methods to provide the functionality
|
||||
necessary.
|
||||
|
||||
As Python is a dynamic typed language, you are not obligated to inherit from
|
||||
@@ -126,7 +126,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
r"""Return a configuration descriptor of the given device.
|
||||
|
||||
The object returned is required to have all the Configuration Descriptor
|
||||
fields acessible as member variables. They must be convertible (but
|
||||
fields accessible as member variables. They must be convertible (but
|
||||
not required to be equal) to the int type.
|
||||
|
||||
The dev parameter is the device identification object.
|
||||
@@ -156,7 +156,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
r"""Return an endpoint descriptor of the given device.
|
||||
|
||||
The object returned is required to have all the Endpoint Descriptor
|
||||
fields acessible as member variables. They must be convertible (but
|
||||
fields accessible as member variables. They must be convertible (but
|
||||
not required to be equal) to the int type.
|
||||
|
||||
The ep parameter is the endpoint logical index (not the bEndpointAddress
|
||||
@@ -246,7 +246,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The data parameter
|
||||
is the data to be sent. It must be an instance of the array.array
|
||||
class. The timeout parameter specifies a time limit to the operation
|
||||
in miliseconds.
|
||||
in milliseconds.
|
||||
|
||||
The method returns the number of bytes written.
|
||||
"""
|
||||
@@ -261,7 +261,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The buff parameter
|
||||
is the buffer to receive the data read, the length of the buffer
|
||||
tells how many bytes should be read. The timeout parameter
|
||||
specifies a time limit to the operation in miliseconds.
|
||||
specifies a time limit to the operation in milliseconds.
|
||||
|
||||
The method returns the number of bytes actually read.
|
||||
"""
|
||||
@@ -276,7 +276,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The data parameter
|
||||
is the data to be sent. It must be an instance of the array.array
|
||||
class. The timeout parameter specifies a time limit to the operation
|
||||
in miliseconds.
|
||||
in milliseconds.
|
||||
|
||||
The method returns the number of bytes written.
|
||||
"""
|
||||
@@ -291,7 +291,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The buff parameter
|
||||
is the buffer to receive the data read, the length of the buffer
|
||||
tells how many bytes should be read. The timeout parameter
|
||||
specifies a time limit to the operation in miliseconds.
|
||||
specifies a time limit to the operation in milliseconds.
|
||||
|
||||
The method returns the number of bytes actually read.
|
||||
"""
|
||||
@@ -306,7 +306,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The data parameter
|
||||
is the data to be sent. It must be an instance of the array.array
|
||||
class. The timeout parameter specifies a time limit to the operation
|
||||
in miliseconds.
|
||||
in milliseconds.
|
||||
|
||||
The method returns the number of bytes written.
|
||||
"""
|
||||
@@ -321,7 +321,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
of the interface containing the endpoint. The buff parameter
|
||||
is buffer to receive the data read, the length of the buffer tells
|
||||
how many bytes should be read. The timeout parameter specifies
|
||||
a time limit to the operation in miliseconds.
|
||||
a time limit to the operation in milliseconds.
|
||||
|
||||
The method returns the number of bytes actually read.
|
||||
"""
|
||||
@@ -347,7 +347,7 @@ class IBackend(_objfinalizer.AutoFinalizedObject):
|
||||
IN requests it is the buffer to hold the data read. The number
|
||||
of bytes requested to transmit or receive is equal to the length
|
||||
of the array times the data.itemsize field. The timeout parameter
|
||||
specifies a time limit to the operation in miliseconds.
|
||||
specifies a time limit to the operation in milliseconds.
|
||||
|
||||
Return the number of bytes written (for OUT transfers) or the data
|
||||
read (for IN transfers), as an array.array object.
|
||||
|
||||
@@ -300,7 +300,7 @@ def _setup_prototypes(lib):
|
||||
# void libusb_exit (struct libusb_context *ctx)
|
||||
lib.libusb_exit.argtypes = [c_void_p]
|
||||
|
||||
# ssize_t libusb_get_device_list (libusb_context *ctx,
|
||||
# size_t libusb_get_device_list (libusb_context *ctx,
|
||||
# libusb_device ***list)
|
||||
lib.libusb_get_device_list.argtypes = [
|
||||
c_void_p,
|
||||
|
||||
@@ -735,7 +735,7 @@ class Device(_objfinalizer.AutoFinalizedObject):
|
||||
value for most devices) and then writes some data to the endpoint 0x01.
|
||||
|
||||
Timeout values for the write, read and ctrl_transfer methods are specified
|
||||
in miliseconds. If the parameter is omitted, Device.default_timeout value
|
||||
in milliseconds. If the parameter is omitted, Device.default_timeout value
|
||||
will be used instead. This property can be set by the user at anytime.
|
||||
"""
|
||||
|
||||
@@ -961,7 +961,7 @@ class Device(_objfinalizer.AutoFinalizedObject):
|
||||
The data parameter should be a sequence like type convertible to
|
||||
the array type (see array module).
|
||||
|
||||
The timeout is specified in miliseconds.
|
||||
The timeout is specified in milliseconds.
|
||||
|
||||
The method returns the number of bytes written.
|
||||
"""
|
||||
@@ -993,7 +993,7 @@ class Device(_objfinalizer.AutoFinalizedObject):
|
||||
tells how many bytes you want to read or supplies the buffer to
|
||||
receive the data (it *must* be an object of the type array).
|
||||
|
||||
The timeout is specified in miliseconds.
|
||||
The timeout is specified in milliseconds.
|
||||
|
||||
If the size_or_buffer parameter is the number of bytes to read, the
|
||||
method returns an array object with the data read. If the
|
||||
|
||||
Reference in New Issue
Block a user