From 2d52bab14a75e5be06042b1686f0d64a38f8f8d7 Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 4 Dec 2024 16:06:56 +0800 Subject: [PATCH] temp pre commit hook --- .pre-commit-config.yaml | 8 ++++++++ device_db.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 device_db.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..24c4d44 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: + - repo: local + hooks: + - id: cargo_format + name: cargo_format + entry: cargofmt.sh + language: script + pass_filenames: false \ No newline at end of file diff --git a/device_db.py b/device_db.py new file mode 100644 index 0000000..352f977 --- /dev/null +++ b/device_db.py @@ -0,0 +1,30 @@ +device_db = { + "core": { + "type": "local", + "module": "artiq.coredevice.core", + "class": "Core", + "arguments": { + "host": "192.168.1.14", + "ref_period": 1e-9, + "ref_multiplier": 8, + "target": "cortexa9" + } + }, + "core_cache": { + "type": "local", + "module": "artiq.coredevice.cache", + "class": "CoreCache" + }, + "core_dma": { + "type": "local", + "module": "artiq.coredevice.dma", + "class": "CoreDMA" + }, + + "led0": { + "type": "local", + "module": "artiq.coredevice.ttl", + "class": "TTLOut", + "arguments": {"channel": 0x000001}, + }, +}