Previous 15994 Revisions Next

r6782 Sunday 27th December, 2009 at 07:56:54 UTC by Miodrag Milanović
[NC200] Boot fix
[src/mess/drivers]nc.c

src/mess/drivers/nc.c
r6781r6782
13351335
13361336    nc_common_init_machine(machine);
13371337
1338   mc146818_init(machine, MC146818_STANDARD);
1339
13401338   nc200_uart_interrupt_irq = 0;
13411339
13421340   nc_common_open_stream_for_reading(machine);
r6781r6782
13691367    nc_type = NC_TYPE_200;
13701368
13711369   add_exit_callback(machine, nc200_machine_stop);
1370   
1371   /* keyboard timer */
1372   nc_keyboard_timer = timer_alloc(machine, nc_keyboard_timer_callback, NULL);
1373   timer_adjust_oneshot(nc_keyboard_timer, ATTOTIME_IN_MSEC(10), 0);
1374
1375   /* dummy timer */
1376   timer_pulse(machine, ATTOTIME_IN_HZ(50), NULL, 0, dummy_timer_callback);
1377
1378   /* serial timer */
1379   nc_serial_timer = timer_alloc(machine, nc_serial_timer_callback, NULL);   
1380
1381   mc146818_init(machine, MC146818_STANDARD);   
13721382}
13731383
13741384/*
r6781r6782
16421652   switch ( state )
16431653   {
16441654      case DEVINFO_FCT_IMAGE_LOAD:              info->f = (genf *) DEVICE_IMAGE_LOAD_NAME( nc_serial );    break;
1645      case DEVINFO_STR_NAME:                      strcpy(info->s, "BW2 serial port");                       break;
1655      case DEVINFO_STR_NAME:                      strcpy(info->s, "NC serial port");                       break;
16461656      case DEVINFO_STR_IMAGE_FILE_EXTENSIONS:       strcpy(info->s, "txt");                                         break;
16471657      case DEVINFO_INT_IMAGE_READABLE:            info->i = 1;                                           break;
16481658      case DEVINFO_INT_IMAGE_WRITEABLE:         info->i = 0;                                           break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team