src/mess/drivers/x1.c
| r10287 | r10288 | |
| 2336 | 2336 | for(i=0;i<0x10;i++) |
| 2337 | 2337 | palette_set_color_rgb(machine, i, pal1bit(i >> 1), pal1bit(i >> 2), pal1bit(i >> 0)); |
| 2338 | 2338 | |
| 2339 | | timer_adjust_periodic(state->rtc_timer, attotime_zero, 0, ATTOTIME_IN_SEC(1)); |
| 2339 | timer_adjust_periodic(state->rtc_timer, attotime::zero, 0, attotime::from_seconds(1)); |
| 2340 | 2340 | } |
| 2341 | 2341 | |
| 2342 | 2342 | static MACHINE_START( x1 ) |
| 2343 | 2343 | { |
| 2344 | 2344 | x1_state *state = machine->driver_data<x1_state>(); |
| 2345 | | timer_pulse(machine, ATTOTIME_IN_HZ(240), NULL, 0, keyboard_callback); |
| 2346 | | timer_pulse(machine, ATTOTIME_IN_HZ(16), NULL, 0, cmt_wind_timer); |
| 2345 | timer_pulse(machine, attotime::from_hz(240), NULL, 0, keyboard_callback); |
| 2346 | timer_pulse(machine, attotime::from_hz(16), NULL, 0, cmt_wind_timer); |
| 2347 | 2347 | |
| 2348 | 2348 | /* set up RTC */ |
| 2349 | 2349 | { |