Spell check source code, fix mistakes.
This commit is contained in:
parent
544027da18
commit
3808f5c36d
41 changed files with 63 additions and 63 deletions
|
@ -38,7 +38,7 @@
|
|||
#include "AVRISPDescriptors.h"
|
||||
|
||||
#if defined(RESET_TOGGLES_LIBUSB_COMPAT) || defined(__DOXYGEN__)
|
||||
/** Indicates if an external reset has ocurred and the compatibility mode needs to be altered */
|
||||
/** Indicates if an external reset has occurred and the compatibility mode needs to be altered */
|
||||
static bool AVRISP_NeedCompatibilitySwitch ATTR_NO_INIT;
|
||||
|
||||
/** Current AVRISP data IN endpoint address. */
|
||||
|
@ -255,7 +255,7 @@ uint16_t AVRISP_GetDescriptor(const uint16_t wValue,
|
|||
*/
|
||||
void CheckExternalReset(void)
|
||||
{
|
||||
/* If an external reset occured, we need to change compatibility mode */
|
||||
/* If an external reset occurred, we need to change compatibility mode */
|
||||
AVRISP_NeedCompatibilitySwitch = (MCUSR == (1 << EXTRF));
|
||||
|
||||
MCUSR = 0;
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
} BitBuffer_t;
|
||||
|
||||
/* Function Prototypes: */
|
||||
/** Initialises or resets a given bit buffer, ready to store new bits.
|
||||
/** Initializes or resets a given bit buffer, ready to store new bits.
|
||||
*
|
||||
* \param[in,out] Buffer Bit buffer to initialize
|
||||
*/
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
/* Public Interface - May be used in end-application: */
|
||||
/* Inline Functions: */
|
||||
/** Initialises the magnetic stripe card reader ports and pins so that the card reader
|
||||
/** Initializes the magnetic stripe card reader ports and pins so that the card reader
|
||||
* device can be controlled and read by the card reader driver. This must be called before
|
||||
* trying to read any of the card reader's status lines.
|
||||
*/
|
||||
|
|
|
@ -104,7 +104,7 @@ static void HD44780_PowerUp4Bit(void)
|
|||
_delay_us(50);
|
||||
}
|
||||
|
||||
void HD44780_Initialise(void)
|
||||
void HD44780_Initialize(void)
|
||||
{
|
||||
PORTD &= ~ALL_BITS;
|
||||
DDRD |= ALL_BITS;
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#define CMD_DISPLAY_ON 0x0C
|
||||
|
||||
/* Function Prototypes: */
|
||||
void HD44780_Initialise(void);
|
||||
void HD44780_Initialize(void);
|
||||
void HD44780_WriteData(const uint8_t c);
|
||||
void HD44780_WriteCommand(const uint8_t c);
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ void SetupHardware(void)
|
|||
USB_Init();
|
||||
|
||||
/* Power up the HD44780 Interface */
|
||||
HD44780_Initialise();
|
||||
HD44780_Initialize();
|
||||
HD44780_WriteCommand(CMD_DISPLAY_ON);
|
||||
|
||||
/* Start the flush timer so that overflows occur rapidly to push received bytes to the USB interface */
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#endif
|
||||
|
||||
/* Defines: */
|
||||
/** Total number of bytes of the storage medium, comprised of one or more dataflash ICs. */
|
||||
/** Total number of bytes of the storage medium, comprised of one or more Dataflash ICs. */
|
||||
#define VIRTUAL_MEMORY_BYTES ((uint32_t)DATAFLASH_PAGES * DATAFLASH_PAGE_SIZE * DATAFLASH_TOTALCHIPS)
|
||||
|
||||
/** Block size of the device. This is kept at 512 to remain compatible with the OS despite the underlying
|
||||
|
|
|
@ -227,7 +227,7 @@ void EVENT_USB_Device_Connect(void)
|
|||
{
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
|
||||
|
||||
/* Close the log file so that the host has exclusive filesystem access */
|
||||
/* Close the log file so that the host has exclusive file system access */
|
||||
CloseLogFile();
|
||||
}
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "frmDataloggerSettings";
|
||||
this.Text = "DataLogger";
|
||||
this.Text = "Datalogger";
|
||||
this.Load += new System.EventHandler(this.frmDataloggerSettings_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudLogInterval)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace Project1HostApp
|
|||
|
||||
if (ConnectionHandle == null)
|
||||
{
|
||||
MessageBox.Show("Error: Cannot connect to DataLogger device.");
|
||||
MessageBox.Show("Error: Cannot connect to Datalogger device.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ namespace Project1HostApp
|
|||
|
||||
if (ConnectionHandle == null)
|
||||
{
|
||||
MessageBox.Show("Error: Cannot connect to DataLogger device.");
|
||||
MessageBox.Show("Error: Cannot connect to Datalogger device.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Dean Camera")]
|
||||
[assembly: AssemblyProduct("Temp DataLogger HostApp")]
|
||||
[assembly: AssemblyProduct("Temp Datalogger HostApp")]
|
||||
[assembly: AssemblyCopyright("Copyright © Dean Camera 2011")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
#endif
|
||||
|
||||
/* Defines: */
|
||||
/** Total number of bytes of the storage medium, comprised of one or more dataflash ICs. */
|
||||
/** Total number of bytes of the storage medium, comprised of one or more Dataflash ICs. */
|
||||
#define VIRTUAL_MEMORY_BYTES ((uint32_t)DATAFLASH_PAGES * DATAFLASH_PAGE_SIZE * DATAFLASH_TOTALCHIPS)
|
||||
|
||||
/** Block size of the device. This is kept at 512 to remain compatible with the OS despite the underlying
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
* statement. While it would be possible to break the uip_process()
|
||||
* function into many smaller functions, this would increase the code
|
||||
* size because of the overhead of parameter passing and the fact that
|
||||
* the optimiser would not be as efficient.
|
||||
* the optimizer would not be as efficient.
|
||||
*
|
||||
* The principle is that we have a small buffer, called the uip_buf,
|
||||
* in which the device driver puts an incoming packet. The TCP/IP
|
||||
|
@ -330,7 +330,7 @@ upper_layer_chksum(u8_t proto)
|
|||
upper_layer_len = (((u16_t)(BUF->len[0]) << 8) + BUF->len[1]) - UIP_IPH_LEN;
|
||||
#endif /* UIP_CONF_IPV6 */
|
||||
|
||||
/* First sum pseudoheader. */
|
||||
/* First sum pseudo-header. */
|
||||
|
||||
/* IP protocol and length fields. This addition cannot carry. */
|
||||
sum = upper_layer_len + proto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue