Allow to optionally (triggered with SELFSTART_PROCESS) self start the application.
This commit is contained in:
parent
155a27ff59
commit
0a8f384a40
13 changed files with 64 additions and 12 deletions
|
@ -29,7 +29,7 @@
|
|||
*
|
||||
* This an example program for the Contiki desktop OS
|
||||
*
|
||||
* $Id: calc.c,v 1.3 2007/11/17 22:50:49 oliverschmidt Exp $
|
||||
* $Id: calc.c,v 1.4 2008/02/07 16:28:27 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -82,6 +82,10 @@ static struct ctk_button calcbutton =
|
|||
|
||||
PROCESS(calc_process, "Calculator");
|
||||
|
||||
#if SELFSTART_PROCESS
|
||||
AUTOSTART_PROCESSES(&calc_process);
|
||||
#endif /* SELFSTART_PROCESS */
|
||||
|
||||
static unsigned long operand1, operand2;
|
||||
static unsigned char op;
|
||||
#define OP_ADD 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue