aboutsummaryrefslogtreecommitdiff
path: root/main/i2c.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:54:02 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:54:02 +0200
commitbfa85b6c313a725afe98bbe6ccb60978de3187a9 (patch)
tree313ed5e41bbad9438b1740705ee7d220d35c6c44 /main/i2c.c
parentf4e7a23309797c56baf6be3a9e99e74596223474 (diff)
add cross-reference for overwritten pbdrv handlers in main controller software
Diffstat (limited to 'main/i2c.c')
-rw-r--r--main/i2c.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/i2c.c b/main/i2c.c
index 2503560..f366793 100644
--- a/main/i2c.c
+++ b/main/i2c.c
@@ -41,6 +41,17 @@ void bus_task() {
}
}
+/**
+ * \ingroup main_pb_override
+ * \anchor main_route_cmd_magic_res
+ *
+ * This function registers the I2C address of the puzzle module that replied to
+ * the \c MAGIC \c REQ command into a list of "known puzzle modules", which are
+ * then periodically updated during gameplay.
+ *
+ * \note Up to \ref CFG_PB_MOD_MAX puzzle modules can be registered
+ * simultaniously.
+ */
void pb_route_cmd_magic_res(pb_msg_t * msg) {
if (modules_size == CFG_PB_MOD_MAX) return;
modules[modules_size++] = msg->sender;