static AlarmTask * getInstance()
if(_instance == NULL)
_instance = new AlarmTask();
static AlarmTask* _instance;
// A call to static member of class from init function
__task void init (void)
// Do all the power up intialization
_usb = new UsbSocket();
pdpTask = new PdpTask(_usb);
// Get the clock driver constructed.
How can we call class member getInstance() when AlarmTask class hasn't been instantiated yet?