~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/unix/uirs232user.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050201113026-6gy97mcqlg2ykg4z
Tags: upstream-1.16
Import upstream version 1.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * uirs232user.c
 
3
 *
 
4
 * Written by
 
5
 *  Andreas Boose <viceteam@t-online.de>
 
6
 *  Andr� Fachat <fachat@physik.tu-chemnitz.de>
 
7
 *
 
8
 * This file is part of VICE, the Versatile Commodore Emulator.
 
9
 * See README for copyright notice.
 
10
 *
 
11
 *  This program is free software; you can redistribute it and/or modify
 
12
 *  it under the terms of the GNU General Public License as published by
 
13
 *  the Free Software Foundation; either version 2 of the License, or
 
14
 *  (at your option) any later version.
 
15
 *
 
16
 *  This program is distributed in the hope that it will be useful,
 
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 *  GNU General Public License for more details.
 
20
 *
 
21
 *  You should have received a copy of the GNU General Public License
 
22
 *  along with this program; if not, write to the Free Software
 
23
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
24
 *  02111-1307  USA.
 
25
 *
 
26
 */
 
27
 
 
28
#include "vice.h"
 
29
 
 
30
#include <stdio.h>
 
31
 
 
32
#include "uimenu.h"
 
33
#include "uirs232user.h"
 
34
 
 
35
 
 
36
UI_MENU_DEFINE_RADIO(RsUserDev)
 
37
 
 
38
ui_menu_entry_t rs232user_device_submenu[] = {
 
39
    { N_("*Serial 1"),
 
40
      (ui_callback_t)radio_RsUserDev, (ui_callback_data_t)0, NULL },
 
41
    { N_("*Serial 2"),
 
42
      (ui_callback_t)radio_RsUserDev, (ui_callback_data_t)1, NULL },
 
43
    { N_("*Dump to file"),
 
44
      (ui_callback_t)radio_RsUserDev, (ui_callback_data_t)2, NULL },
 
45
    { N_("*Exec process"),
 
46
      (ui_callback_t)radio_RsUserDev, (ui_callback_data_t)3, NULL },
 
47
    { NULL }
 
48
};
 
49
 
 
50
UI_MENU_DEFINE_RADIO(RsUserBaud)
 
51
 
 
52
ui_menu_entry_t rs232user_baudrate_submenu[] = {
 
53
    { N_("*300 baud"),
 
54
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)300, NULL },
 
55
    { N_("*600 baud"),
 
56
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)600, NULL },
 
57
    { N_("*1200 baud"),
 
58
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)1200, NULL },
 
59
    { N_("*2400 baud"),
 
60
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)2400, NULL },
 
61
    { N_("*4800 baud"),
 
62
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)4800, NULL },
 
63
    { N_("*9600 baud"),
 
64
      (ui_callback_t)radio_RsUserBaud, (ui_callback_data_t)9600, NULL },
 
65
    { NULL }
 
66
};
 
67