staticstructframepars_all_tsFrameParsAll__attribute__((aligned(PAGE_SIZE)));///< Sensor Parameters, currently 8 pages all and 2048 pages some, static struct
unsignedlongframeParsInitialized;/// set to 0 at startup, 1 after initialization that is triggered by setParsAtomic()
#define thisFrameNumber GLOBALPARS(G_THIS_FRAME) // Current frame number (may lag from the hardware)
...
...
@@ -432,6 +257,7 @@ int initMultiPars(void)
}
}
}
// remark: the line below is called from initFramePars, consider removing it
for(i=0;i<P_SENSOR_NUMREGS;i++)funcs2call[P_SENSOR_REGS+i]=ONCHANGE_SENSORREGS;/// by default each "manual" write to any of 256 registers will trigger pgm_sensorreg function