/Zephyr-Core-2.7.6/scripts/west_commands/zspdx/ |
D | cmakefileapi.py | 9 def __init__(self): argument 10 super(Codemodel, self).__init__() 12 self.paths_source = "" 13 self.paths_build = "" 14 self.configurations = [] 16 def __repr__(self): argument 17 return f"Codemodel: source {self.paths_source}, build {self.paths_build}" 22 def __init__(self): argument 23 super(Config, self).__init__() 25 self.name = "" [all …]
|
D | datatypes.py | 10 def __init__(self): argument 11 super(DocumentConfig, self).__init__() 14 self.name = "" 17 self.namespace = "" 21 self.docRefID = "" 27 def __init__(self, cfg): argument 28 super(Document, self).__init__() 31 self.cfg = cfg 34 self.pkgs = {} 38 self.relationships = [] [all …]
|
/Zephyr-Core-2.7.6/scripts/pylib/twister/ |
D | harness.py | 17 def __init__(self): argument 18 self.state = None 19 self.type = None 20 self.regex = [] 21 self.matches = OrderedDict() 22 self.ordered = True 23 self.repeat = 1 24 self.tests = {} 25 self.id = None 26 self.fail_on_fault = True [all …]
|
D | twisterlib.py | 88 def __init__(self, total=0): argument 89 self._done = Value('i', 0) 90 self._passed = Value('i', 0) 91 self._skipped_configs = Value('i', 0) 92 self._skipped_runtime = Value('i', 0) 93 self._skipped_cases = Value('i', 0) 94 self._error = Value('i', 0) 95 self._failed = Value('i', 0) 96 self._total = Value('i', total) 97 self._cases = Value('i', 0) [all …]
|
/Zephyr-Core-2.7.6/boards/xtensa/intel_adsp_cavs15/tools/lib/ |
D | stream_desc.py | 19 def __init__(self, drv, size): argument 20 self.drv = drv 21 self.size = size 24 self.page_count = math.ceil(self.size / plat_def.DMA_PAGE_SIZE) 25 logging.debug("Page Count: %d" % self.page_count) 27 self.alloc_size = self.page_count * plat_def.DMA_PAGE_SIZE 29 % (self.size, self.alloc_size)) 30 self.mem = self.drv.alloc_mem(self.alloc_size) 31 self.addr_p = self.mem.dma_addr_p 32 self.buf = cast(self.mem.dma_addr_v, [all …]
|
D | device.py | 17 def __init__(self): argument 18 self.__opened = False 20 self.drv = DiagDriver() 21 self.dev_info = None 23 self.hda_bar_mmap = None 24 self.dsp_bar_mmap = None 26 self.hda_gctl = None 27 self.hda_gcap = None 28 self.hda_ppctl = None 29 self.hda_spibe = None [all …]
|
D | loader.py | 21 def __init__(self, value=None): argument 22 self.value = None 23 self.boot_state = None 24 self.wait_state = None 25 self.moudle = None 26 self.error = None 29 self.set(value) 31 def set(self, value): argument 32 self.value = value 33 self.boot_state = self.value & plat_def.FW_STATUS_BOOT_STATE [all …]
|
D | driver.py | 31 def __init__(self, raw): argument 32 self.base_p = 0 33 self.base_v = 0 34 self.size = 0 35 (self.base_p, self.base_v, self.size) = struct.unpack('=QQL', raw) 37 def __str__(self): argument 41 % (self.base_p, self.base_v, self.size) 47 def __init__(self, size=0): argument 48 self.dma_addr_p = 0 49 self.dma_addr_v = 0 [all …]
|
/Zephyr-Core-2.7.6/boards/xtensa/intel_s1000_crb/support/ |
D | messenger.py | 34 def __init__(self): argument 39 self.tx_data = bytearray(64) 40 self.tx_bulk_data = bytearray(4096) 42 def init_tx_data(self): argument 46 for index in range(len(self.tx_data)): 47 self.tx_data[index] = 0 48 self.tx_index = 0 61 def print_cmd_message(self): argument 65 for index in range(0, self.tx_index, 4): 67 word = bitstruct.unpack_from('u32', self.tx_data, offset) [all …]
|
D | device.py | 26 def __init__(self): argument 36 self.name = config['general']['name'] 37 self.spi_device = config['spi']['device'] 38 self.spi_speed = config['spi']['max_speed'] 39 self.spi_mode = None 40 self.gpio_reset = config['gpio']['reset'] 41 self.gpio_wake = config['gpio']['wake'] 42 self.gpio_irq = config['gpio']['irq'] 43 self.spi = None 44 self.reset_pin = None [all …]
|
/Zephyr-Core-2.7.6/scripts/west_commands/runners/ |
D | pyocd.py | 20 def __init__(self, cfg, target, argument 31 self.pyocd_config = default 33 self.pyocd_config = None 36 self.target_args = ['-t', target] 37 self.pyocd = pyocd 38 self.flash_addr_args = ['-a', hex(flash_addr)] if flash_addr else [] 39 self.erase = erase 40 self.gdb_cmd = [cfg.gdb] if cfg.gdb is not None else None 41 self.gdb_port = gdb_port 42 self.telnet_port = telnet_port [all …]
|
D | openocd.py | 28 def __init__(self, cfg, pre_init=None, reset_halt_cmd=DEFAULT_OPENOCD_RESET_HALT_CMD, argument 41 self.openocd_config = config 44 if self.openocd_config is not None: 45 for i in self.openocd_config: 53 self.openocd_cmd = [cfg.openocd] + search_args 56 self.elf_name = Path(cfg.elf_file).as_posix() 57 self.pre_init = pre_init or [] 58 self.reset_halt_cmd = reset_halt_cmd 59 self.pre_load = pre_load or [] 60 self.load_cmd = load_cmd [all …]
|
D | canopen_program.py | 46 def __call__(self, parser, namespace, values, option_string=None): argument 47 setattr(namespace, self.dest, not option_string.startswith('--no-')) 51 def __init__(self, cfg, node_id, can_context=DEFAULT_CAN_CONTEXT, argument 61 self.bin_file = cfg.bin_file 62 self.confirm = confirm 63 self.confirm_only = confirm_only 64 self.timeout = timeout 65 self.downloader = CANopenProgramDownloader(logger=self.logger, 117 def do_run(self, command, **kwargs): argument 119 self.flash(**kwargs) [all …]
|
D | jlink.py | 30 def __call__(self, parser, args, ignored, option): argument 31 setattr(args, self.dest, not option.startswith('--no-')) 36 def __init__(self, cfg, device, did=None, argument 45 self.hex_name = cfg.hex_file 46 self.bin_name = cfg.bin_file 47 self.elf_name = cfg.elf_file 48 self.gdb_cmd = [cfg.gdb] if cfg.gdb else None 49 self.device = device 50 self.did = did # Debugger Identifier 51 self.commander = commander [all …]
|
D | intel_s1000.py | 19 def __init__(self, cfg, xt_ocd_dir, argument 23 self.board_dir = cfg.board_dir 24 self.elf_name = cfg.elf_file 25 self.gdb_cmd = cfg.gdb 26 self.xt_ocd_dir = xt_ocd_dir 27 self.ocd_topology = ocd_topology 28 self.ocd_jtag_instr = ocd_jtag_instr 29 self.gdb_flash_file = gdb_flash_file 30 self.gdb_port = gdb_port 62 def do_run(self, command, **kwargs): argument [all …]
|
D | nrfjprog.py | 44 def __init__(self, cfg, family, softreset, snr, erase=False, argument 47 self.hex_ = cfg.hex_file 48 self.family = family 49 self.softreset = softreset 50 self.snr = snr 51 self.erase = bool(erase) 52 self.force = force 53 self.recover = bool(recover) 55 self.tool_opt = [] 57 self.tool_opt += opts [all …]
|
D | nsim.py | 26 def __init__(self, cfg, argument 32 self.gdb_cmd = None 34 self.gdb_cmd = [cfg.gdb] + (['-tui'] if tui else []) 35 self.nsim_cmd = ['nsimdrv'] 36 self.gdb_port = gdb_port 37 self.props = props 57 def do_run(self, command, **kwargs): argument 58 self.require(self.nsim_cmd[0]) 59 kwargs['nsim-cfg'] = path.join(self.cfg.board_dir, 'support', 60 self.props) [all …]
|
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/src/devicetree/ |
D | grutils.py | 21 def __init__(self, root=None): argument 22 self.__roots = None 24 self.__roots = {root} 25 self.__edge_map = collections.defaultdict(set) 26 self.__reverse_map = collections.defaultdict(set) 27 self.__nodes = set() 29 def add_edge(self, source, target): argument 35 self.__edge_map[source].add(target) 37 self.__reverse_map[target].add(source) 38 self.__nodes.add(source) [all …]
|
D | dtlib.py | 88 def __init__(self, name: str, parent: Optional['Node'], dt: 'DT'): argument 92 self.name = name 93 self.parent = parent 94 self.dt = dt 101 dt._parse_error(f"{self.path}: bad character '{char}' " 104 self.props: Dict[str, 'Property'] = collections.OrderedDict() 105 self.nodes: Dict[str, 'Node'] = collections.OrderedDict() 106 self.labels: List[str] = [] 107 self._omit_if_no_ref = False 108 self._is_referenced = False [all …]
|
/Zephyr-Core-2.7.6/samples/modules/tflite-micro/magic_wand/train/ |
D | data_load_test.py | 32 def setUp(self): # pylint: disable=g-missing-super-call argument 33 self.loader = DataLoader( 36 def test_get_data(self): argument 37 self.assertIsInstance(self.loader.train_data, list) 38 self.assertIsInstance(self.loader.train_label, list) 39 self.assertIsInstance(self.loader.valid_data, list) 40 self.assertIsInstance(self.loader.valid_label, list) 41 self.assertIsInstance(self.loader.test_data, list) 42 self.assertIsInstance(self.loader.test_label, list) 43 self.assertEqual(self.loader.train_len, len(self.loader.train_data)) [all …]
|
D | data_split_test.py | 31 def setUp(self): # pylint: disable=g-missing-super-call argument 32 self.data = read_data("./data/complete_data") 33 self.num_dic = {"wing": 0, "ring": 0, "slope": 0, "negative": 0} 36 self.num = len(lines) 38 def test_read_data(self): argument 39 self.assertEqual(len(self.data), self.num) 40 self.assertIsInstance(self.data, list) 41 self.assertIsInstance(self.data[0], dict) 42 self.assertEqual( 43 set(list(self.data[-1])), set(["gesture", "accel_ms2_xyz", "name"])) [all …]
|
D | data_load.py | 38 def __init__(self, train_data_path, valid_data_path, test_data_path, argument 40 self.dim = 3 41 self.seq_length = seq_length 42 self.label2id = {"wing": 0, "ring": 1, "slope": 2, "negative": 3} 43 self.train_data, self.train_label, self.train_len = self.get_data_file( 45 self.valid_data, self.valid_label, self.valid_len = self.get_data_file( 47 self.test_data, self.test_label, self.test_len = self.get_data_file( 50 def get_data_file(self, data_path, data_type): # pylint: disable=no-self-use argument 66 def pad(self, data, seq_length, dim): # pylint: disable=no-self-use argument 81 def format_support_func(self, padded_num, length, data, label): argument [all …]
|
/Zephyr-Core-2.7.6/scripts/west_commands/ |
D | build.py | 58 def __call__(self, parser, namespace, values, option_string=None): argument 59 setattr(namespace, self.dest, values or 'always') 63 def __init__(self): argument 64 super(Build, self).__init__( 71 self.source_dir = None 74 self.build_dir = None 77 self.created_build_dir = False 80 self.run_cmake = False 87 self.cmake_cache = None 90 def do_add_parser(self, parser_adder): argument [all …]
|
/Zephyr-Core-2.7.6/scripts/coredump/gdbstubs/arch/ |
D | x86.py | 89 def __init__(self, logfile, elffile): argument 91 self.registers = None 92 self.exception_vector = None 93 self.exception_code = None 94 self.gdb_signal = self.GDB_SIGNAL_DEFAULT 96 self.parse_arch_data_block() 97 self.compute_signal() 99 def parse_arch_data_block(self): argument 100 arch_data_blk = self.logfile.get_arch_data()['data'] 101 tu = struct.unpack(self.ARCH_DATA_BLK_STRUCT, arch_data_blk) [all …]
|
D | x86_64.py | 108 def __init__(self, logfile, elffile): argument 110 self.registers = None 111 self.exception_vector = None 112 self.exception_code = None 113 self.gdb_signal = self.GDB_SIGNAL_DEFAULT 115 self.parse_arch_data_block() 116 self.compute_signal() 118 def parse_arch_data_block(self): argument 119 arch_data_blk = self.logfile.get_arch_data()['data'] 131 self.registers = dict() [all …]
|