From 15d72cc631569b9a3fd6349cad21a665eb2733cf Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 7 Nov 2015 18:18:47 +0100 Subject: [PATCH] add some comments on the conf_func members --- firmware/src_simtrace/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/src_simtrace/main.c b/firmware/src_simtrace/main.c index afb82f3e..a1beb892 100644 --- a/firmware/src_simtrace/main.c +++ b/firmware/src_simtrace/main.c @@ -9,9 +9,13 @@ * Internal variables *------------------------------------------------------------------------------*/ typedef struct { + /* static initialization, called whether or not the usb config is active */ void (* configure) ( void ); + /* initialization function after the config was selected */ void (* init) ( void ); + /* de-initialization before selecting new config */ void (* exit) ( void ); + /* main loop content for given configuration */ void (* run) ( void ); } conf_func;