More spell checking of all source files -- correct missed errors, switch to EN-GB spelling dictionary.
This commit is contained in:
parent
2034141a7e
commit
0f45b9c8e0
115 changed files with 158 additions and 158 deletions
|
@ -203,7 +203,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -132,7 +132,7 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
|
|||
PORTB ^= (1 << 1);
|
||||
}
|
||||
|
||||
/** Initializes the appropriate SPI driver (hardware or software, depending on the selected ISP speed) ready for
|
||||
/** Initialises the appropriate SPI driver (hardware or software, depending on the selected ISP speed) ready for
|
||||
* communication with the attached target.
|
||||
*/
|
||||
void ISPTarget_Init(void)
|
||||
|
|
|
@ -50,7 +50,7 @@ ISR(TIMER0_COMPA_vect, ISR_NOBLOCK)
|
|||
TimeoutTicksRemaining--;
|
||||
}
|
||||
|
||||
/** Initializes the hardware and software associated with the V2 protocol command handling. */
|
||||
/** Initialises the hardware and software associated with the V2 protocol command handling. */
|
||||
void V2Protocol_Init(void)
|
||||
{
|
||||
#if defined(ADC)
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
} RingBuff_t;
|
||||
|
||||
/* Inline Functions: */
|
||||
/** Initializes a ring buffer ready for use. Buffers must be initialized via this function
|
||||
/** Initialises a ring buffer ready for use. Buffers must be initialized via this function
|
||||
* before any operations are called upon them. Already initialized buffers may be reset
|
||||
* by re-initializing them using this function.
|
||||
*
|
||||
|
@ -172,4 +172,4 @@
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
} BitBuffer_t;
|
||||
|
||||
/* Function Prototypes: */
|
||||
/** Initializes or resets a given bit buffer, ready to store new bits.
|
||||
/** Initialises or resets a given bit buffer, ready to store new bits.
|
||||
*
|
||||
* \param[in,out] Buffer Bit buffer to initialize
|
||||
*/
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
/* Public Interface - May be used in end-application: */
|
||||
/* Inline Functions: */
|
||||
/** Initializes the magnetic stripe card reader ports and pins so that the card reader
|
||||
/** Initialises 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.
|
||||
*/
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
/ Fixed f_mkdir() on FAT32 creates incorrect directory.
|
||||
/ Feb 03,'08 R0.05a Added f_truncate() and f_utime().
|
||||
/ Fixed off by one error at FAT sub-type determination.
|
||||
/ Fixed btr in f_read() can be mistruncated.
|
||||
/ Fixed btr in f_read() can be mis-truncated.
|
||||
/ Fixed cached sector is not flushed when create and close
|
||||
/ without write.
|
||||
/
|
||||
|
@ -495,7 +495,7 @@ DWORD get_fat ( /* 0xFFFFFFFF:Disk error, 1:Internal error, Else:Cluster status
|
|||
BYTE *p;
|
||||
|
||||
|
||||
if (clst < 2 || clst >= fs->n_fatent) /* Chack range */
|
||||
if (clst < 2 || clst >= fs->n_fatent) /* Check range */
|
||||
return 1;
|
||||
|
||||
switch (fs->fs_type) {
|
||||
|
@ -1321,7 +1321,7 @@ FRESULT create_name (
|
|||
if (w != ' ' && w != '.') break;
|
||||
di--;
|
||||
}
|
||||
if (!di) return FR_INVALID_NAME; /* Reject nul string */
|
||||
if (!di) return FR_INVALID_NAME; /* Reject null string */
|
||||
|
||||
lfn[di] = 0; /* LFN is created */
|
||||
|
||||
|
@ -1458,7 +1458,7 @@ FRESULT create_name (
|
|||
*path = &p[si]; /* Return pointer to the next segment */
|
||||
c = (c <= ' ') ? NS_LAST : 0; /* Set last segment flag if end of path */
|
||||
|
||||
if (!i) return FR_INVALID_NAME; /* Reject nul string */
|
||||
if (!i) return FR_INVALID_NAME; /* Reject null string */
|
||||
if (sfn[0] == 0xE5) sfn[0] = 0x05; /* When first char collides with 0xE5, replace it with 0x05 */
|
||||
|
||||
if (ni == 8) b <<= 2;
|
||||
|
@ -1582,7 +1582,7 @@ FRESULT follow_path ( /* FR_OK(0): successful, !=0: error code */
|
|||
dj->sclust = 0; /* Start from the root dir */
|
||||
#endif
|
||||
|
||||
if ((UINT)*path < ' ') { /* Nul path means the start directory itself */
|
||||
if ((UINT)*path < ' ') { /* Null path means the start directory itself */
|
||||
res = dir_sdi(dj, 0);
|
||||
dj->dir = 0;
|
||||
|
||||
|
@ -1723,7 +1723,7 @@ FRESULT chk_mounted ( /* FR_OK(0): successful, !=0: any error occurred */
|
|||
if (fmt == 3) return FR_DISK_ERR;
|
||||
if (fmt) return FR_NO_FILESYSTEM; /* No FAT volume is found */
|
||||
|
||||
/* Following code initializes the file system object */
|
||||
/* Following code initialises the file system object */
|
||||
|
||||
if (LD_WORD(fs->win+BPB_BytsPerSec) != SS(fs)) /* (BPB_BytsPerSec must be equal to the physical sector size) */
|
||||
return FR_NO_FILESYSTEM;
|
||||
|
@ -2527,7 +2527,7 @@ FRESULT f_lseek (
|
|||
|
||||
#if _FS_MINIMIZE <= 1
|
||||
/*-----------------------------------------------------------------------*/
|
||||
/* Create a Directroy Object */
|
||||
/* Create a Directory Object */
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
||||
FRESULT f_opendir (
|
||||
|
@ -2878,7 +2878,7 @@ FRESULT f_mkdir (
|
|||
mem_set(dir, 0, SS(dj.fs));
|
||||
}
|
||||
}
|
||||
if (res == FR_OK) res = dir_register(&dj); /* Register the object to the directoy */
|
||||
if (res == FR_OK) res = dir_register(&dj); /* Register the object to the directory */
|
||||
if (res != FR_OK) {
|
||||
remove_chain(dj.fs, dcl); /* Could not register, remove cluster chain */
|
||||
} else {
|
||||
|
@ -3177,7 +3177,7 @@ FRESULT f_mkfs (
|
|||
if (au == 0) au = 1;
|
||||
if (au > 128) au = 128;
|
||||
|
||||
/* Pre-compute number of clusters and FAT syb-type */
|
||||
/* Pre-compute number of clusters and FAT sub-type */
|
||||
n_clst = n_vol / au;
|
||||
fmt = FS_FAT12;
|
||||
if (n_clst >= MIN_FAT16) fmt = FS_FAT16;
|
||||
|
|
|
@ -334,7 +334,7 @@ typedef struct {
|
|||
DWORD dsect; /* Current data sector */
|
||||
#if !_FS_READONLY
|
||||
DWORD dir_sect; /* Sector containing the directory entry */
|
||||
BYTE* dir_ptr; /* Ponter to the directory entry in the window */
|
||||
BYTE* dir_ptr; /* Pointer to the directory entry in the window */
|
||||
#endif
|
||||
#if _USE_FASTSEEK
|
||||
DWORD* cltbl; /* Pointer to the cluster link map table */
|
||||
|
@ -429,7 +429,7 @@ FRESULT f_sync (FIL*); /* Flush cached data of a writing file */
|
|||
FRESULT f_unlink (const TCHAR*); /* Delete an existing file or directory */
|
||||
FRESULT f_mkdir (const TCHAR*); /* Create a new directory */
|
||||
FRESULT f_chmod (const TCHAR*, BYTE, BYTE); /* Change attribute of the file/dir */
|
||||
FRESULT f_utime (const TCHAR*, const FILINFO*); /* Change timestamp of the file/dir */
|
||||
FRESULT f_utime (const TCHAR*, const FILINFO*); /* Change time-stamp of the file/dir */
|
||||
FRESULT f_rename (const TCHAR*, const TCHAR*); /* Rename/Move a file or directory */
|
||||
#endif
|
||||
#if _USE_FORWARD
|
||||
|
|
|
@ -101,7 +101,7 @@ namespace Project1HostApp
|
|||
try
|
||||
{
|
||||
ConnectionHandle.Write(0x00, DeviceReport.ToReport());
|
||||
MessageBox.Show("Device parameters updated sucessfully.");
|
||||
MessageBox.Show("Device parameters updated successfully.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -156,7 +156,7 @@ namespace Project1HostApp
|
|||
nudLogInterval.Value = nudLogInterval.Minimum;
|
||||
}
|
||||
|
||||
MessageBox.Show("Device parameters retrieved sucessfully.");
|
||||
MessageBox.Show("Device parameters retrieved successfully.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this demo, which can control the demo behavior when defined, or changed in value.
|
||||
* The following defines can be found in this demo, which can control the demo behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
} RingBuff_t;
|
||||
|
||||
/* Inline Functions: */
|
||||
/** Initializes a ring buffer ready for use. Buffers must be initialized via this function
|
||||
/** Initialises a ring buffer ready for use. Buffers must be initialized via this function
|
||||
* before any operations are called upon them. Already initialized buffers may be reset
|
||||
* by re-initializing them using this function.
|
||||
*
|
||||
|
@ -172,4 +172,4 @@
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -1321,7 +1321,7 @@ FRESULT create_name (
|
|||
if (w != ' ' && w != '.') break;
|
||||
di--;
|
||||
}
|
||||
if (!di) return FR_INVALID_NAME; /* Reject nul string */
|
||||
if (!di) return FR_INVALID_NAME; /* Reject null string */
|
||||
|
||||
lfn[di] = 0; /* LFN is created */
|
||||
|
||||
|
@ -1458,7 +1458,7 @@ FRESULT create_name (
|
|||
*path = &p[si]; /* Return pointer to the next segment */
|
||||
c = (c <= ' ') ? NS_LAST : 0; /* Set last segment flag if end of path */
|
||||
|
||||
if (!i) return FR_INVALID_NAME; /* Reject nul string */
|
||||
if (!i) return FR_INVALID_NAME; /* Reject null string */
|
||||
if (sfn[0] == 0xE5) sfn[0] = 0x05; /* When first char collides with 0xE5, replace it with 0x05 */
|
||||
|
||||
if (ni == 8) b <<= 2;
|
||||
|
@ -1582,7 +1582,7 @@ FRESULT follow_path ( /* FR_OK(0): successful, !=0: error code */
|
|||
dj->sclust = 0; /* Start from the root dir */
|
||||
#endif
|
||||
|
||||
if ((UINT)*path < ' ') { /* Nul path means the start directory itself */
|
||||
if ((UINT)*path < ' ') { /* Null path means the start directory itself */
|
||||
res = dir_sdi(dj, 0);
|
||||
dj->dir = 0;
|
||||
|
||||
|
@ -1723,7 +1723,7 @@ FRESULT chk_mounted ( /* FR_OK(0): successful, !=0: any error occurred */
|
|||
if (fmt == 3) return FR_DISK_ERR;
|
||||
if (fmt) return FR_NO_FILESYSTEM; /* No FAT volume is found */
|
||||
|
||||
/* Following code initializes the file system object */
|
||||
/* Following code initialises the file system object */
|
||||
|
||||
if (LD_WORD(fs->win+BPB_BytsPerSec) != SS(fs)) /* (BPB_BytsPerSec must be equal to the physical sector size) */
|
||||
return FR_NO_FILESYSTEM;
|
||||
|
@ -3177,7 +3177,7 @@ FRESULT f_mkfs (
|
|||
if (au == 0) au = 1;
|
||||
if (au > 128) au = 128;
|
||||
|
||||
/* Pre-compute number of clusters and FAT syb-type */
|
||||
/* Pre-compute number of clusters and FAT sub-type */
|
||||
n_clst = n_vol / au;
|
||||
fmt = FS_FAT12;
|
||||
if (n_clst >= MIN_FAT16) fmt = FS_FAT16;
|
||||
|
|
|
@ -429,7 +429,7 @@ FRESULT f_sync (FIL*); /* Flush cached data of a writing file */
|
|||
FRESULT f_unlink (const TCHAR*); /* Delete an existing file or directory */
|
||||
FRESULT f_mkdir (const TCHAR*); /* Create a new directory */
|
||||
FRESULT f_chmod (const TCHAR*, BYTE, BYTE); /* Change attribute of the file/dir */
|
||||
FRESULT f_utime (const TCHAR*, const FILINFO*); /* Change timestamp of the file/dir */
|
||||
FRESULT f_utime (const TCHAR*, const FILINFO*); /* Change time-stamp of the file/dir */
|
||||
FRESULT f_rename (const TCHAR*, const TCHAR*); /* Rename/Move a file or directory */
|
||||
#endif
|
||||
#if _USE_FORWARD
|
||||
|
|
|
@ -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 optimier would not be as efficient.
|
||||
* the optimiser 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
|
||||
|
@ -598,7 +598,7 @@ uip_reass(void)
|
|||
~bitmap_bits[((offset + len) / 8 ) & 7];
|
||||
} else {
|
||||
/* If the two endpoints are in different bytes, we update the
|
||||
bytes in the endpoints and fill the stuff inbetween with
|
||||
bytes in the endpoints and fill the stuff in-between with
|
||||
0xff. */
|
||||
uip_reassbitmap[offset / (8 * 8)] |=
|
||||
bitmap_bits[(offset / 8 ) & 7];
|
||||
|
@ -749,7 +749,7 @@ uip_process(u8_t flag)
|
|||
goto tcp_send_nodata;
|
||||
}
|
||||
|
||||
/* Exponential backoff. */
|
||||
/* Exponential back-off. */
|
||||
uip_connr->timer = UIP_RTO << (uip_connr->nrtx > 4?
|
||||
4:
|
||||
uip_connr->nrtx);
|
||||
|
@ -1297,7 +1297,7 @@ uip_process(u8_t flag)
|
|||
with a connection in LISTEN. In that case, we should create a new
|
||||
connection and send a SYNACK in return. */
|
||||
found_listen:
|
||||
/* First we check if there are any connections avaliable. Unused
|
||||
/* First we check if there are any connections available. Unused
|
||||
connections are kept in the same table as used connections, but
|
||||
unused ones have the tcpstate set to CLOSED. Also, connections in
|
||||
TIME_WAIT are kept track of and we'll use the oldest one if no
|
||||
|
|
|
@ -62,14 +62,14 @@
|
|||
*/
|
||||
#if UIP_CONF_IPV6
|
||||
typedef union uip_ip6addr_t {
|
||||
u8_t u8[16]; /* Initializer, must come first!!! */
|
||||
u8_t u8[16]; /* Initialiser, must come first!!! */
|
||||
u16_t u16[8];
|
||||
} uip_ip6addr_t;
|
||||
|
||||
typedef uip_ip6addr_t uip_ipaddr_t;
|
||||
#else /* UIP_CONF_IPV6 */
|
||||
typedef union uip_ip4addr_t {
|
||||
u8_t u8[4]; /* Initializer, must come first!!! */
|
||||
u8_t u8[4]; /* Initialiser, must come first!!! */
|
||||
u16_t u16[2];
|
||||
#if 0
|
||||
u32_t u32;
|
||||
|
@ -232,7 +232,7 @@ typedef struct uip_eth_addr uip_lladdr_t;
|
|||
/**
|
||||
* uIP initialization function.
|
||||
*
|
||||
* This function should be called at boot up to initilize the uIP
|
||||
* This function should be called at boot up to initialise the uIP
|
||||
* TCP/IP stack.
|
||||
*/
|
||||
void uip_init(void);
|
||||
|
@ -311,7 +311,7 @@ void uip_setipid(u16_t id);
|
|||
* Periodic processing for a connection identified by its number.
|
||||
*
|
||||
* This function does the necessary periodic processing (timers,
|
||||
* polling) for a uIP TCP conneciton, and should be called when the
|
||||
* polling) for a uIP TCP connection, and should be called when the
|
||||
* periodic uIP timer goes off. It should be called for every
|
||||
* connection, regardless of whether they are open of closed.
|
||||
*
|
||||
|
@ -1426,17 +1426,17 @@ struct uip_stats {
|
|||
} icmp; /**< ICMP statistics. */
|
||||
#if UIP_TCP
|
||||
struct {
|
||||
uip_stats_t recv; /**< Number of recived TCP segments. */
|
||||
uip_stats_t recv; /**< Number of received TCP segments. */
|
||||
uip_stats_t sent; /**< Number of sent TCP segments. */
|
||||
uip_stats_t drop; /**< Number of dropped TCP segments. */
|
||||
uip_stats_t chkerr; /**< Number of TCP segments with a bad
|
||||
checksum. */
|
||||
uip_stats_t ackerr; /**< Number of TCP segments with a bad ACK
|
||||
number. */
|
||||
uip_stats_t rst; /**< Number of recevied TCP RST (reset) segments. */
|
||||
uip_stats_t rst; /**< Number of received TCP RST (reset) segments. */
|
||||
uip_stats_t rexmit; /**< Number of retransmitted TCP segments. */
|
||||
uip_stats_t syndrop; /**< Number of dropped SYNs due to too few
|
||||
connections was avaliable. */
|
||||
connections was available. */
|
||||
uip_stats_t synrst; /**< Number of SYNs for closed ports,
|
||||
triggering a RST. */
|
||||
} tcp; /**< TCP statistics. */
|
||||
|
@ -1444,7 +1444,7 @@ struct uip_stats {
|
|||
#if UIP_UDP
|
||||
struct {
|
||||
uip_stats_t drop; /**< Number of dropped UDP segments. */
|
||||
uip_stats_t recv; /**< Number of recived UDP segments. */
|
||||
uip_stats_t recv; /**< Number of received UDP segments. */
|
||||
uip_stats_t sent; /**< Number of sent UDP segments. */
|
||||
uip_stats_t chkerr; /**< Number of UDP segments with a bad
|
||||
checksum. */
|
||||
|
@ -1453,7 +1453,7 @@ struct uip_stats {
|
|||
#if UIP_CONF_IPV6
|
||||
struct {
|
||||
uip_stats_t drop; /**< Number of dropped ND6 packets. */
|
||||
uip_stats_t recv; /**< Number of recived ND6 packets */
|
||||
uip_stats_t recv; /**< Number of received ND6 packets */
|
||||
uip_stats_t sent; /**< Number of sent ND6 packets */
|
||||
} nd6;
|
||||
#endif /*UIP_CONF_IPV6*/
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
} RingBuff_t;
|
||||
|
||||
/* Inline Functions: */
|
||||
/** Initializes a ring buffer ready for use. Buffers must be initialized via this function
|
||||
/** Initialises a ring buffer ready for use. Buffers must be initialized via this function
|
||||
* before any operations are called upon them. Already initialized buffers may be reset
|
||||
* by re-initializing them using this function.
|
||||
*
|
||||
|
@ -172,4 +172,4 @@
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ static uint8_t RX_BitsRemaining;
|
|||
/** Temporary data variable to hold the byte being received as it is shifted in */
|
||||
static uint8_t RX_Data;
|
||||
|
||||
/** Initializes the software UART, ready for data transmission and reception into the global ring buffers. */
|
||||
/** Initialises the software UART, ready for data transmission and reception into the global ring buffers. */
|
||||
void SoftUART_Init(void)
|
||||
{
|
||||
/* Set TX pin to output high, enable RX pull-up */
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
*
|
||||
* \section SSec_Options Project Options
|
||||
*
|
||||
* The following defines can be found in this project, which can control the project behavior when defined, or changed in value.
|
||||
* The following defines can be found in this project, which can control the project behaviour when defined, or changed in value.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue