Commit bd786b5
committed
Restructure serialnumber, remove console, add RTC
Move and rename serial number API into lib-gd32 (hal_serialnumber.h/cpp -> serialnumber.h/cpp), remove the hal:: namespace and make kSnSize a constexpr. Update callers (rdm_device_base) to include the new header and call SerialNumber().
Remove the console subsystem implementation and headers (console/i2c, console/null, console/uart0 and console include files) from lib-hal.
Add a new GD32 RTC driver implementation (lib-hal/rtc/gd32/hwclockrtc.cpp) with RTC configuration, get/set/alarm functions and platform-specific handling for GD32F4/H7.
Apply style/formatting and small API cleanups in pixel headers (pixel.h, pixeltype.h) and minor include cleanup in lib-hal/include/gd32/hal.h. Update copyright years where applicable.1 parent 246aa5b commit bd786b5
14 files changed
Lines changed: 349 additions & 769 deletions
File tree
- lib-gd32
- include
- src
- lib-hal
- console
- i2c
- null
- uart0
- include
- console
- gd32
- rtc/gd32
- lib-pixel/include
- lib-rdm/include
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