145
|
1 /* Definitions of subroutines used for reading MCU data on TI MSP430 processors.
|
|
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
|
|
3 Contributed by Jozef Lawrynowicz <jozef.l@mittosystems.com>.
|
|
4
|
|
5 This file is part of GCC.
|
|
6
|
|
7 GCC is free software; you can redistribute it and/or modify
|
|
8 it under the terms of the GNU General Public License as published by
|
|
9 the Free Software Foundation; either version 3, or (at your option)
|
|
10 any later version.
|
|
11
|
|
12 GCC is distributed in the hope that it will be useful,
|
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 GNU General Public License for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with GCC; see the file COPYING3. If not see
|
|
19 <http://www.gnu.org/licenses/>. */
|
|
20
|
|
21 struct t_msp430_mcu_data
|
|
22 {
|
|
23 const char * name;
|
|
24 unsigned int revision; /* 0=> MSP430, 1=>MSP430X, 2=> MSP430Xv2. */
|
|
25 unsigned int hwmpy; /* 0=>none, 1=>16-bit, 2=>16-bit w/sign extend. */
|
|
26 /* 4=>32-bit, 8=> 32-bit (5xx). */
|
|
27 };
|
|
28
|
|
29 extern struct t_msp430_mcu_data extracted_mcu_data;
|
|
30
|
|
31 void msp430_extract_mcu_data (const char * mcu_name);
|
|
32 int msp430_check_env_var_for_devices (char **local_devices_csv_loc);
|
|
33 char *msp430_dirname (char *path);
|