Skip to content

Commit 34ade6d

Browse files
committed
Bit ops
1 parent 09712d9 commit 34ade6d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,6 @@ register:
214214
PERIPHERAL->REGISTER |= VALUE << X;
215215
```
216216

217-
Now, it should be clear to you, dear reader, the meaning of these two lines,
218-
which set bits 6-7 of the GPIOA MODER register to the value of 1 (output).
219-
220-
```c
221-
* (volatile uint32_t *) (0x40020000 + 0) &= ~(3 << 6); // CLear bit range 6-7
222-
* (volatile uint32_t *) (0x40020000 + 0) |= 1 << 6; // Set bit range 6-7 to 1
223-
```
224-
225-
Some registers are not mapped to the MCU peripherals, but they are mapped to
226-
the ARM CPU configuration and control. For example, there is a "Reset at clock
227-
control" unit (RCC), described in section 6 of the datasheet. It describes
228-
registers that allow to set systems clock and other things.
229-
230217
## Human-readable peripherals programming
231218

232219
In the previous section we have learned that we can read and write peripheral

0 commit comments

Comments
 (0)