contrib: fix minor typos
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 12 Jul 2020 22:32:49 +0000 (00:32 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 26 Jul 2020 19:14:51 +0000 (20:14 +0100)
While there, replace s/return(0)/return 0/ that causes checkpatch
to fail.

Change-Id: I5ad54cffca629475563c471114a9f77301a9e4f8
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5768
Tested-by: jenkins
17 files changed:
contrib/coresight-trace.txt
contrib/cross-build.sh
contrib/itmdump.c
contrib/loaders/flash/at91sam7x/crt.s
contrib/loaders/flash/at91sam7x/dcc.c
contrib/loaders/flash/at91sam7x/main.c
contrib/loaders/flash/at91sam7x/ocl.h
contrib/loaders/flash/cc26xx/flash.h
contrib/loaders/flash/cc26xx/startup.c
contrib/loaders/flash/mrvlqspi_write.S
contrib/loaders/flash/msp432/driverlib.c
contrib/loaders/flash/msp432/startup_msp432e4.c
contrib/loaders/flash/msp432/startup_msp432p4.c
contrib/loaders/flash/stm32/stm32h7x.S
contrib/loaders/flash/str7x.s
contrib/loaders/flash/str9x.s
contrib/rpc_examples/ocd_rpc_example.py

index c093c205a42bdd7903ea49d1c0489fb5fb8dac14..517119b6f64ee4e29dd7d06c5fcd083a55f59879 100644 (file)
@@ -62,7 +62,7 @@ Clearly some of that data would be valuable for interactive debugging.
 +In any case, OpenOCD is not currently GUI-oriented.  Accordingly, we now
 +expect any such graphics to come from postprocessing.
 
- measurments for RTOS event timings should also be easy to collect.
+ measurements for RTOS event timings should also be easy to collect.
 +Examples include context and message switch times, as well as times
 for application interactions.
 +
index 74ab0f4f56b5b3b300933302644d98bb79c045d6..d508bed474b5d454eceb6ecaeb59889d0c04186b 100755 (executable)
@@ -16,7 +16,7 @@
 # This script is probably more useful as a reference than as a complete build
 # tool but for some configurations it may be usable as-is. It only cross-
 # builds libusb-1.0 from source, but the script can be extended to build other
-# prerequisities in a similar manner.
+# prerequisites in a similar manner.
 #
 # Usage:
 # export LIBUSB1_SRC=/path/to/libusb-1.0
index 896389416033ab212ffcc6793d3fdce0c1015f66..24aa34f32bad734a29265e30e8283211aceeca2a 100644 (file)
@@ -325,7 +325,7 @@ static void show_timestamp(FILE *f, int c)
                delayed = true;
                break;
        case 0xf:
-               label = ", packet and timetamp delayed";
+               label = ", packet and timestamp delayed";
                delayed = true;
                break;
        }
index 2e434bbe7ed07f0c55deb3e4df5b9b32b03b989d..94ed66d7381c2d76dd4f942586ee4e7a03e9e14c 100644 (file)
@@ -46,7 +46,7 @@
    ARM_MODE_SVC   = 0x13      /* Supervisor Interrupts Mode                   */
    ARM_MODE_ABORT = 0x17      /* Abort Processing memory Faults Mode          */
    ARM_MODE_UNDEF = 0x1B      /* Undefined Instructions Mode                  */
-   ARM_MODE_SYS   = 0x1F      /* System Running in Priviledged Operating Mode */
+   ARM_MODE_SYS   = 0x1F      /* System Running in Privileged Operating Mode  */
    ARM_MODE_MASK  = 0x1F
 
    I_BIT          = 0x80      /* disable IRQ when I bit is set */
index 04a7f7a4dc3d3a302a3698b31a89639ee652124a..a5c32e7e6c615b37b66a1d19cdfbf7aed1cc6cc4 100644 (file)
@@ -39,7 +39,7 @@ int dcc_wr(uint32 data)
 
        do {
                asm volatile ("mrc p14, 0, %0, C0, C0" : "=r" (dcc_reg) :);
-               /* operation controled by master, cancel operation
+               /* operation controlled by master, cancel operation
                         upon reception of data for immediate response */
                if (dcc_reg&1) return -1;
        } while (dcc_reg&2);
index 831e03f14b1f8a6b6f823725c77fef1d2599ac02..47c9440827f18d88b0c6090cb6e6ff3344613559 100644 (file)
@@ -101,5 +101,5 @@ int main (void)
                }
        }
 
-       return(0); /* we shall never get here, just to supress compiler warning */
+       return 0; /* we shall never get here, just to suppress compiler warning */
 }
index ef30c33f4828f80656b844e8a3876bd9b2899dad..bd8a5f7a0216cd9dece7d5b119746659398337ec 100644 (file)
@@ -21,7 +21,7 @@
 /* command/response mask */
 #define OCL_CMD_MASK 0xFFFF0000L
 
-/* commads */
+/* commands */
 #define OCL_FLASH_BLOCK 0x0CFB0000L
 #define OCL_ERASE_BLOCK 0x0CEB0000L
 #define OCL_ERASE_ALL 0x0CEA0000L
index ec1c24fc55253635ba8f6b6c6650e990b431fb3e..dd0a3745a5159ad092167e16af4c1209e5b27f00 100644 (file)
@@ -108,7 +108,7 @@ extern "C"
 
 /******************************************************************************
 *
-* Define for the clock frequencey input to the flash module in number of MHz
+* Define for the clock frequency input to the flash module in number of MHz
 *
 ******************************************************************************/
 #define FLASH_MODULE_CLK_FREQ 48
@@ -279,7 +279,7 @@ static inline uint32_t flash_check_fsm_for_ready(void)
 * This function will erase the specified flash sector. The function will
 * not return until the flash sector has been erased or an error condition
 * occurred. If flash top sector is erased the function will program the
-* the device security data bytes with default values. The device security
+* device security data bytes with default values. The device security
 * data located in the customer configuration area of the flash top sector,
 * must have valid values at all times. These values affect the configuration
 * of the device during boot.
@@ -305,7 +305,7 @@ extern uint32_t flash_sector_erase(uint32_t sector_address);
 *
 * This function will erase all unprotected flash sectors. The function will
 * not return until the flash sectors has been erased or an error condition
-* occurred. Since the flash top sector is erased the function will program the
+* occurred. Since the flash top sector is erased the function will program
 * the device security data bytes with default values. The device security
 * data located in the customer configuration area of the flash top sector,
 * must have valid values at all times. These values affect the configuration
index 70fd836503ce623ff11c4bed85c08f6d1245e839..53d8ea8c7585f6bc4e1c31232160f97fd81a180c 100644 (file)
@@ -52,7 +52,7 @@ const uint32_t stack_pntr = (uint32_t)stack + sizeof(stack);
 
 /******************************************************************************
 *
-* The following are constructs created by the linker indicating where the
+* The following are constructs created by the linker indicating where
 * the "bss" and "ebss" segments reside in memory.
 *
 ******************************************************************************/
index 064192c9c1ff5f78a594cc9d96ba5f427d30ab59..e1088e38dab4d511503b2591022f360e4fed5081 100644 (file)
@@ -81,7 +81,7 @@ find_next_page_boundary:
        /* If we have not reached the next page boundary after the target address, keep going */
        bls     find_next_page_boundary
 write_enable:
-       /* Flush read/write fifo's */
+       /* Flush read/write fifos */
        bl      flush_fifo
 
        /* Instruction byte 1 */
@@ -134,7 +134,7 @@ write_wait:
        bl      stop_tx         /* Otherwise, end the command and keep going w/ the next page */
        add     r10, r4         /* Move up the end-of-page address by the page size*/
 check_flash_busy:              /* Wait for the flash to finish the previous page write */
-       /* Flush read/write fifo's */
+       /* Flush read/write fifos */
        bl      flush_fifo
        /* Instruction byte 1 */
        movs    r8, #0x1
index a4f54161934513331497533840c2d35702cb79c8..ac6dfd454177aa719d69caef9eae1a8b5e95a1d9 100644 (file)
@@ -367,7 +367,7 @@ bool pcm_shutdown_device(uint32_t shutdown_mode)
        uint32_t shutdown_mode_bits = (shutdown_mode == PCM_LPM45) ?
                PCM_CTL0_LPMR_12 : PCM_CTL0_LPMR_10;
 
-       /* If a power transition is occuring, return false */
+       /* If a power transition is occurring, return false */
        if (BITBAND_PERI(PCM->CTL1, PCM_CTL1_PMR_BUSY_OFS))
                return false;
 
index 8adce83563079dd57ec5c8b10c22c28fb92eeb07..494da46e7d185be34442621554726dcad5cfaf7c 100644 (file)
@@ -71,9 +71,9 @@ void (* const intr_vectors[])(void) __attribute__((section(".intvecs"))) = {
 };
 
 /*
- * The following are constructs created by the linker, indicating where the
- * the "data" and "bss" segments reside in memory.  The initializers for the
- * for the "data" segment resides immediately following the "text" segment.
+ * The following are constructs created by the linker, indicating where
+ * the "data" and "bss" segments reside in memory.  The initializers for
+ * the "data" segment resides immediately following the "text" segment.
  */
 extern uint32_t __bss_start__;
 extern uint32_t __bss_end__;
index ed7ea10a90b0c3a269af8f9fa1586d0d8e9305a6..09103b0e43df9a04902babfdbe71e3adb076a6a8 100644 (file)
@@ -71,9 +71,9 @@ void (* const intr_vectors[])(void) __attribute__((section(".intvecs"))) = {
 };
 
 /*
- * The following are constructs created by the linker, indicating where the
- * the "data" and "bss" segments reside in memory.  The initializers for the
- * for the "data" segment resides immediately following the "text" segment.
+ * The following are constructs created by the linker, indicating where
+ * the "data" and "bss" segments reside in memory.  The initializers for
+ * the "data" segment resides immediately following the "text" segment.
  */
 extern uint32_t __bss_start__;
 extern uint32_t __bss_end__;
index 99e4167532a34e012babddef18a66c89937769c4..8ef42a4cf9a78bbb2c7728fc1968c2d8b0026d66 100644 (file)
@@ -25,7 +25,7 @@
  * Code limitations:
  * The workarea must have size multiple of 4 bytes, since R/W
  * operations are all at 32 bits.
- * The workarea must be big enough to contain rp, wp and data, thus the minumum
+ * The workarea must be big enough to contain rp, wp and data, thus the minimum
  * workarea size is: min_wa_size = sizeof(rp, wp, data) = 4 + 4 + sizeof(data).
  *  - for 0x450 devices: sizeof(data) = 32 bytes, thus min_wa_size = 40 bytes.
  *  - for 0x480 devices: sizeof(data) = 16 bytes, thus min_wa_size = 24 bytes.
@@ -78,7 +78,7 @@ wait_fifo:
        str             r7, [r5, #STM32_FLASH_CR_OFFSET]
 
        mov             r8, #4
-       udiv    r8, r4, r8                      /* number of words is size of write word devided by 4*/
+       udiv    r8, r4, r8                      /* number of words is size of write word divided by 4*/
 write_flash:
        dsb
        ldr             r7, [r6], #0x04         /* read one word from src, increment ptr */
index a163ee67438af21a198e5fc49df42d85abae205e..cd19013be174983b5fb166e3c6addae28e1684a3 100644 (file)
@@ -51,7 +51,7 @@ busy:
        tsteq   r4, #0x100                      /* write protection set */
        bne             exit
        add             r1, r1, #0x8                    /* next 8 bytes */
-       subs    r3, r3, #1                              /* decremment dword count */
+       subs    r3, r3, #1                              /* decrement dword count */
        bne             write
 exit:
        b               exit
index 4daac7731f9913a43fdbeff1d502c1764fb9ed3d..279b17503636f7a3abc3aadc9dfeef1996910d32 100644 (file)
@@ -48,7 +48,7 @@ busy:
        strh    r5, [r4, #0]
        tst             r3, #0x12
        bne             exit
-       subs    r2, r2, #1                      /* decremment word count */
+       subs    r2, r2, #1                      /* decrement word count */
        bne     write
 exit:
        bkpt    #0
index 9d17e769571c530055b5b245a4dcf530714df07d..3470d848bff219fd79a102ed1b8d7c503378b5e9 100755 (executable)
@@ -125,7 +125,7 @@ if __name__ == "__main__":
         show(ocd.send("capture { echo \"echo says hi!\" }")[:-1])
         show(ocd.send("capture \"halt\"")[:-1])
 
-        # Read the first few words at the RAM region (put starting adress of RAM
+        # Read the first few words at the RAM region (put starting address of RAM
         # region into 'addr')
         addr = 0x10000000