Reindent all source files
[fw/stlink] / flashloaders / stm32lx.s
index 6e8ccb0895c50ffb56f7a9a4bd2860234c2fe864..799d1345cc3fbff8a044b2468f399dff7e160add 100644 (file)
 
 
 // Build : arm-eabi-gcc -c stm32lx.S
-       .text
-       .syntax unified
-       .cpu cortex-m3
-       .thumb
-       .thumb_func
-       .global write
+    .text
+    .syntax unified
+    .cpu cortex-m3
+    .thumb
+    .thumb_func
+    .global write
 
 /*
-       r0 - destination address
-       r1 - source address
-       r2 - count
+    r0 - destination address
+    r1 - source address
+    r2 - count
 */
 
-       // Set 0 to r3
-       movs    r3, #0
-       // Go to compare
-       b.n test_done
+    // Set 0 to r3
+    movs    r3, #0
+    // Go to compare
+    b.n test_done
 
 write_word:
-       // Load one word from address in r0, increment by 4
-       ldr.w   ip, [r1], #4
-       // Store the word to address in r1, increment by 4
-       str.w   ip, [r0], #4
-       // Increment r3
-       adds    r3, #1
+    // Load one word from address in r0, increment by 4
+    ldr.w    ip, [r1], #4
+    // Store the word to address in r1, increment by 4
+    str.w    ip, [r0], #4
+    // Increment r3
+    adds    r3, #1
 
 test_done:
-       // Compare r3 and r2
-       cmp     r3, r2
-       // Loop if not zero
-       bcc.n   write_word
-
-       // Set breakpoint to exit
-       bkpt    #0x00
+    // Compare r3 and r2
+    cmp     r3, r2
+    // Loop if not zero
+    bcc.n    write_word
 
+    // Set breakpoint to exit
+    bkpt    #0x00