1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-07 00:04:36 +03:00

Add code-spell spelling checks to CI (#8067)

Help find and fix silly spelling errors as they are added to the repo.
This commit is contained in:
Earle F. Philhower, III
2021-05-23 08:53:04 -07:00
committed by GitHub
parent 78a2ed6bd8
commit 60fe7b4ca8
133 changed files with 273 additions and 260 deletions

View File

@@ -96,7 +96,7 @@ void memcpy_main(void)
/* Allocate buffers to read and write from. */
char src[BUFF_SIZE], dest[BUFF_SIZE], backup_src[BUFF_SIZE];
/* Fill the source buffer with non-null values, reproducable random data. */
/* Fill the source buffer with non-null values, reproducible random data. */
srand (rand_seed);
int i, j;
unsigned sa;

View File

@@ -140,7 +140,7 @@ void strcmp_main(void)
/* Allocate buffers to read and write from. */
char src[BUFF_SIZE], dest[BUFF_SIZE];
/* Fill the source buffer with non-null values, reproducable random data. */
/* Fill the source buffer with non-null values, reproducible random data. */
srand (rand_seed);
int i, j, zeros;
unsigned sa;

View File

@@ -30,7 +30,7 @@ static bool fixed_systime = false; // Testing vars
static bool debugf = false;
static uint32_t us_systime = 0;
static float nsf = 0; // Normalization factor
static uint32_t cntref = 0; // Ref. comparision count
static uint32_t cntref = 0; // Ref. comparison count
//---------------------------------------------------------------------------
// Interrupt code lifted directly from "cores/core_esp8266_wiring.c",
@@ -95,7 +95,7 @@ void viewhex( uint16_t *p, uint8_t n )
//---------------------------------------------------------------------------
// Support routine for 'millis_test_DEBUG()'
// Print accumulator value along interm summed into it
// Print accumulator value along interim summed into it
void view_accsum ( const char *desc, uint16_t *acc, uint16_t *itrm )
{
Serial.print( "acc: " );
@@ -149,8 +149,8 @@ unsigned long IRAM_ATTR millis_corr ( void )
// FOR DEBUG
// millis() 'magic multiplier' approximation
//
// This function corrects the cumlative (296us / usec overflow) drift
// seen in the orignal 'millis()' function.
// This function corrects the cumulative (296us / usec overflow) drift
// seen in the original 'millis()' function.
//
// Input:
// 'm' - 32-bit usec counter, 0 <= m <= 0xFFFFFFFF
@@ -254,7 +254,7 @@ unsigned long IRAM_ATTR millis_test_DEBUG ( void )
} acc;
acc.a[1] = 0; // Zero high-acc
uint64_t prd; // Interm product
uint64_t prd; // Interim product
// Get usec system time, usec overflow counter
uint32_t m = system_get_timeA();
@@ -269,28 +269,28 @@ unsigned long IRAM_ATTR millis_test_DEBUG ( void )
acc.q = ( (prd = (uint64_t)( m * (uint64_t)MAGIC_1E3_wLO )) >> 32 );
// DEBUG: Show both accumulator and interm product
// DEBUG: Show both accumulator and interim product
if( debugf )
view_accsum( "m kl", (uint16_t *)&acc.q, (uint16_t *)&prd );
// (b) Offset sum, low-acc
acc.q += ( prd = ( m * (uint64_t)MAGIC_1E3_wHI ) );
// DEBUG: Show both accumulator and interm product
// DEBUG: Show both accumulator and interim product
if( debugf )
view_accsum( "m kh", (uint16_t *)&acc.q, (uint16_t *)&prd );
// (c) Offset sum, low-acc
acc.q += ( prd = ( c * (uint64_t)MAGIC_1E3_wLO ) );
// DEBUG: Show both accumulator and interm product
// DEBUG: Show both accumulator and interim product
if( debugf )
view_accsum( "c kl", (uint16_t *)&acc.q, (uint16_t *)&prd );
// (d) Truncated sum, high-acc
acc.a[1] += (uint32_t)( prd = ( c * (uint64_t)MAGIC_1E3_wHI ) );
// DEBUG: Show both accumulator and interm product
// DEBUG: Show both accumulator and interim product
if( debugf )
view_accsum( "c kh", (uint16_t *)&acc.q, (uint16_t *)&prd );