You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: It is just a one word change, makes it possible to use `Board::instanceof()` to get a `constexpr auto& obj`. It works perfectly as long as you don't try using the reference before `Board::init()`.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,18 @@ Historical releases that predate this file remain available in Git tags such as
12
12
13
13
- Redesign fault handling, protections, and Board bootstrap around explicit fault policies
14
14
This PR changes the public integration contract for applications built on ST-LIB.
15
-
15
+
16
16
Breaking changes:
17
-
17
+
18
18
-`Board` now takes the fault policy type as its first template parameter.
19
19
- The global `FAULT` runtime is owned exclusively by `FaultController`.
20
20
- User state machines are now nested under the global `OPERATIONAL` state through `FaultPolicy` or `FaultPolicyNoMachine`.
21
21
- Protections are now compile-time `Board` request objects evaluated through `Board::ProtectionEngine`; the previous `ProtectionManager` and boundary split is no longer the active model.
22
22
- Runtime reporting is unified under `PANIC(...)`, `FAULT(...)`, `WARNING(...)`, and `INFO(...)`.
23
23
- The real bootstrap path is `Board::init()`. Legacy `STLIB::start()`, `STLIB::update()`, `STLIB_LOW::start()`, and `STLIB_HIGH::start()` must not be used as the integration path.
24
-
24
+
25
25
Migration notes:
26
-
26
+
27
27
- Declare the board as `Board<YourFaultPolicy, ...>`.
28
28
- Use `FaultPolicy<app_machine, on_fault_enter>` when you want an operational state machine nested under the global runtime.
29
29
- Use `FaultPolicyNoMachine<on_fault_enter>` when you only need a fault-entry callback.
@@ -39,7 +39,7 @@ Historical releases that predate this file remain available in Git tags such as
39
39
timerwrapper:
40
40
- Add `set_callback(void (*callback)(void*), void* callback_data)` to set the callback and its data instead of needing to call `configurexxbit()` and set the period.
41
41
-`set_limit_value(uint32_t arr)` to set the arr, this will likely be changed to use a `uint32_t` type only when using a 32 bit timer, for now it is just an alias to `instance->tim->ARR = arr;`. Was not added in this pr but also wasn't mentioned before.
42
-
42
+
43
43
spi:
44
44
- Add `transceive` with ptr + data explicitly instead of using a span since it's sometimes a pain in the ass to use.
0 commit comments