Skip to content

Commit 2cec9f6

Browse files
committed
Add note about volatile
1 parent d710b4d commit 2cec9f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ from A0 to A15, to input mode:
156156
* (volatile uint32_t *) (0x40020000 + 0) = 0; // Set A0-A15 to input mode
157157
```
158158

159-
By setting individual bits, we can selectively set specific pins to a desired
159+
Note the volatile specifier. The meaning of it will be covered later. By
160+
setting individual bits, we can selectively set specific pins to a desired
160161
mode. For example, this snippet sets pin A3 to output mode:
161162

162163
```c

0 commit comments

Comments
 (0)