Commit 083197a
committed
Update UART remapping usage in document
The interface of UART alternate function remapping has been updated.
This commit update the document to reflect the new API.
Old interface:
- Serial::new(UART, pins, MAPR, /* omit */);
New interface (2 ways):
- Serial::new(UART.remap(MAPR), pins, /* omit */);
- UART.remap(MAPR).serial(/* omit */);
Signed-off-by: justapig9020 <justapig9020@gmail.com>1 parent c561e9e commit 083197a
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
522 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
523 | 532 | | |
524 | 533 | | |
525 | 534 | | |
| |||
0 commit comments