Commit 310c2bd
DragonOS Dev
fix(tty): restore B3500000/B4000000 to baud_rate() and tidy constants
C1: B3500000 (0x0000100e) and B4000000 (0x0000100f) were
accidentally dropped from ControlMode::baud_rate() during the
v1→v2 dedup refactor. Restore them — both speeds are defined in
the bitflags and covered by the CBAUD mask, so baud_rate() must
handle them or the constants should be removed (the former is correct).
L1: Move CIBAUD_SHIFT from between bitflags! and impl ControlMode
to the constant area near NCC / INIT_C_LINE_ABI.
L2: Merge duplicate header comment block in test_tty_termios.c
into a single clean file-level doc.1 parent 39f9060 commit 310c2bd
2 files changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
| |||
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
| 401 | + | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
420 | 423 | | |
421 | 424 | | |
422 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 1 | | |
9 | 2 | | |
10 | 3 | | |
11 | 4 | | |
12 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
0 commit comments