clang  19.0.0git
Functions | Variables
gen-msp430-def Namespace Reference

Functions

def csv2def (csv_path, def_path)
 

Variables

int DEVICE_COLUMN = 0
 
int MULTIPLIER_COLUMN = 3
 
string MULTIPLIER_SW = "0"
 
tuple MULTIPLIER_HW_16 = ("1", "2")
 
tuple MULTIPLIER_HW_32 = ("4", "8")
 
string PREFIX
 
string SUFFIX
 

Function Documentation

◆ csv2def()

def gen-msp430-def.csv2def (   csv_path,
  def_path 
)
Parse the devices.csv file at the given path, generate the definitions and
write them to the given path.

:param csv_path: Path to the devices.csv to parse
:type csv_path: str
:param def_path: Path to the output file to write the definitions to
"type def_path: str

Definition at line 61 of file gen-msp430-def.py.

Variable Documentation

◆ DEVICE_COLUMN

int gen-msp430-def.DEVICE_COLUMN = 0

Definition at line 19 of file gen-msp430-def.py.

◆ MULTIPLIER_COLUMN

int gen-msp430-def.MULTIPLIER_COLUMN = 3

Definition at line 20 of file gen-msp430-def.py.

◆ MULTIPLIER_HW_16

tuple gen-msp430-def.MULTIPLIER_HW_16 = ("1", "2")

Definition at line 23 of file gen-msp430-def.py.

◆ MULTIPLIER_HW_32

tuple gen-msp430-def.MULTIPLIER_HW_32 = ("4", "8")

Definition at line 24 of file gen-msp430-def.py.

◆ MULTIPLIER_SW

string gen-msp430-def.MULTIPLIER_SW = "0"

Definition at line 22 of file gen-msp430-def.py.

◆ PREFIX

string gen-msp430-def.PREFIX
Initial value:
1 = """//===--- MSP430Target.def - MSP430 Feature/Processor Database----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the MSP430 devices and their features.
10 //
11 // Generated from TI's devices.csv in version {} using the script in
12 // Target/MSP430/gen-msp430-def.py - use this tool rather than adding
13 // new MCUs by hand.
14 //
15 //===----------------------------------------------------------------------===//
16 
17 #ifndef MSP430_MCU_FEAT
18 #define MSP430_MCU_FEAT(NAME, HWMULT) MSP430_MCU(NAME)
19 #endif
20 
21 #ifndef MSP430_MCU
22 #define MSP430_MCU(NAME)
23 #endif
24 
25 """

Definition at line 26 of file gen-msp430-def.py.

◆ SUFFIX

string gen-msp430-def.SUFFIX
Initial value:
1 = """
2 // Generic MCUs
3 MSP430_MCU("msp430i2xxgeneric")
4 
5 #undef MSP430_MCU
6 #undef MSP430_MCU_FEAT
7 """

Definition at line 52 of file gen-msp430-def.py.