Fix: 7 typos

Co-authored-by: RoAGmer <no-reply@github.com>
Signed-off-by: Michael Seibt <github@roboschmie.de>
This commit is contained in:
RoboSchmied
2024-05-02 00:23:18 +02:00
parent 37ac6ebaa0
commit 54cf8717f0
4 changed files with 7 additions and 7 deletions

View File

@@ -912,7 +912,7 @@ void cfg_assign(char *sp, int strct, Component_t *cp, VALUE *v) {
cp->name, cfg_strct_name(strct), cfg_comp_type(cp->type), cfg_v_type(v->type));
return;
}
// TODO: consider endianess (code currently assumes little endian)
// TODO: consider endianness (code currently assumes little endian)
num = v->number;
memcpy(sp+cp->offset, &num, cp->size);
break;

View File

@@ -857,16 +857,16 @@ static int elf2b(const char *infile, FILE *inf, const AVRMEM *mem,
}
const char *endianname;
unsigned char endianess;
unsigned char endianness;
if (p->prog_modes & PM_aWire) { // AVR32
endianess = ELFDATA2MSB;
endianness = ELFDATA2MSB;
endianname = "little";
} else {
endianess = ELFDATA2LSB;
endianness = ELFDATA2LSB;
endianname = "big";
}
if (id[EI_CLASS] != ELFCLASS32 ||
id[EI_DATA] != endianess) {
id[EI_DATA] != endianness) {
pmsg_error("ELF file %s is not a 32-bit, %s-endian file that was expected\n",
infile, endianname);
goto done;

View File

@@ -335,7 +335,7 @@ typedef enum
* In appnote AVR067, struct device_descriptor is written with
* int/long field types. We cannot use them directly, as they were
* neither properly aligned for portability, nor did they care for
* endianess issues. We thus use arrays of unsigned chars, plus
* endianness issues. We thus use arrays of unsigned chars, plus
* conversion macros.
*/
struct device_descriptor

View File

@@ -522,7 +522,7 @@ static int cmd_write(const PROGRAMMER *pgm, const AVRPART *p, int argc, const ch
}
if(sd->warnstr)
pmsg_warning("(write) %s\n", sd->warnstr);
// Always write little endian (assume double and int have same endianess)
// Always write little endian (assume double and int have same endianness)
if(is_bigendian() && sd->size > 0 && (sd->type & STR_NUMBER))
change_endian(sd->a, sd->size);
} else {