20#include "TeensyThreads.h"
26using bitmapVal_t =
unsigned short;
29const size_t maxModules =
sizeof(bitmapVal_t) * 8;
31extern bitmapVal_t s_id;
32extern Module_t *allModules[maxModules];
66 const bitmapVal_t count = 0;
67 const Module_t *dependents[maxModules] = {0};
78 static const int classID = 0;
79 virtual int getClassID()
const {
return classID; }
81 Module_t() : id(1 << s_id++) { allModules[s_id - 1] =
this; };
82 template <
typename... T>
83 Module_t(T *...mods) : count(
sizeof...(mods)), dependents{
static_cast<Module_t *
>(mods)...}, id(1 << s_id++) { allModules[s_id - 1] =
this; };
Special logging functionality.
const char * LOG_TAG
Type definition of logging tags This typedef is necessary to allow for easier manipulation of code by...
Module_t should be used for major components of a framework, it is used to isolate,...