mirror of
https://github.com/schoebel/mars
synced 2025-02-27 10:00:52 +00:00
infra: hide some brick internals
This commit is contained in:
parent
5034febb19
commit
34e208a60b
@ -509,6 +509,8 @@ extern inline struct BRITYPE##_##OBJTYPE##_aspect *BRITYPE##_##OBJTYPE##_get_asp
|
||||
|
||||
// some general helpers
|
||||
|
||||
#ifdef _STRATEGY // call this only from the strategy implementation
|
||||
|
||||
/* Generic interface to simple brick status changes.
|
||||
*/
|
||||
extern void set_button(struct generic_switch *sw, bool val, bool force);
|
||||
@ -519,6 +521,8 @@ extern void set_led_off(struct generic_switch *sw, bool val);
|
||||
*/
|
||||
extern void set_button_wait(struct generic_brick *brick, bool val, bool force, int timeout);
|
||||
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// thread automation (avoid code duplication)
|
||||
|
Loading…
Reference in New Issue
Block a user