src/occ_405/rtls/test/main.c
// Function Specification
//
// Name: dump_global_state
//
// Description:
// Utility to dump flags & data for all tasks in G_task_table, along with
// the current values of G_run_mask and CURRENT_TICK.
//
// End Function Specification
Function Specification
Name: dump_global_state

Utility to dump flags & data for all tasks in G_task_table, along with
the current values of G_run_mask and CURRENT_TICK.

End Function Specification
Function Specification Name : dump_global_state Utility to dump flags & data for all tasks in G_task_table along with the current values of G_run_mask and CURRENT_TICK . End Function Specification
void dump_global_state(void)
{
    int i;
    printf("\n  G_run_mask = [0x%04x] ; CURRENT_TICK = [0x%04x]\n", G_run_mask, CURRENT_TICK);
    for( i = 0; i < TASK_END; i++ ) {
        printf("  TASK_ID_%02d : flags [0x%08x] ; data_p [0x%p] ; data [0x%08x]\n", \
                i, G_task_table[i].flags, G_task_table[i].data_ptr, *((uint32_t *)(G_task_table[i].data_ptr)) );
    }
    printf("\n");
}
void dump_global_state ( void ) { int i ; printf ( " \n \n " , G_run_mask , CURRENT_TICK ) ; for ( i = 0 ; i < TASK_END ; i ++ ) { printf ( " \n " , i , G_task_table [ i ] . flags , G_task_table [ i ] . data_ptr , * ( ( uint32_t * ) ( G_task_table [ i ] . data_ptr ) ) ) ; } printf ( " \n " ) ; }
Function Specification
Name: dump_global_state
Function Specification Name : dump_global_state