Skip to content

Commit

Permalink
Correct spelling mistakes found using codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts authored and npentrel committed Jun 23, 2024
1 parent 73c0310 commit 2881c82
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/flow3r_bmi270/bmi2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ int8_t bmi2_get_internal_status(uint8_t *int_stat, struct bmi2_dev *dev);
* \code
* int8_t bmi2_get_internal_error_status(uint8_t *status, struct bmi2_dev *dev);
* \endcode
* @details This API gets Interanl error status.
* @details This API gets Internal error status.
*
* @param[in] status : Pointer variable to store the status of the error
* @param[out] int_stat : Pointer variable to store error bits and
Expand Down
8 changes: 4 additions & 4 deletions components/flow3r_bsp/flow3r_bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Initialize badge display. An error will be reported if the initialization
// failed.
//
// Must be called exactly once from a task and cannot be called cocurrently with
// Must be called exactly once from a task and cannot be called concurrently with
// any other flow3r_bsp_display_* functions.
//
// Side effects: initializes singleton flow3r display object. All other
// flow3r_bsp_display_* functions operate on same object.
void flow3r_bsp_display_init(void);

// Send a full framebuffer of 240x240 16bpp pixels to the display. No-op if
// display hasn't been succesfully initialized.
// display hasn't been successfully initialized.
//
// Transfer will be performed using DMA/interrupts and will block the calling
// FreeRTOS task until finished.
//
// This must not be called if another transfer is alraedy being performed. The
// This must not be called if another transfer is already being performed. The
// user code should sequence access and make sure not more than one transfer is
// performed simultaneously.
void flow3r_bsp_display_send_fb(void *fb_data, int bits);
Expand All @@ -28,7 +28,7 @@ void flow3r_bsp_display_send_fb_osd(void *fb_data, int bits, int scale,
int osd_x1, int osd_y1);

// Set display backlight, as integer percent value (from 0 to 100, clamped).
// No-op if display hasn't been succesfully initialized.
// No-op if display hasn't been successfully initialized.
void flow3r_bsp_display_set_backlight(uint8_t percent);

// Currently same on all generations. Might change on future revisions.
Expand Down
2 changes: 1 addition & 1 deletion components/flow3r_bsp/flow3r_bsp_gc9a01.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ typedef struct {
// Backlight control pin, if backlight_used.
uint8_t pin_backlight;

// Nubmer of SPI host device (ie. bus) that the display will use.
// Number of SPI host device (ie. bus) that the display will use.
spi_host_device_t host;
} flow3r_bsp_gc9a01_config_t;

Expand Down
4 changes: 2 additions & 2 deletions components/st3m/st3m_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ float st3m_gfx_fps(void);
// with ctx_end_frame()
void st3m_gfx_end_frame(Ctx *ctx);

// Initialize the gfx subsystem of st3m, includng the rasterization and
// Initialize the gfx subsystem of st3m, including the rasterization and
// crtx/blitter pipeline.
void st3m_gfx_init(void);

Expand All @@ -116,7 +116,7 @@ uint8_t st3m_gfx_pipe_available(void);
// Flush any in-flight pipelined work, resetting the free ctx/framebuffer queues
// to their initial state. This should be called if there has been any drawlist
// ctx dropped (ie. drawctx_free_get was called but then drawctx_pipe_put
// wasn't, for exaple if Micropython restarted).
// wasn't, for example if Micropython restarted).
//
// This causes a graphical disturbance and shouldn't be called during normal
// operation. wait_ms is waited for drawlits to clear.
Expand Down
4 changes: 2 additions & 2 deletions components/st3m/st3m_scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef struct {
// width).
size_t buffer_size;

// Triple-buffering for lockless exhange between free-running writer and
// Triple-buffering for lockless exchange between free-running writer and
// reader. The exchange buffer is swapped to/from by the reader/writer
// whenever they're done with a whole sample buffer.
int16_t *write_buffer;
Expand All @@ -31,7 +31,7 @@ typedef struct {
// Initialize global scope. Must be performed before any other access to scope
// is attempted.
//
// If initialization failes (eg. due to lack of memory) an error will be
// If initialization fails (eg. due to lack of memory) an error will be
// printed.
void st3m_scope_init(void);

Expand Down
4 changes: 2 additions & 2 deletions drivers/tildagon_power/fusb302b/fusb302b.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void write_bits( fusb_state_t* state, fusb_register_t reg, uint8_t value

/**
* @brief Initialise the fusb302 to a device
* @details reset the device then set comparator threshold to 2.226V, enable Vbus measurment,
* @details reset the device then set comparator threshold to 2.226V, enable Vbus measurement,
* flush buffers, enable interrupts, 3 retries and Vbus, BC level and good crc interrupts, enable toggle
* @param state the port object
*/
Expand Down Expand Up @@ -86,7 +86,7 @@ void fusb_set_cc( fusb_state_t* state, uint8_t cc_select )
}

/**
* @brief disble toggle
* @brief disable toggle
* @param state the port object
*/
void fusb_stop_toggle( fusb_state_t* state )
Expand Down
8 changes: 4 additions & 4 deletions drivers/tildagon_power/fusb302b/fusb302b.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ typedef struct
uint8_t host;
} fusb_state_t;

/**
* @brief Initialise the fusb302 to a device
* @details reset the device then set comparator threshold to 2.226V, enable Vbus measurment,
/**
* @brief Initialise the fusb302 to a device
* @details reset the device then set comparator threshold to 2.226V, enable Vbus measurement,
* flush buffers, enable interrupts, 3 retries and Vbus, BC level and good crc interrupts, enable toggle
* @param state the port object
*/
Expand All @@ -49,7 +49,7 @@ extern void fusb_setup_host( fusb_state_t* state );
*/
extern void fusb_set_cc( fusb_state_t* state, uint8_t cc_select );
/**
* @brief disble toggle
* @brief disable toggle
* @param state the port object
*/
extern void fusb_stop_toggle( fusb_state_t* state );
Expand Down
4 changes: 2 additions & 2 deletions modules/bq25895.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self, i2c_instance):
# reg 14
# device_revision = Register( 0x14, 0x03, 0 ) always reads 01
# temperature profile not used
# part_no = Register( 0x14, 0x38, 3 ) alwyas reads 111
# part_no = Register( 0x14, 0x38, 3 ) always reads 111
ICO_status = Register(0x14, 0x40, 3)
register_reset = Register(0x14, 0x80, 7)

Expand Down Expand Up @@ -318,7 +318,7 @@ def enable_conversion(self, enable=True, single=False):
Start a one shot conversion of the ADCs or enable or disable the conversion at a 1Hz rate
Args:
enable (bool): if True enable the converion.
enable (bool): if True enable the conversion.
if False disable the converter.
not used for if single is True.
single (bool): if True start a single ADC conversion
Expand Down
2 changes: 1 addition & 1 deletion modules/gc9a01py.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def color565(red, green=0, blue=0):


def _encode_pos(x, y):
"""Encode a postion into bytes."""
"""Encode a position into bytes."""
return struct.pack(_ENCODE_POS, x, y)


Expand Down
2 changes: 1 addition & 1 deletion modules/lib/bdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def write(self, addr, mvb):
addr += npage
return mvb

# Cache the sector which contains a given byte addresss. Save sector
# Cache the sector which contains a given byte address. Save sector
# start address.
def _fill_cache(self, addr):
addr &= self._fmask
Expand Down
2 changes: 1 addition & 1 deletion modules/lib/eep_i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def full_test(eep=None):
def help():
st = """Available commands:
help() Print this text.
test() Basic fuctional test.
test() Basic functional test.
full_test() Read-write test of EEPROM chip(s).
fstest() Check or create a filesystem.
cptest() Check a filesystem by copying source files to it.
Expand Down

0 comments on commit 2881c82

Please sign in to comment.