Go to the source code of this file.
◆ uic_main()
Run Unify/Contiki Main loop.
This function will initialize Contiki OS and loop until the program exits. It has following stages: 1) Initialize Contiki OS (Timers, Process list etc.) 2) Call all setup fixtures (loop over fixt_setup) 3) Run Contiki main loop 4) Upon shutdown call all shutdown fixtures (loop over fixt_shutdown)
- Parameters
-
fixt_setup | Array of setup fixtures to be called during init |
fixt_shutdown | Array of shutdown fixtures to be called on shutdown |
argc | command line arguments count |
argv | command line arguments |
version | Version string to print on "--version" argument |
- Returns
- int 0 on success, other for error