diff options
author | klemens <ka7@github.com> | 2016-08-15 17:55:40 +0200 |
---|---|---|
committer | Travis Geiselbrecht <geist@foobox.com> | 2016-08-25 17:30:34 -0700 |
commit | d0b90c2d6897bd31f330958ffa416cb9265a9e89 (patch) | |
tree | 64850601fcc80ab5ebdb80980750c070cafd6972 | |
parent | d90cb4e7c6340539838f06307e0680470e6eb8a8 (diff) | |
download | common-d0b90c2d6897bd31f330958ffa416cb9265a9e89.tar.gz |
[spelling] spelling-fixes. (not external/)
33 files changed, 39 insertions, 39 deletions
diff --git a/app/mdebug/fw-m0sub.S b/app/mdebug/fw-m0sub.S index b7185b51..93e0c98d 100644 --- a/app/mdebug/fw-m0sub.S +++ b/app/mdebug/fw-m0sub.S @@ -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 diff --git a/app/ndebugtest/ndebugtest.c b/app/ndebugtest/ndebugtest.c index 3405c752..db1737e2 100644 --- a/app/ndebugtest/ndebugtest.c +++ b/app/ndebugtest/ndebugtest.c @@ -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. diff --git a/app/tests/thread_tests.c b/app/tests/thread_tests.c index 72d2b7d7..aebd58ee 100644 --- a/app/tests/thread_tests.c +++ b/app/tests/thread_tests.c @@ -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); diff --git a/arch/arm/arm-m/include/arch/arm/cm.h b/arch/arm/arm-m/include/arch/arm/cm.h index 13a62796..8e886b2d 100644 --- a/arch/arm/arm-m/include/arch/arm/cm.h +++ b/arch/arm/arm-m/include/arch/arm/cm.h @@ -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 diff --git a/arch/arm/arm/arch.c b/arch/arm/arm/arch.c index dfae9042..28e5ad02 100644 --- a/arch/arm/arm/arch.c +++ b/arch/arm/arm/arch.c @@ -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 diff --git a/arch/arm/system-onesegment.ld b/arch/arm/system-onesegment.ld index 4d9750f5..841af9c5 100644 --- a/arch/arm/system-onesegment.ld +++ b/arch/arm/system-onesegment.ld @@ -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); diff --git a/arch/arm/system-twosegment.ld b/arch/arm/system-twosegment.ld index df16fc9b..4d65ceff 100644 --- a/arch/arm/system-twosegment.ld +++ b/arch/arm/system-twosegment.ld @@ -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); diff --git a/arch/arm64/system-onesegment.ld b/arch/arm64/system-onesegment.ld index 9cdaa855..7bc479fe 100644 --- a/arch/arm64/system-onesegment.ld +++ b/arch/arm64/system-onesegment.ld @@ -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); diff --git a/arch/microblaze/linker.ld b/arch/microblaze/linker.ld index 5c549e7c..d6c984b2 100644 --- a/arch/microblaze/linker.ld +++ b/arch/microblaze/linker.ld @@ -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 = .; diff --git a/arch/mips/linker.ld b/arch/mips/linker.ld index c2376480..b874ca0b 100644 --- a/arch/mips/linker.ld +++ b/arch/mips/linker.ld @@ -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) diff --git a/arch/or1k/linker.ld b/arch/or1k/linker.ld index 4fe442de..397a948d 100644 --- a/arch/or1k/linker.ld +++ b/arch/or1k/linker.ld @@ -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); diff --git a/arch/x86/32/start.S b/arch/x86/32/start.S index e1dc2529..2844b8c5 100644 --- a/arch/x86/32/start.S +++ b/arch/x86/32/start.S @@ -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 diff --git a/arch/x86/64/start.S b/arch/x86/64/start.S index 468ca0b3..edf4e113 100644 --- a/arch/x86/64/start.S +++ b/arch/x86/64/start.S @@ -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 */ diff --git a/dev/usb/usb.c b/dev/usb/usb.c index 7bb81722..9c49a21a 100644 --- a/dev/usb/usb.c +++ b/dev/usb/usb.c @@ -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); diff --git a/include/dev/driver.h b/include/dev/driver.h index 3622fea2..07c6b14a 100644 --- a/include/dev/driver.h +++ b/include/dev/driver.h @@ -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) ({ \ diff --git a/include/dev/ethernet.h b/include/dev/ethernet.h index 7042cea2..f8e08355 100644 --- a/include/dev/ethernet.h +++ b/include/dev/ethernet.h @@ -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. ** */ diff --git a/lib/bio/bio.c b/lib/bio/bio.c index 89c841f6..c33bdf76 100644 --- a/lib/bio/bio.c +++ b/lib/bio/bio.c @@ -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; diff --git a/lib/fs/ext2/dir.c b/lib/fs/ext2/dir.c index 6a48c505..27ee8905 100644 --- a/lib/fs/ext2/dir.c +++ b/lib/fs/ext2/dir.c @@ -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++; } diff --git a/lib/fs/fat32/file.c b/lib/fs/fat32/file.c index c73ae938..a044956e 100644 --- a/lib/fs/fat32/file.c +++ b/lib/fs/fat32/file.c @@ -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++; } diff --git a/lib/fs/fs.c b/lib/fs/fs.c index 40518993..60464b6d 100644 --- a/lib/fs/fs.c +++ b/lib/fs/fs.c @@ -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--; diff --git a/lib/fs/include/lib/fs.h b/lib/fs/include/lib/fs.h index ac4590fd..32c3fe2c 100644 --- a/lib/fs/include/lib/fs.h +++ b/lib/fs/include/lib/fs.h @@ -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 */ diff --git a/lib/heap/cmpctmalloc/cmpctmalloc.c b/lib/heap/cmpctmalloc/cmpctmalloc.c index 888e0093..a3d1f2c8 100644 --- a/lib/heap/cmpctmalloc/cmpctmalloc.c +++ b/lib/heap/cmpctmalloc/cmpctmalloc.c @@ -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; } diff --git a/lib/minip/pktbuf.c b/lib/minip/pktbuf.c index 0ab7e73e..2c78e7a2 100644 --- a/lib/minip/pktbuf.c +++ b/lib/minip/pktbuf.c @@ -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) diff --git a/lib/norfs/test/norfs_test.c b/lib/norfs/test/norfs_test.c index 9efbdfb9..3be2febc 100644 --- a/lib/norfs/test/norfs_test.c +++ b/lib/norfs/test/norfs_test.c @@ -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); diff --git a/lib/ptable/ptable.c b/lib/ptable/ptable.c index fcd709c9..d056e896 100644 --- a/lib/ptable/ptable.c +++ b/lib/ptable/ptable.c @@ -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; diff --git a/lib/tftp/tftp.c b/lib/tftp/tftp.c index 09e771cd..e046282d 100644 --- a/lib/tftp/tftp.c +++ b/lib/tftp/tftp.c @@ -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); diff --git a/platform/alterasoc/include/platform/alterasoc.h b/platform/alterasoc/include/platform/alterasoc.h index 37e2ec8e..7f555547 100644 --- a/platform/alterasoc/include/platform/alterasoc.h +++ b/platform/alterasoc/include/platform/alterasoc.h @@ -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) diff --git a/platform/mediatek/mt6797/include/platform/mt_uart.h b/platform/mediatek/mt6797/include/platform/mt_uart.h index 5c8c9a2f..6a6d6bb9 100644 --- a/platform/mediatek/mt6797/include/platform/mt_uart.h +++ b/platform/mediatek/mt6797/include/platform/mt_uart.h @@ -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. */ diff --git a/platform/pc/timer.c b/platform/pc/timer.c index 47b29bb5..fd263323 100644 --- a/platform/pc/timer.c +++ b/platform/pc/timer.c @@ -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 diff --git a/platform/stm32f1xx/vectab.c b/platform/stm32f1xx/vectab.c index f0e3e01e..02a335be 100644 --- a/platform/stm32f1xx/vectab.c +++ b/platform/stm32f1xx/vectab.c @@ -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 */ diff --git a/platform/zynq/spiflash.c b/platform/zynq/spiflash.c index 1690fee5..ffcec663 100644 --- a/platform/zynq/spiflash.c +++ b/platform/zynq/spiflash.c @@ -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; diff --git a/target/dartuinoP0/memory_lcd.c b/target/dartuinoP0/memory_lcd.c index 18459acd..b6f46986 100644 --- a/target/dartuinoP0/memory_lcd.c +++ b/target/dartuinoP0/memory_lcd.c @@ -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; diff --git a/target/lpcexpresso1549/init.c b/target/lpcexpresso1549/init.c index 606e4ab7..79994cd3 100644 --- a/target/lpcexpresso1549/init.c +++ b/target/lpcexpresso1549/init.c @@ -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)); |