mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +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:
committed by
GitHub
parent
78a2ed6bd8
commit
60fe7b4ca8
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -19,7 +19,7 @@ WiFiClient+WiFiServer/ClientContext and WifiUdp/UdpContext using socket
|
||||
posix API. Further work will optionally propose native lwIP library
|
||||
instead.
|
||||
|
||||
Serial UART0 and UART1 are emulated via stdin/stdout/stderr. Therefor
|
||||
Serial UART0 and UART1 are emulated via stdin/stdout/stderr. Therefore
|
||||
stdin is connected to UART0(RX) and stdout is connected to UART0(TX).
|
||||
UART1(TX) writes to stderr. Reading from stdin happens in non-blocking
|
||||
raw mode, that means each character is directly injected into the UART
|
||||
|
@ -4225,7 +4225,7 @@ namespace Catch {
|
||||
ss << seed;
|
||||
ss >> config.rngSeed;
|
||||
if( ss.fail() )
|
||||
throw std::runtime_error( "Argment to --rng-seed should be the word 'time' or a number" );
|
||||
throw std::runtime_error( "Argument to --rng-seed should be the word 'time' or a number" );
|
||||
}
|
||||
}
|
||||
inline void setVerbosity( ConfigData& config, int level ) {
|
||||
@ -6649,7 +6649,7 @@ namespace Catch {
|
||||
Colour colourGuard( Colour::Red );
|
||||
Catch::cerr()
|
||||
<< "Tag name [" << tag << "] not allowed.\n"
|
||||
<< "Tag names starting with non alpha-numeric characters are reserved\n";
|
||||
<< "Tag names starting with non alphanumeric characters are reserved\n";
|
||||
}
|
||||
{
|
||||
Colour colourGuard( Colour::FileName );
|
||||
|
@ -188,7 +188,7 @@ TEST_CASE(TESTPRE "peek() returns -1 on EOF", TESTPAT)
|
||||
f.close();
|
||||
}
|
||||
|
||||
TEST_CASE(TESTPRE "seek() pase EOF returns error (#7323)", TESTPAT)
|
||||
TEST_CASE(TESTPRE "seek() past EOF returns error (#7323)", TESTPAT)
|
||||
{
|
||||
FS_MOCK_DECLARE(64, 8, 512, "");
|
||||
REQUIRE(FSTYPE.begin());
|
||||
|
Reference in New Issue
Block a user