Skip to content

Commit dfc088e

Browse files
RoboSchmiedmarcelstoer
authored andcommitted
Fix typos (#3645)
1 parent 5e67f07 commit dfc088e

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

app/driver/spi.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void spi_mast_blkget(uint8 spi_no, size_t bitlen, uint8 *data)
210210
os_memcpy((void *)data, (void *)SPI_W0(spi_no), aligned_len);
211211
}
212212

213-
static uint32 swap_endianess(uint32 n)
213+
static uint32 swap_endianness(uint32 n)
214214
{
215215
return ((n & 0xff) << 24) |
216216
((n & 0xff00) << 8) |
@@ -248,20 +248,20 @@ void spi_mast_set_mosi(uint8 spi_no, uint16 offset, uint8 bitlen, uint32 data)
248248

249249
// transfer Wn to buf
250250
spi_buf.word[1] = READ_PERI_REG(SPI_W0(spi_no) + wn*4);
251-
spi_buf.word[1] = swap_endianess(spi_buf.word[1]);
251+
spi_buf.word[1] = swap_endianness(spi_buf.word[1]);
252252
if (wn < 15) {
253253
spi_buf.word[0] = READ_PERI_REG(SPI_W0(spi_no) + (wn+1)*4);
254-
spi_buf.word[0] = swap_endianess(spi_buf.word[0]);
254+
spi_buf.word[0] = swap_endianness(spi_buf.word[0]);
255255
}
256256

257257
shift = 64 - (offset & 0x1f) - bitlen;
258258
spi_buf.dword &= ~(((1ULL << bitlen)-1) << shift);
259259
spi_buf.dword |= (uint64)data << shift;
260260

261261
if (wn < 15) {
262-
WRITE_PERI_REG(SPI_W0(spi_no) + (wn+1)*4, swap_endianess(spi_buf.word[0]));
262+
WRITE_PERI_REG(SPI_W0(spi_no) + (wn+1)*4, swap_endianness(spi_buf.word[0]));
263263
}
264-
WRITE_PERI_REG(SPI_W0(spi_no) + wn*4, swap_endianess(spi_buf.word[1]));
264+
WRITE_PERI_REG(SPI_W0(spi_no) + wn*4, swap_endianness(spi_buf.word[1]));
265265

266266
return;
267267
}
@@ -293,10 +293,10 @@ uint32 spi_mast_get_miso(uint8 spi_no, uint16 offset, uint8 bitlen)
293293

294294
// transfer Wn to buf
295295
spi_buf.word[1] = READ_PERI_REG(SPI_W0(spi_no) + wn*4);
296-
spi_buf.word[1] = swap_endianess(spi_buf.word[1]);
296+
spi_buf.word[1] = swap_endianness(spi_buf.word[1]);
297297
if (wn < 15) {
298298
spi_buf.word[0] = READ_PERI_REG(SPI_W0(spi_no) + (wn+1)*4);
299-
spi_buf.word[0] = swap_endianess(spi_buf.word[0]);
299+
spi_buf.word[0] = swap_endianness(spi_buf.word[0]);
300300
}
301301

302302
result = (uint32)(spi_buf.dword >> (64 - ((offset & 0x1f) + bitlen)));

app/include/lwip/def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151
* 'a' is expected to be 'higher' (without overflow) than 'b'. */
5252
#define LWIP_U32_DIFF(a, b) (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1)))
5353

54-
/* Endianess-optimized shifting of two u8_t to create one u16_t */
54+
/* Endianness-optimized shifting of two u8_t to create one u16_t */
5555
#if BYTE_ORDER == LITTLE_ENDIAN
5656
#define LWIP_MAKE_U16(a, b) ((a << 8) | b)
5757
#else

app/lwip/core/ipv4/inet_chksum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* @return host order (!) lwip checksum (non-inverted Internet sum)
7676
*
7777
* @note accumulator size limits summable length to 64k
78-
* @note host endianess is irrelevant (p3 RFC1071)
78+
* @note host endianness is irrelevant (p3 RFC1071)
7979
*/
8080
static u16_t ICACHE_FLASH_ATTR
8181
lwip_standard_chksum(void *dataptr, u16_t len)

app/mbedtls/library/aes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ int mbedtls_aes_crypt_cbc( mbedtls_aes_context *ctx,
11111111

11121112
#if defined(MBEDTLS_CIPHER_MODE_XTS)
11131113

1114-
/* Endianess with 64 bits values */
1114+
/* Endianness with 64 bits values */
11151115
#ifndef GET_UINT64_LE
11161116
#define GET_UINT64_LE(n,b,i) \
11171117
{ \
@@ -1147,7 +1147,7 @@ typedef unsigned char mbedtls_be128[16];
11471147
*
11481148
* This function multiplies a field element by x in the polynomial field
11491149
* representation. It uses 64-bit word operations to gain speed but compensates
1150-
* for machine endianess and hence works correctly on both big and little
1150+
* for machine endianness and hence works correctly on both big and little
11511151
* endian machines.
11521152
*/
11531153
static void mbedtls_gf128mul_x_ble( unsigned char r[16],

app/modules/struct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int gettoalign (size_t len, Header *h, int opt, size_t size) {
155155

156156

157157
/*
158-
** options to control endianess and alignment
158+
** options to control endianness and alignment
159159
*/
160160
static void controloptions (lua_State *L, int opt, const char **fmt,
161161
Header *h) {

0 commit comments

Comments
 (0)