Replies: 1 comment 4 replies
-
Hi @AronRubin! I'll try to answer your questions the best I can. 😄
I think I need more detail here, which global are you talking about?
cib excels at compile-time initialization. It can't make any decisions at runtime. The callback and flow services don't support any sort of control-flow. However, there are some options:
|
Beta Was this translation helpful? Give feedback.
-
I really like what you have done with this framework but flow control is unclear to me. I don't see returns being passed in the code. In the talk, you had a global; is that the intent? How does that interact with constexpr? It is also unclear if there was a best practice to handle a more general initialization failure.
For context, I have firmware that starts the appropriate device code based on a detection step. I have for example a number of devices with either the VL53L0X or the VL53L1X laser ranger depending on when I was sourcing the parts. My current firmware initialization checks which devices actually respond on the bus and choose which to use. Likewise, if an OLED display shows up on I2C it displays debug information.
Beta Was this translation helpful? Give feedback.
All reactions