src/mess/machine/pmd85.c
| r3824 | r3825 | |
| 856 | 856 | |
| 857 | 857 | serial_connection_init(&pmd85_cassette_serial_connection); |
| 858 | 858 | serial_connection_set_in_callback(&pmd85_cassette_serial_connection, pmd85_cassette_write); |
| 859 | | |
| 860 | | msm8251_connect(device_list_find_by_tag( machine->config->devicelist, MSM8251, "uart" ), &pmd85_cassette_serial_connection); |
| 861 | 859 | } |
| 862 | 860 | |
| 863 | 861 | DRIVER_INIT ( pmd851 ) |
| r3824 | r3825 | |
| 901 | 899 | pmd85_common_driver_init(machine); |
| 902 | 900 | } |
| 903 | 901 | |
| 904 | | static TIMER_CALLBACK( setup_pit8253_gates ) { |
| 902 | static TIMER_CALLBACK( setup_machine_state ) { |
| 905 | 903 | device_config *pit8253 = (device_config*)device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" ); |
| 906 | 904 | |
| 907 | 905 | pit8253_gate_w(pit8253, 0, 1); |
| 908 | 906 | pit8253_gate_w(pit8253, 1, 1); |
| 909 | 907 | pit8253_gate_w(pit8253, 2, 1); |
| 908 | |
| 909 | msm8251_connect(device_list_find_by_tag( machine->config->devicelist, MSM8251, "uart" ), &pmd85_cassette_serial_connection); |
| 910 | 910 | } |
| 911 | 911 | |
| 912 | 912 | |
| r3824 | r3825 | |
| 931 | 931 | pmd85_startup_mem_map = 1; |
| 932 | 932 | pmd85_update_memory(machine); |
| 933 | 933 | |
| 934 | | timer_set(machine, attotime_zero, NULL, 0, setup_pit8253_gates ); |
| 934 | timer_set(machine, attotime_zero, NULL, 0, setup_machine_state ); |
| 935 | 935 | |
| 936 | 936 | memory_set_direct_update_handler(cpu_get_address_space( machine->cpu[0], ADDRESS_SPACE_PROGRAM), pmd85_opbaseoverride); |
| 937 | 937 | } |