temp pre commit hook

This commit is contained in:
morgan 2024-12-04 16:06:56 +08:00
parent a0fc852623
commit 2d52bab14a
2 changed files with 38 additions and 0 deletions

8
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: cargo_format
name: cargo_format
entry: cargofmt.sh
language: script
pass_filenames: false

30
device_db.py Normal file
View File

@ -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},
},
}