Commit beeb5abe authored by Aaron Erhardt's avatar Aaron Erhardt
Browse files

Fix large code comments


Signed-off-by: default avatarAaron Erhardt <aaron.erhardt@t-online.de>
parent d2524393
Pipeline #546 passed with stage
in 1 minute and 42 seconds
......@@ -278,17 +278,18 @@ InitOutputPortB
; Enable I/O block for PortB
ldr r3, = RCC ; Load start address of RCC registers into r3
ldr r0, [r3, #AHB1ENR] ; Load current register values
orr r0, r0, #IOPBEN ; Use logical OR to enable the bit for GPIOBEN and leave the rest unchanged
str r0, [r3, #AHB1ENR] ; Store value into the register to enable I/O on PortB
orr r0, r0, #GPIOBEN ; Enable bit for GPIOB, leave the rest unchanged
str r0, [r3, #AHB1ENR] ; Store value and enable I/O on PortB
; Configure PortB
ldr r3, = GPIOB ; Load start address of GPIOB registers into r3
ldr r0, = 0x00005555 ; Load values for configuring the MODER register, using 0x5 = 01_01 to set all pins as output
str r0, [r3, #MODER] ; Store value into the register to enable configuration
ldr r3, = GPIOB ; Load start address of GPIOB registers
ldr r0, = 0x00005555 ; Load values for configuring the MODER register
; using 0x5 = 01_01 to set all pins as output
str r0, [r3, #MODER] ; Store value to enable configuration
; Turn on LEDs
ldr r0, #3 ; Set first to bits
str r0, [r3, #ODR] ; Load value into ODR register to enable the first to outputs (LEDs)
str r0, [r3, #ODR] ; Store value to enable the first two outputs
pop {r0, r3, r4, lr}
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment