Commit 9561846
committed
Consolidate software timers into superloop
Remove the deprecated hal wrapper and centralize software-timer definitions in lib-superloop. Updates:
- common/make/gd32/Includes.mk: adjust include path to point to lib-superloop/include/superloop.
- Deleted lib-hal/include/softwaretimers.h (removed duplicate wrapper that selected between FreeRTOS and superloop implementations).
- lib-superloop/include/superloop/softwaretimers.h: add kSoftwareTimersMax and kTimerIdNone definitions and declare API.
- lib-superloop/src/softwaretimers.cpp: use kSoftwareTimersMax (instead of hal::kSoftwareTimersMax) for the timer pool and bounds check.
This consolidates timer constants and types into the superloop module and removes the redundant hal header to simplify include paths and reduce duplication.1 parent b5dd8e4 commit 9561846
4 files changed
Lines changed: 12 additions & 79 deletions
File tree
- common/make/gd32
- lib-hal/include
- lib-superloop
- include/superloop
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments