[Tinyos-host-mote-wg] [Tinyos-2.0wg] Tasks, enums

Cory Sharp cory at moteiv.com
Wed Oct 5 08:09:05 PDT 2005


Has anyone seen the problem of forward declaring a TinyOS 2.x task
causing subsequent enum declarations to cause nesC to die with the
error "provides/uses must be followed by a command, event or
interface"?

That is, this code in a module implementation block reports
"provides/uses must be followed by a command, event or interface":

    task void mytask();
    enum { MY_CONSTANT = 0 };

But just swap those lines and it compiles cleanly

    enum { MY_CONSTANT = 0 };
    task void mytask();

Thoughts?

Cory

_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list