int /**********************************************************/ board_init (void) /**********************************************************/ { /* We have RAM, disable cache */ dcache_disable(); icache_disable(); led_code (0xf, YELLOW); /* arch number of HHP Cradle */ gd->bd->bi_arch_number = MACH_TYPE_HHP_CRADLE; /* adress of boot parameters */ gd->bd->bi_boot_params = 0xa0000100; /* Init SIOs to enable SCC2 */ udelay (100000); /* delay makes it look neat */ init_sio (0, CRADLE_SIO1_PHYS); udelay (100000); init_sio (1, CRADLE_SIO2_PHYS); udelay (100000); init_sio (2, CRADLE_SIO3_PHYS); udelay (100000); set_led (3, GREEN); return 1; }
void init_state_init(void *arg) { sw_timer_init(); /* Set the node information base */ config_node_ib(); /* Initialize the TAL layer */ if (tal_init() != MAC_SUCCESS) { /* something went wrong during initialization */ app_alert(); } app_timers_init(); /* Initilaize sio rx state */ init_sio(); /* select the configurtion mode */ configuration_mode_selection(); #if (TAL_TYPE == AT86RF233) && (ANTENNA_DIVERSITY == 1) /* In order to demonstrate RPC the antenna diversity is disabled. */ tal_ant_div_config(ANT_DIVERSITY_DISABLE, ANT_CTRL_1); /* Enable A1/X2 */ #endif /* Keep compiler happy */ arg = arg; }