Commit aacbd86
committed
Move serialnumber; remove lib-hal console
Consolidate serial number code into lib-gd32 and remove legacy lib-hal console implementations.
- Renamed/moved hal_serialnumber.{h,cpp} -> lib-gd32/include/serialnumber.h and lib-gd32/src/serialnumber.cpp; updated header guard, file comments, include path, constexpr kSnSize, and removed the hal namespace. Copyright years updated.
- Updated board headers (bw_opidmx4.h, dmx4.h) to check CONFIG_CLIB_USE_NULL instead of CONSOLE_NULL (macro name change).
- Deleted multiple lib-hal console sources and headers (console.h, console_i2c.h, console_null.h, console_uart0.h and implementations under lib-hal/console/{i2c,null,uart0}), removing the bundled console backends.
- Removed an unnecessary #include <cstdint> from lib-hal/include/gd32/hal.h.
This is a cleanup/consolidation change; note the macro rename (CONSOLE_NULL -> CONFIG_CLIB_USE_NULL) and relocation of serialnumber files may require updating include paths or build configuration.1 parent 79a851b commit aacbd86
12 files changed
Lines changed: 11 additions & 648 deletions
File tree
- lib-gd32
- include
- board
- src
- lib-hal
- console
- i2c
- null
- uart0
- include
- console
- gd32
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
34 | 31 | | |
35 | | - | |
36 | 32 | | |
37 | | - | |
| 33 | + | |
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
0 commit comments