Use American English
This commit is contained in:
		@@ -59,7 +59,7 @@ extern "C" {
 | 
			
		||||
 | 
			
		||||
  // Runs after clock init and before global static constructors
 | 
			
		||||
  void SystemPostInit() {
 | 
			
		||||
    _millis = 0;                            // Initialise the millisecond counter value;
 | 
			
		||||
    _millis = 0;                            // Initialize the millisecond counter value
 | 
			
		||||
    SysTick_Config(SystemCoreClock / 1000); // Start millisecond global counter
 | 
			
		||||
 | 
			
		||||
    // Runs before setup() need to configure LED_PIN and use to indicate succsessful bootloader execution
 | 
			
		||||
@@ -96,7 +96,7 @@ int main(void) {
 | 
			
		||||
  while (!USB_Configuration && PENDING(millis(), usb_timeout)) {
 | 
			
		||||
    delay(50);
 | 
			
		||||
    #if PIN_EXISTS(LED)
 | 
			
		||||
      TOGGLE(LED_PIN);     // Flash fast while USB initialisation completes
 | 
			
		||||
      TOGGLE(LED_PIN);     // Flash quickly during USB initialization
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -105,7 +105,7 @@ int main(void) {
 | 
			
		||||
    #if NUM_SERIAL > 1
 | 
			
		||||
      MYSERIAL1.begin(BAUDRATE);
 | 
			
		||||
    #endif
 | 
			
		||||
    SERIAL_PRINTF("\n\necho:%s (%dMhz) Initialised\n", isLPC1769() ? "LPC1769" : "LPC1768", SystemCoreClock / 1000000);
 | 
			
		||||
    SERIAL_PRINTF("\n\necho:%s (%dMhz) Initialized\n", isLPC1769() ? "LPC1769" : "LPC1768", SystemCoreClock / 1000000);
 | 
			
		||||
    SERIAL_FLUSHTX();
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -78,7 +78,7 @@ static uint16_t EE_VerifyPageFullyErased(uint32_t Address);
 | 
			
		||||
  * @retval - Flash error code: on write Flash error
 | 
			
		||||
  *         - FLASH_COMPLETE: on success
 | 
			
		||||
  */
 | 
			
		||||
uint16_t EE_Initialise(void) {
 | 
			
		||||
uint16_t EE_Initialize(void) {
 | 
			
		||||
  uint16_t PageStatus0 = 6, PageStatus1 = 6;
 | 
			
		||||
  uint16_t VarIdx = 0;
 | 
			
		||||
  uint16_t EepromStatus = 0, ReadStatus = 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -108,7 +108,7 @@
 | 
			
		||||
/* Exported types ------------------------------------------------------------*/
 | 
			
		||||
/* Exported macro ------------------------------------------------------------*/
 | 
			
		||||
/* Exported functions ------------------------------------------------------- */
 | 
			
		||||
uint16_t EE_Initialise(void);
 | 
			
		||||
uint16_t EE_Initialize(void);
 | 
			
		||||
uint16_t EE_ReadVariable(uint16_t VirtAddress, uint16_t* Data);
 | 
			
		||||
uint16_t EE_WriteVariable(uint16_t VirtAddress, uint16_t Data);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
// Private Variables
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
static bool eeprom_initialised = false;
 | 
			
		||||
static bool eeprom_initialized = false;
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
// Function prototypes
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
@@ -82,17 +82,17 @@ static bool eeprom_initialised = false;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void eeprom_init() {
 | 
			
		||||
  if (!eeprom_initialised) {
 | 
			
		||||
  if (!eeprom_initialized) {
 | 
			
		||||
    HAL_FLASH_Unlock();
 | 
			
		||||
 | 
			
		||||
    __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR |FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
 | 
			
		||||
 | 
			
		||||
    /* EEPROM Init */
 | 
			
		||||
    if (EE_Initialise() != EE_OK)
 | 
			
		||||
    if (EE_Initialize() != EE_OK)
 | 
			
		||||
      for (;;) HAL_Delay(1); // Spin forever until watchdog reset
 | 
			
		||||
 | 
			
		||||
    HAL_FLASH_Lock();
 | 
			
		||||
    eeprom_initialised = true;
 | 
			
		||||
    eeprom_initialized = true;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -69,11 +69,11 @@ stm32f4_timer_t TimerHandle[NUM_HARDWARE_TIMERS];
 | 
			
		||||
// Public functions
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
bool timers_initialised[NUM_HARDWARE_TIMERS] = {false};
 | 
			
		||||
bool timers_initialized[NUM_HARDWARE_TIMERS] = {false};
 | 
			
		||||
 | 
			
		||||
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
 | 
			
		||||
 | 
			
		||||
  if (!timers_initialised[timer_num]) {
 | 
			
		||||
  if (!timers_initialized[timer_num]) {
 | 
			
		||||
    constexpr uint32_t step_prescaler = STEPPER_TIMER_PRESCALE - 1,
 | 
			
		||||
                       temp_prescaler = TEMP_TIMER_PRESCALE - 1;
 | 
			
		||||
    switch (timer_num) {
 | 
			
		||||
@@ -111,7 +111,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
 | 
			
		||||
        HAL_NVIC_SetPriority(TEMP_TIMER_IRQ_ID, 2, 0);
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
    timers_initialised[timer_num] = true;
 | 
			
		||||
    timers_initialized[timer_num] = true;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #ifdef STM32GENERIC
 | 
			
		||||
 
 | 
			
		||||
@@ -78,7 +78,7 @@ static uint16_t EE_VerifyPageFullyErased(uint32_t Address);
 | 
			
		||||
  * @retval - Flash error code: on write Flash error
 | 
			
		||||
  *         - FLASH_COMPLETE: on success
 | 
			
		||||
  */
 | 
			
		||||
uint16_t EE_Initialise(void) {
 | 
			
		||||
uint16_t EE_Initialize(void) {
 | 
			
		||||
  uint16_t PageStatus0 = 6, PageStatus1 = 6;
 | 
			
		||||
  uint16_t VarIdx = 0;
 | 
			
		||||
  uint16_t EepromStatus = 0, ReadStatus = 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -109,7 +109,7 @@
 | 
			
		||||
/* Exported types ------------------------------------------------------------*/
 | 
			
		||||
/* Exported macro ------------------------------------------------------------*/
 | 
			
		||||
/* Exported functions ------------------------------------------------------- */
 | 
			
		||||
uint16_t EE_Initialise(void);
 | 
			
		||||
uint16_t EE_Initialize(void);
 | 
			
		||||
uint16_t EE_ReadVariable(uint16_t VirtAddress, uint16_t* Data);
 | 
			
		||||
uint16_t EE_WriteVariable(uint16_t VirtAddress, uint16_t Data);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,7 @@
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
// Private Variables
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
static bool eeprom_initialised = false;
 | 
			
		||||
static bool eeprom_initialized = false;
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
// Function prototypes
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
@@ -80,17 +80,17 @@ static bool eeprom_initialised = false;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void eeprom_init() {
 | 
			
		||||
  if (!eeprom_initialised) {
 | 
			
		||||
  if (!eeprom_initialized) {
 | 
			
		||||
    HAL_FLASH_Unlock();
 | 
			
		||||
 | 
			
		||||
    __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR |FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
 | 
			
		||||
 | 
			
		||||
    /* EEPROM Init */
 | 
			
		||||
    if (EE_Initialise() != EE_OK)
 | 
			
		||||
    if (EE_Initialize() != EE_OK)
 | 
			
		||||
      for (;;) HAL_Delay(1); // Spin forever until watchdog reset
 | 
			
		||||
 | 
			
		||||
    HAL_FLASH_Lock();
 | 
			
		||||
    eeprom_initialised = true;
 | 
			
		||||
    eeprom_initialized = true;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -69,11 +69,11 @@ tTimerConfig timerConfig[NUM_HARDWARE_TIMERS];
 | 
			
		||||
// --------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
bool timers_initialised[NUM_HARDWARE_TIMERS] = {false};
 | 
			
		||||
bool timers_initialized[NUM_HARDWARE_TIMERS] = {false};
 | 
			
		||||
 | 
			
		||||
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
 | 
			
		||||
 | 
			
		||||
  if (!timers_initialised[timer_num]) {
 | 
			
		||||
  if (!timers_initialized[timer_num]) {
 | 
			
		||||
    switch (timer_num) {
 | 
			
		||||
      case STEP_TIMER_NUM:
 | 
			
		||||
      //STEPPER TIMER TIM5 //use a 32bit timer
 | 
			
		||||
@@ -100,7 +100,7 @@ void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
 | 
			
		||||
      HAL_NVIC_SetPriority(timerConfig[1].IRQ_Id, 2, 0);
 | 
			
		||||
      break;
 | 
			
		||||
    }
 | 
			
		||||
    timers_initialised[timer_num] = true;
 | 
			
		||||
    timers_initialized[timer_num] = true;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  timerConfig[timer_num].timerdef.Init.Period = (((HAL_TIMER_RATE) / timerConfig[timer_num].timerdef.Init.Prescaler) / frequency) - 1;
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
static SPISettings spiConfig;
 | 
			
		||||
 | 
			
		||||
// Standard SPI functions
 | 
			
		||||
/** Initialise SPI bus */
 | 
			
		||||
/** Initialize SPI bus */
 | 
			
		||||
void spiBegin(void) {
 | 
			
		||||
  #if !PIN_EXISTS(SS)
 | 
			
		||||
    #error SS_PIN not defined!
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
#define SPI_DATAMODE_3 0x0C
 | 
			
		||||
 | 
			
		||||
// Standard SPI functions
 | 
			
		||||
/** Initialise SPI bus */
 | 
			
		||||
/** Initialize SPI bus */
 | 
			
		||||
void spiBegin(void);
 | 
			
		||||
/** Configure SPI for specified SPI speed */
 | 
			
		||||
void spiInit(uint8_t spiRate);
 | 
			
		||||
 
 | 
			
		||||
@@ -75,10 +75,10 @@
 | 
			
		||||
static uint8_t eeprom_device_address = 0x50;
 | 
			
		||||
 | 
			
		||||
static void eeprom_init(void) {
 | 
			
		||||
  static bool eeprom_initialised = false;
 | 
			
		||||
  if (!eeprom_initialised) {
 | 
			
		||||
  static bool eeprom_initialized = false;
 | 
			
		||||
  if (!eeprom_initialized) {
 | 
			
		||||
    Wire.begin();
 | 
			
		||||
    eeprom_initialised = true;
 | 
			
		||||
    eeprom_initialized = true;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ void UnwInvalidateRegisterFile(RegData *regFile) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Initialise the data used for unwinding.
 | 
			
		||||
 * Initialize the data used for unwinding.
 | 
			
		||||
 */
 | 
			
		||||
void UnwInitState(UnwState * const state,     /**< Pointer to structure to fill. */
 | 
			
		||||
                  const UnwindCallbacks *cb,  /**< Callbacks. */
 | 
			
		||||
 
 | 
			
		||||
@@ -44,7 +44,7 @@ UnwResult UnwindStart(UnwindFrame* frame, const UnwindCallbacks *cb, void *data)
 | 
			
		||||
    /* We don't have unwind information tables */
 | 
			
		||||
    UnwState state;
 | 
			
		||||
 | 
			
		||||
    /* Initialise the unwinding state */
 | 
			
		||||
    /* Initialize the unwinding state */
 | 
			
		||||
    UnwInitState(&state, cb, data, frame->pc, frame->sp);
 | 
			
		||||
 | 
			
		||||
    /* Check the Thumb bit */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user