mirror of
https://github.com/Dasharo/ec.git
synced 2026-06-13 10:16:44 -07:00
tree-wide: fix typos from codespell
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
This commit is contained in:
@@ -72,7 +72,7 @@ fi
|
||||
|
||||
docker run --rm -v "$PWD":"$PWD" -w "$PWD" -u "$(id -u)" \
|
||||
ghcr.io/dasharo/ec-sdk:main make BOARD="${EC_BOARD_VENDOR}/${EC_BOARD_MODEL}"
|
||||
errorCheck "Failed to build EC fimware"
|
||||
errorCheck "Failed to build EC firmware"
|
||||
|
||||
cp "$EC_ROM" "$EC_ARTIFACT"
|
||||
errorCheck "Failed to rename EC firmware"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# System76 EC documetation
|
||||
# System76 EC documentation
|
||||
|
||||
## TODO
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Keyboard layout customization
|
||||
|
||||
System76 EC firmware suppports using custom keyboard layouts. For example,
|
||||
System76 EC firmware supports using custom keyboard layouts. For example,
|
||||
having the physical "Caps Lock" key function as "Escape" when pressed.
|
||||
|
||||
This only applies to the internal keyboard. External keyboards are not
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SDCC extenstions that need to be defined away for spatch
|
||||
// SDCC extensions that need to be defined away for spatch
|
||||
|
||||
#define __at(x)
|
||||
#define __code
|
||||
|
||||
@@ -43,10 +43,10 @@ void flash_write_enable(void);
|
||||
* NOTE: This *must* be the first function in this file to ensure that it is placed
|
||||
* first in the resulting binary. This is required to ensure that address
|
||||
* matches the address (FLASH_OFFSET) for flash_entry in wrapper.c.
|
||||
* NOTE: __reentrant so that parameters and temperary vairables are placed on the
|
||||
* NOTE: __reentrant so that parameters and temporary variables are placed on the
|
||||
* stack, ensuring the main application __data variables are not stomped on.
|
||||
* NOTE: __critical to ensure interrupts are disabled. This does mean that interrupt
|
||||
* such as the timer will be block until flash acccess is complete
|
||||
* such as the timer will be block until flash access is complete
|
||||
*/
|
||||
// clang-format off
|
||||
void flash_entry(uint32_t addr, uint8_t *data, uint32_t length, uint8_t command) __reentrant __critical {
|
||||
|
||||
+2
-2
@@ -129,7 +129,7 @@ static int16_t i2c_transaction(struct I2C *i2c, uint8_t *data, uint16_t length,
|
||||
uint32_t timeout = I2C_TIMEOUT;
|
||||
for (timeout = I2C_TIMEOUT; timeout > 0; timeout--) {
|
||||
status = *(i2c->hosta);
|
||||
// If error occured, kill transaction and return error
|
||||
// If error occurred, kill transaction and return error
|
||||
if (status & HOSTA_ERR) {
|
||||
i2c_reset(i2c, true);
|
||||
return -(int16_t)(status);
|
||||
@@ -139,7 +139,7 @@ static int16_t i2c_transaction(struct I2C *i2c, uint8_t *data, uint16_t length,
|
||||
break;
|
||||
}
|
||||
}
|
||||
// If timeout occured, kill transaction and return error
|
||||
// If timeout occurred, kill transaction and return error
|
||||
if (timeout == 0) {
|
||||
i2c_reset(i2c, true);
|
||||
return -(0x1000 | (int16_t)status);
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
//! Library for accessing System76 ECs
|
||||
//! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec
|
||||
//! object can be contructed, which exposes the command interface.
|
||||
//! object can be constructed, which exposes the command interface.
|
||||
//!
|
||||
//! There are some differences between targets and features that are listed below:
|
||||
//! - `AccessHid` requires the `hidapi` feature. Only functional on USB ECs.
|
||||
|
||||
Reference in New Issue
Block a user