Zigbee Protocol Controller 1.6.0
Main Function for Contiki

Modules

 Unify Component Fixture Set Up and Tear Down
 
 Signal handler for Unify Main
 
 Unify External Event Demultiplexer
 

Functions

bool uic_main_loop (void)
 

Detailed Description

This component contains the a "main" function for using Contiki.

It is a supporting component, that initializes the Contiki OS and provides the execution loop for the Contiki scheduling mechanism.

It supports initializing other components through setup fixture functions, see uic_fixt_setup_t. These functions are either added to the uic_fixt_setup_steps array, if the component is part of the Unify library, or supplied the Main Function for Contiki function, if it resides outside the Unify library

If a component is implemented with a Contiki process, that process shall be started in the component setup fixture using process_start

In addition, functions waking up the main process based on events on sockets are described in Unify External Event Demultiplexer

Function Documentation

◆ uic_main_loop()

bool uic_main_loop ( void  )

Run the main process loop.

Loop until there are no more running contiki processes.

In the loop

  • call contiki process_run(),
  • check for termination,
  • ask the "external event handling component" if there are any external events and send them to the right contiki poll handler,
  • poll contiki etimer.