clang 24.0.0git
gen-msp430-def Namespace Reference

Functions

 csv2def (str csv_path, str def_path)

Variables

int DEVICE_COLUMN = 0
int CPU_COLUMN = 1
int MULTIPLIER_COLUMN = 3
dict CPUS = {"0": "msp430", "1": "msp430x", "2": "msp430xv2"}
dict MULTIPLIERS
str PREFIX
str SUFFIX

Function Documentation

◆ csv2def()

gen-msp430-def.csv2def ( str csv_path,
str 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 103 of file gen-msp430-def.py.

References csv2def().

Referenced by csv2def().

Variable Documentation

◆ CPU_COLUMN

int gen-msp430-def.CPU_COLUMN = 1

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

◆ CPUS

dict gen-msp430-def.CPUS = {"0": "msp430", "1": "msp430x", "2": "msp430xv2"}

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

◆ DEVICE_COLUMN

int gen-msp430-def.DEVICE_COLUMN = 0

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

◆ MULTIPLIER_COLUMN

int gen-msp430-def.MULTIPLIER_COLUMN = 3

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

◆ MULTIPLIERS

dict gen-msp430-def.MULTIPLIERS
Initial value:
1= {
2 "0": "none",
3 "1": "16bit",
4 "2": "16bit",
5 "4": "32bit",
6 "8": "f5series",
7}

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

◆ PREFIX

str gen-msp430-def.PREFIX

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

◆ SUFFIX

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

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