[spelling] spelling-fixes. (not external/)
This commit is contained in:
committed by
Travis Geiselbrecht
parent
d90cb4e7c6
commit
d0b90c2d68
@@ -131,7 +131,7 @@ snooze_8m:
|
||||
movs r1, r2 // save bit 1
|
||||
add r2, r2, r10 // combine with CLK1
|
||||
DELAY
|
||||
str r2, [r7, #OFF_OUT] // commit negative egde
|
||||
str r2, [r7, #OFF_OUT] // commit negative edge
|
||||
lsrs r3, r3, #1 // advance to next bit
|
||||
add r1, r1, r11 // combine with CLK1
|
||||
nop
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
* read/write API.
|
||||
*
|
||||
* Any subsequent read/write operation may return ERR_CHANNEL_CLOSED. This is
|
||||
* because we must be able to accomodate the possibility of the device becoming
|
||||
* because we must be able to accommodate the possibility of the device becoming
|
||||
* disconnected.
|
||||
* If ERR_CHANNEL_CLOSED is received, the client MUST assume that the connection
|
||||
* has closed and will not be recovered.
|
||||
|
||||
@@ -94,7 +94,7 @@ static int semaphore_consumer(void *unused)
|
||||
static int semaphore_test(void)
|
||||
{
|
||||
static semaphore_t isem = SEMAPHORE_INITIAL_VALUE(isem, 99);
|
||||
printf("preinitialized sempahore:\n");
|
||||
printf("preinitialized semaphore:\n");
|
||||
hexdump(&isem, sizeof(isem));
|
||||
|
||||
sem_init(&sem, sem_start_value);
|
||||
|
||||
@@ -110,7 +110,7 @@ struct arm_cm_exception_frame_fpu {
|
||||
extern unsigned int arm_cm_num_irq_pri_bits;
|
||||
extern unsigned int arm_cm_irq_pri_mask;
|
||||
#else
|
||||
/* if we don't want to calculate the nubmer of priority bits, then assume
|
||||
/* if we don't want to calculate the number of priority bits, then assume
|
||||
* the cpu implements 3 (8 priority levels), which is the minimum according to spec.
|
||||
*/
|
||||
#ifndef __NVIC_PRIO_BITS
|
||||
|
||||
@@ -154,7 +154,7 @@ void arch_init(void)
|
||||
//spinlock_test();
|
||||
|
||||
#if ARM_WITH_MMU
|
||||
/* finish intializing the mmu */
|
||||
/* finish initializing the mmu */
|
||||
arm_mmu_init();
|
||||
#endif
|
||||
}
|
||||
@@ -258,7 +258,7 @@ static void arm_basic_setup(void)
|
||||
arm_fpu_set_enable(false);
|
||||
#endif
|
||||
|
||||
/* set the vector base to our exception vectors so we dont need to double map at 0 */
|
||||
/* set the vector base to our exception vectors so we don't need to double map at 0 */
|
||||
#if ARM_ISA_ARMV7
|
||||
arm_write_vbar(KERNEL_BASE + KERNEL_LOAD_OFFSET);
|
||||
#endif
|
||||
|
||||
@@ -96,7 +96,7 @@ SECTIONS
|
||||
__data_end = .;
|
||||
}
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : ALIGN(4) {
|
||||
KEEP(*(.bss.prebss.*))
|
||||
. = ALIGN(4);
|
||||
|
||||
@@ -103,7 +103,7 @@ SECTIONS
|
||||
__data_end = .;
|
||||
}
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : ALIGN(4) {
|
||||
KEEP(*(.bss.prebss.*))
|
||||
. = ALIGN(4);
|
||||
|
||||
@@ -93,7 +93,7 @@ SECTIONS
|
||||
__data_end = .;
|
||||
}
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : ALIGN(8) {
|
||||
KEEP(*(.bss.prebss.*))
|
||||
. = ALIGN(8);
|
||||
|
||||
@@ -95,7 +95,7 @@ SECTIONS
|
||||
__data_end = .;
|
||||
}
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : ALIGN(4) {
|
||||
__bss_start = .;
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ SECTIONS
|
||||
_sbss_end__ = .;
|
||||
}
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : {
|
||||
/* regular bss */
|
||||
*(.dynbss)
|
||||
|
||||
@@ -74,7 +74,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
/* uninitialized data (in same segment as writable data) */
|
||||
.bss : ALIGN(4) {
|
||||
KEEP(*(.bss.prebss.*))
|
||||
. = ALIGN(4);
|
||||
|
||||
@@ -89,7 +89,7 @@ real_start:
|
||||
movw %ax, %gs
|
||||
movw %ax, %ss
|
||||
|
||||
/* load inital stack pointer */
|
||||
/* load initial stack pointer */
|
||||
movl $PHYS(_kstack + 4096), %esp
|
||||
|
||||
/*We jumped here in protected mode in a code segment that migh not longer
|
||||
|
||||
@@ -94,7 +94,7 @@ real_start:
|
||||
movw %ax, %gs
|
||||
movw %ax, %ss
|
||||
|
||||
/* load inital stack pointer */
|
||||
/* load initial stack pointer */
|
||||
movl $PHYS(_kstack + 4096), %esp
|
||||
|
||||
/* We need to jump to our sane 32 bit CS */
|
||||
|
||||
@@ -101,7 +101,7 @@ static int usb_append_interface(usb_descriptor *desc, const uint8_t *int_descr,
|
||||
// patch our interface descriptor with the new id
|
||||
ptr[2] = interface_num;
|
||||
|
||||
// append it to our config desriptor
|
||||
// append it to our config descriptor
|
||||
append_desc_data(desc, ptr, len);
|
||||
free(ptr);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ struct driver {
|
||||
}
|
||||
|
||||
/*
|
||||
* returns the driver specific ops pointer given the device instance, specifc
|
||||
* returns the driver specific ops pointer given the device instance, specific
|
||||
* ops type, and generic ops member name within the specific ops structure.
|
||||
*/
|
||||
#define device_get_driver_ops(dev, type, member) ({ \
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
**
|
||||
** CRC and minimum length padding are handled by the driver.
|
||||
**
|
||||
** Data is malloc()'d and ownership is transfered to the ethernet
|
||||
** Data is malloc()'d and ownership is transferred to the ethernet
|
||||
** device which will free() it once the packet is transmitted.
|
||||
**
|
||||
*/
|
||||
|
||||
@@ -492,7 +492,7 @@ void bio_initialize_bdev(bdev_t *dev,
|
||||
|
||||
#if DEBUG
|
||||
// If we have been supplied information about our erase geometry, sanity
|
||||
// check it in debug bulids.
|
||||
// check it in debug builds.
|
||||
if (geometry_count && geometry) {
|
||||
for (size_t i = 0; i < geometry_count; ++i) {
|
||||
bio_erase_geometry_info_t *info = geometry + i;
|
||||
|
||||
@@ -173,10 +173,10 @@ nextcomponent:
|
||||
}
|
||||
|
||||
if (!done) {
|
||||
/* move to the next seperator */
|
||||
/* move to the next separator */
|
||||
ptr = next_sep + 1;
|
||||
|
||||
/* consume multiple seperators */
|
||||
/* consume multiple separators */
|
||||
while (*ptr == '/')
|
||||
ptr++;
|
||||
}
|
||||
|
||||
@@ -207,10 +207,10 @@ status_t fat32_open_file(fscookie *cookie, const char *path, filecookie **fcooki
|
||||
if (done == true) {
|
||||
break;
|
||||
} else {
|
||||
/* move to the next seperator */
|
||||
/* move to the next separator */
|
||||
ptr = next_sep + 1;
|
||||
|
||||
/* consume multiple seperators */
|
||||
/* consume multiple separators */
|
||||
while (*ptr == '/') {
|
||||
ptr++;
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ void fs_normalize_path(char *path)
|
||||
outpos = 0;
|
||||
done = false;
|
||||
|
||||
/* remove duplicate path seperators, flatten empty fields (only composed of .), backtrack fields with .., remove trailing slashes */
|
||||
/* remove duplicate path separators, flatten empty fields (only composed of .), backtrack fields with .., remove trailing slashes */
|
||||
while (!done) {
|
||||
c = path[pos];
|
||||
switch (state) {
|
||||
@@ -623,7 +623,7 @@ void fs_normalize_path(char *path)
|
||||
}
|
||||
}
|
||||
|
||||
/* dont end with trailing slashes */
|
||||
/* don't end with trailing slashes */
|
||||
if (outpos > 0 && path[outpos - 1] == '/')
|
||||
outpos--;
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ status_t fs_stat_fs(const char *mountpoint, struct fs_stat *stat) __NONNULL((1))
|
||||
/* convenience routines */
|
||||
ssize_t fs_load_file(const char *path, void *ptr, size_t maxlen) __NONNULL();
|
||||
|
||||
/* walk through a path string, removing duplicate path seperators, flattening . and .. references */
|
||||
/* walk through a path string, removing duplicate path separators, flattening . and .. references */
|
||||
void fs_normalize_path(char *path) __NONNULL();
|
||||
|
||||
/* Remove any leading spaces or slashes */
|
||||
|
||||
@@ -342,7 +342,7 @@ static void *TestTrimHelper(ssize_t target)
|
||||
*(char **)next_block = answer;
|
||||
answer = next_block;
|
||||
if (theheap.remaining > remaining) return answer;
|
||||
// Abandon attemt to hit particular freelist entry size if we accidentally got more memory
|
||||
// Abandon attempt to hit particular freelist entry size if we accidentally got more memory
|
||||
// from the OS.
|
||||
remaining = theheap.remaining;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ static void free_pktbuf_buf_cb(void *buf, void *arg)
|
||||
*
|
||||
* It's important to note that there is a flag to note that the buffer is cached and should
|
||||
* be properly handled via the appropriate driver when it's time to deal with buffer
|
||||
* descriptiors.
|
||||
* descriptors.
|
||||
*/
|
||||
void pktbuf_add_buffer(pktbuf_t *p, u8 *buf, u32 len, uint32_t header_sz, uint32_t flags,
|
||||
pktbuf_free_callback cb, void *cb_args)
|
||||
|
||||
@@ -366,7 +366,7 @@ static bool test_deletion(void)
|
||||
return false;
|
||||
EXPECT_EQ(2, (inode)->reference_count,
|
||||
"Reference count should count one non-deleted version of object");
|
||||
EXPECT_EQ(24, (inode)->location, "Not pointing to current verison");
|
||||
EXPECT_EQ(24, (inode)->location, "Not pointing to current version");
|
||||
write_pointer = FLASH_PAGE_SIZE + sizeof(erase_header);
|
||||
write_pointer += flash_nor_write(0, write_pointer, sizeof(erase_header),
|
||||
erase_header);
|
||||
|
||||
@@ -351,7 +351,7 @@ static off_t ptable_adjust_request_for_erase_geometry(uint64_t region_start,
|
||||
// Intersect each of the erase regions with the region being proposed and
|
||||
// see if we can fit the allocation request in the intersection, after
|
||||
// adjusting the intersection and requested length to multiples of and
|
||||
// alligned to the erase block size. Test the geometries back-to-front
|
||||
// aligned to the erase block size. Test the geometries back-to-front
|
||||
// instead of front-to-back if alloc_end has been reqeusted.
|
||||
for (size_t i = 0; i < ptable.bdev->geometry_count; ++i) {
|
||||
size_t geo_index = alloc_end ? (ptable.bdev->geometry_count - i - 1) : i;
|
||||
|
||||
@@ -195,7 +195,7 @@ static void udp_svc_callback(void *data, size_t len,
|
||||
opcode = ntohs(RD_U16(data));
|
||||
|
||||
if (opcode != TFTP_OPCODE_WRQ) {
|
||||
// Operation not suported.
|
||||
// Operation not supported.
|
||||
LTRACEF("op not supported, opcode: %d\n", opcode);
|
||||
send_error(socket, TFTP_ERROR_ACCESS);
|
||||
udp_close(socket);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <reg.h>
|
||||
|
||||
/* common addres space regions */
|
||||
/* common address space regions */
|
||||
#define FPGASLAVES_BASE (0xc0000000)
|
||||
#define PERIPH_BASE (0xfc000000)
|
||||
#define LWPFGASLAVES_BASE (0xff200000)
|
||||
|
||||
@@ -73,7 +73,7 @@ typedef enum {
|
||||
|
||||
|
||||
/* IER */
|
||||
#define UART_IER_ERBFI (1 << 0) /* RX buffer conatins data int. */
|
||||
#define UART_IER_ERBFI (1 << 0) /* RX buffer contains data int. */
|
||||
#define UART_IER_ETBEI (1 << 1) /* TX FIFO threshold trigger int. */
|
||||
#define UART_IER_ELSI (1 << 2) /* BE, FE, PE, or OE int. */
|
||||
#define UART_IER_EDSSI (1 << 3) /* CTS change (DCTS) int. */
|
||||
|
||||
@@ -51,7 +51,7 @@ static uint16_t divisor;
|
||||
#define INTERNAL_FREQ_3X 3579546ULL
|
||||
|
||||
/* Maximum amount of time that can be program on the timer to schedule the next
|
||||
* interrupt, in miliseconds */
|
||||
* interrupt, in milliseconds */
|
||||
#define MAX_TIMER_INTERVAL 55
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ status_t platform_set_oneshot_timer(platform_timer_callback callback,
|
||||
|
||||
divisor = count & 0xffff;
|
||||
timer_delta_time = (3685982306ULL * count) >> 10;
|
||||
/* Program PIT in teh software strobe configuration, to send one pulse
|
||||
/* Program PIT in the software strobe configuration, to send one pulse
|
||||
* after the count reach 0 */
|
||||
outp(I8253_CONTROL_REG, 0x38);
|
||||
outp(I8253_DATA_REG, divisor & 0xff); // LSB
|
||||
|
||||
@@ -329,7 +329,7 @@ const void *const __SECTION(".text.boot.vectab2") vectab2[] = {
|
||||
VECTAB_ENTRY(DMA2_Channel3_IRQ), /*!< DMA2 Channel 3 global Interrupt */
|
||||
VECTAB_ENTRY(DMA2_Channel4_5_IRQ), /*!< DMA2 Channel 4 and Channel 5 global Interrupt */
|
||||
VECTAB_ENTRY(DMA2_Channel5_IRQ), /*!< DMA2 Channel 5 global Interrupt (DMA2 Channel 5 is
|
||||
mapped at postion 60 only if the MISC_REMAP bit in
|
||||
mapped at position 60 only if the MISC_REMAP bit in
|
||||
the AFIO_MAPR2 register is set) */
|
||||
#endif /* STM32F10X_HD_VL */
|
||||
|
||||
|
||||
@@ -350,7 +350,7 @@ static ssize_t spiflash_bdev_read(struct bdev *bdev, void *buf, off_t offset, si
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
// XXX handle not mulitple of 4
|
||||
// XXX handle not multiple of 4
|
||||
qspi_rd32(&flash.qspi, offset, buf, len / 4);
|
||||
|
||||
return len;
|
||||
|
||||
@@ -162,7 +162,7 @@ status_t display_present(struct display_image *image, uint starty, uint endy)
|
||||
uint8_t *bufptr = localbuf;
|
||||
uint8_t trailer = 0;
|
||||
|
||||
// The first line is preceeded with a write command.
|
||||
// The first line is preceded with a write command.
|
||||
*bufptr++ = MLCD_WR | vcom_state;
|
||||
|
||||
vcom_state = vcom_state == VCOM_HI ? VCOM_LO : VCOM_HI;
|
||||
|
||||
@@ -49,7 +49,7 @@ STATIC const PINMUX_GRP_T ioconSetup[] = {
|
||||
{0, 3, (IOCON_MODE_INACT | IOCON_DIGMODE_EN)}, /* PIO0_3-SCT1_OUT4-GRN */
|
||||
{1, 1, (IOCON_MODE_INACT | IOCON_DIGMODE_EN)}, /* PIO1_1-BREAK_STS1-BLUE */
|
||||
|
||||
/* QEI, motor controler, I2C, CAN */
|
||||
/* QEI, motor controller, I2C, CAN */
|
||||
{0, 2, (IOCON_MODE_INACT | IOCON_DIGMODE_EN)}, /* PIO0_2-QEI-SCT0_IN */
|
||||
{0, 30, (IOCON_MODE_INACT | IOCON_DIGMODE_EN)}, /* PIO0_30-QEI-SCT0_IN */
|
||||
{0, 17, (IOCON_MODE_INACT | IOCON_DIGMODE_EN)}, /* PIO0_17-QEI-SCT0_IN */
|
||||
@@ -138,7 +138,7 @@ void Board_SetupMuxing(void)
|
||||
/* Initialize debug output via UART for board */
|
||||
void Board_Debug_Init(void)
|
||||
{
|
||||
/* Disables pullups/pulldowns and enable digitial mode */
|
||||
/* Disables pullups/pulldowns and enable digital mode */
|
||||
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 13, (IOCON_MODE_INACT | IOCON_DIGMODE_EN));
|
||||
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 18, (IOCON_MODE_INACT | IOCON_DIGMODE_EN));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user